Macros | Enumerations

advanced constants More...

Macros

#define kPackedComBufferSize
 constant (64): Size of internal buffer for packed communication
 
#define kPackedComMaxTimeOut
 

Enumerations

enum  ePackedComPacketDescriptor
 clusters all packet descriptors for the packed communication More...
 
enum  ePackedComUartState
 clusters states of each UART while scanning for data packets More...
 

Detailed Description

advanced constants

Macro Definition Documentation

◆ kPackedComMaxTimeOut

#define kPackedComMaxTimeOut

constant (10): Maximum number of systick-cylces between single bytes (receiving struct data)

Enumeration Type Documentation

◆ ePackedComPacketDescriptor

clusters all packet descriptors for the packed communication

Enumerator
kPackedComPdMotorData 

packet descriptor (0x01): not implemented (but reserved)

kPackedComPdLausTrackerSelf 

packet descriptor (0xA1): sLausTrackerSelf

kPackedComPdLausTrackerRival 

packet descriptor (0xA2): sLausTrackerRival

kPackedComPdRemoteControlTwistOld 

packet descriptor (0xA4): not implemented (but reserved for old twist-messages with 8-bit values)

kPackedComPdRemoteControlTwist 

packet descriptor (0xA5): sRemoteControlTwist

kPackedComPdRemoteControlMotor 

packet descriptor (0xA6): sRemoteControlMotor

kPackedComPdPackedComExample 

packet descriptor (0xB1): not implemented (but reserved for example packedCom.c)

kPackedComPdInvalid 

packet descriptor (0xFF): invalid packet descriptor

◆ ePackedComUartState

clusters states of each UART while scanning for data packets

See also
packedCom_lock(), packedCom_lockGet() and packedCom_unlock()
Enumerator
kPackedComUartNone 

constant (0): nothing found (waiting for ">*>")

kPackedComUartS1 

constant (1): found ">" (waiting for "*>")

kPackedComUartS2 

constant (2): found ">*" (waiting for ">")

kPackedComUartS3 

constant (3): found ">*>" (ready, but packet-buffer is already in use)

kPackedComUartBusyMin 

constant (4): mininum state for beeing busy with receiving a data packet

kPackedComUartReceive 

constant (4): reading data packet

kPackedComUartE1 

constant (5): error occured (waiting for "<#<")

kPackedComUartE2 

constant (6): error occured and received "<" (waiting for "#<")

kPackedComUartE3 

constant (7): error occured and received "<#" (waiting for "<")