2014-06-18 03:34:05 -06:00
|
|
|
#ifndef PROTOCOL_SIMPLE_SERIAL
|
|
|
|
#include <net/ax25.h>
|
|
|
|
#include <drv/ser.h>
|
|
|
|
|
|
|
|
#define PROTOCOL_SIMPLE_SERIAL 0x01
|
|
|
|
|
2014-06-18 03:40:21 -06:00
|
|
|
#define DEFAULT_CALLSIGN "NOCALL"
|
|
|
|
#define DEFAULT_DESTINATION_CALL "APZMDM"
|
|
|
|
|
2014-06-19 11:47:17 -06:00
|
|
|
void ss_init(AX25Ctx *ax25);
|
2014-06-19 02:36:16 -06:00
|
|
|
|
2014-06-18 03:34:05 -06:00
|
|
|
void ss_messageCallback(struct AX25Msg *msg, Serial *ser);
|
|
|
|
void ss_serialCallback(void *_buffer, size_t length, Serial *ser, AX25Ctx *ctx);
|
|
|
|
|
2014-06-19 07:36:12 -06:00
|
|
|
void ss_sendPkt(void *_buffer, size_t length, AX25Ctx *ax25);
|
|
|
|
void ss_sendLoc(void *_buffer, size_t length, AX25Ctx *ax25);
|
2014-06-19 09:11:49 -06:00
|
|
|
void ss_sendMsg(void *_buffer, size_t length, AX25Ctx *ax25);
|
|
|
|
void ss_msgRetry(AX25Ctx *ax25);
|
2014-06-18 03:34:05 -06:00
|
|
|
|
2014-06-19 02:36:16 -06:00
|
|
|
void ss_clearSettings(void);
|
|
|
|
void ss_loadSettings(void);
|
|
|
|
void ss_saveSettings(void);
|
|
|
|
void ss_printSettings(void);
|
|
|
|
|
2014-06-19 05:11:53 -06:00
|
|
|
void ss_printHelp(void);
|
|
|
|
|
2014-06-18 03:34:05 -06:00
|
|
|
#endif
|