2014-12-02 17:10:06 -07:00
|
|
|
#ifndef _PROTOCOL_KISS
|
|
|
|
#define _PROTOCOL_KISS 0x02
|
|
|
|
|
|
|
|
#include "../hardware/AFSK.h"
|
|
|
|
#include "../hardware/Serial.h"
|
|
|
|
#include "../util/time.h"
|
|
|
|
#include "AX25.h"
|
|
|
|
|
|
|
|
#define FEND 0xC0
|
|
|
|
#define FESC 0xDB
|
|
|
|
#define TFEND 0xDC
|
|
|
|
#define TFESC 0xDD
|
|
|
|
|
|
|
|
#define CMD_UNKNOWN 0xFE
|
|
|
|
#define CMD_DATA 0x00
|
|
|
|
#define CMD_TXDELAY 0x01
|
|
|
|
#define CMD_P 0x02
|
|
|
|
#define CMD_SLOTTIME 0x03
|
|
|
|
#define CMD_TXTAIL 0x04
|
|
|
|
#define CMD_FULLDUPLEX 0x05
|
|
|
|
#define CMD_SETHARDWARE 0x06
|
2019-01-08 12:56:58 -07:00
|
|
|
#define CMD_FLUSHQUEUE 0x07
|
|
|
|
#define CMD_FLUSHQUEUE_DEBUG 0x08
|
2019-01-12 07:12:51 -07:00
|
|
|
#define CMD_LED_INTENSITY 0x09
|
2018-04-24 06:34:59 -06:00
|
|
|
#define CMD_READY 0x0F
|
2014-12-02 17:10:06 -07:00
|
|
|
#define CMD_RETURN 0xFF
|
|
|
|
|
|
|
|
void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser);
|
|
|
|
void kiss_messageCallback(AX25Ctx *ctx);
|
|
|
|
void kiss_serialCallback(uint8_t sbyte);
|
2019-01-08 12:56:58 -07:00
|
|
|
void kiss_flushQueue(void);
|
|
|
|
void kiss_csma(void);
|
|
|
|
void kiss_poll(void);
|
2014-12-02 17:10:06 -07:00
|
|
|
|
|
|
|
#endif
|