You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
632 B
32 lines
632 B
2 years ago
|
#ifndef KISS_H
|
||
|
#define KISS_H
|
||
2 years ago
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
#include <time.h>
|
||
|
#include <stdarg.h>
|
||
2 years ago
|
|
||
|
#define FEND 0xC0
|
||
|
#define FESC 0xDB
|
||
|
#define TFEND 0xDC
|
||
|
#define TFESC 0xDD
|
||
|
|
||
|
#define CMD_UNKNOWN 0xFE
|
||
|
#define CMD_DATA 0x00
|
||
|
#define CMD_HARDWARE 0x06
|
||
2 years ago
|
#define CMD_EXIT_KISS 0xFF
|
||
2 years ago
|
|
||
|
#define HW_RSSI 0x21
|
||
|
|
||
|
#define CMD_ERROR 0x90
|
||
|
#define ERROR_INITRADIO 0x01
|
||
|
#define ERROR_TXFAILED 0x02
|
||
|
#define ERROR_QUEUE_FULL 0x04
|
||
|
|
||
2 years ago
|
class KissClass
|
||
|
{
|
||
|
public:
|
||
|
uint16_t EncodeFrame(void);
|
||
|
};
|
||
2 years ago
|
|
||
|
#endif
|