intercom packet structure, both tx and rx More...
#include <intercom.h>
Data Fields | |
uint8_t | start |
start byte, must be 0x55 | |
uint8_t | dio |
gpio | |
uint8_t | controller_num |
controller index | |
uint8_t | control_word |
what to do | |
uint8_t | control_index |
what to do it to | |
union { | |
int32_t control_data_int32 | |
uint32_t control_data_uint32 | |
float control_data_float | |
uint16_t temp [2] | |
}; | |
uint8_t | err |
error code, if any | |
uint8_t | crc |
crc for packet verification. packets with bad crc are simply ignored | |
union { | |
int32_t control_data_int32 | |
uint32_t control_data_uint32 | |
float control_data_float | |
uint16_t temp [2] | |
}; |
intercom packet structure, both tx and rx