internal struct used to save all data related to one data packet More...
#include <packedCom.h>
Data Fields | |
uint8_t | data [kPackedComBufferSize] |
see also kPackedComBufferSize More... | |
uint8_t | pos |
ePackedComPacketDescriptor | pd |
(this number is valid, if pos >= 3) More... | |
uint8_t | size |
uint16_t | crc |
current checksum | |
internal struct used to save all data related to one data packet
uint8_t sPackedComPacket::data[kPackedComBufferSize] |
see also kPackedComBufferSize
internal buffer -
ePackedComPacketDescriptor sPackedComPacket::pd |
(this number is valid, if pos >= 3)
packet descriptor
uint8_t sPackedComPacket::pos |
current position within packet
0 == no data packet received yet (waiting)
1-3 == does not exist 4/5 == packet size
6 == packet descriptor
... == data
251/252 == check sum
253 == received all data (waiting for "<#<")
254 == received "...<" (waiting for "#<")
255 == received "...<#" (waiting for "<")
uint8_t sPackedComPacket::size |
size of packed data (excludes header and framing) (this number is valid, if pos >= 2)