2016-08-26 18:12:16 +00:00
|
|
|
#ifndef _KISS_H_
|
|
|
|
#define _KISS_H_
|
|
|
|
|
|
|
|
#include <HamShield.h>
|
|
|
|
#include "packet.h"
|
|
|
|
|
|
|
|
#define KISS_FEND 0xC0
|
|
|
|
#define KISS_FESC 0xDB
|
|
|
|
#define KISS_TFEND 0xDC
|
|
|
|
#define KISS_TFESC 0xDD
|
|
|
|
|
|
|
|
class KISS {
|
|
|
|
public:
|
2016-12-27 20:09:02 +00:00
|
|
|
KISS(Stream *_io, HamShield *h, DDS *d, AFSK *a) : io(_io), radio(h), dds(d), afsk(a) {}
|
2016-08-26 18:12:16 +00:00
|
|
|
bool read();
|
|
|
|
void writePacket(AFSK::Packet *);
|
|
|
|
void loop();
|
|
|
|
private:
|
|
|
|
Stream *io;
|
|
|
|
HamShield *radio;
|
|
|
|
DDS *dds;
|
2016-12-27 20:09:02 +00:00
|
|
|
AFSK *afsk;
|
2016-08-26 18:12:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _KISS_H_ */
|