35 #define SYSLINK_GROUP 0xF0
37 #define SYSLINK_RADIO 0x00
38 #define SYSLINK_RADIO_RAW 0x00
39 #define SYSLINK_RADIO_CHANNEL 0x01
40 #define SYSLINK_RADIO_DATARATE 0x02
41 #define SYSLINK_RADIO_CONTWAVE 0x03
42 #define SYSLINK_RADIO_RSSI 0x04
43 #define SYSLINK_RADIO_ADDRESS 0x05
45 #define SYSLINK_PM 0x10
46 #define SYSLINK_PM_SOURCE 0x10
47 #define SYSLINK_PM_ONOFF_SWITCHOFF 0x11
48 #define SYSLINK_PM_BATTERY_VOLTAGE 0x12
49 #define SYSLINK_PM_BATTERY_STATE 0x13
50 #define SYSLINK_PM_BATTERY_AUTOUPDATE 0x14
52 #define SYSLINK_OW 0x20
53 #define SYSLINK_OW_SCAN 0x20
54 #define SYSLINK_OW_GETINFO 0x21
55 #define SYSLINK_OW_READ 0x22
56 #define SYSLINK_OW_WRITE 0x23
59 #define SYSLINK_MAX_DATA_LEN 32
61 #define SYSLINK_RADIO_RATE_250K 0
62 #define SYSLINK_RADIO_RATE_1M 1
63 #define SYSLINK_RADIO_RATE_2M 2
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
#define SYSLINK_MAX_DATA_LEN
bool syslink_parse_char(syslink_parse_state *state, uint8_t c, syslink_message_t *msg)
Parse one byte.
void syslink_compute_cksum(syslink_message_t *msg)
Compute syslink checksum.
void syslink_parse_init(syslink_parse_state *state)
Init syslink parser.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.