Data Fields

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
 

Detailed Description

internal struct used to save all data related to one data packet

See also
tucbot_packedCom

Field Documentation

◆ data

uint8_t sPackedComPacket::data[kPackedComBufferSize]

see also kPackedComBufferSize

internal buffer -

◆ pd

ePackedComPacketDescriptor sPackedComPacket::pd

(this number is valid, if pos >= 3)

packet descriptor

◆ pos

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 "<")

◆ size

uint8_t sPackedComPacket::size

size of packed data (excludes header and framing) (this number is valid, if pos >= 2)


The documentation for this struct was generated from the following file: