25 #ifndef COMM_COMM_PROTOCOL_H_ 26 #define COMM_COMM_PROTOCOL_H_ 97 fsm_parse_step_ = new_state;
105 #endif // COMM_COMM_PROTOCOL_H_
int32_t FsmSearchPacketPreamble()
int32_t FsmFindPacketLength()
void FsmParserStateTransfer(uint32_t new_state)
uint8_t * GetCacheReadPos()
uint16_t GetAndUpdateSeqNum()
CommProtocol(ProtocolConfig &config)
const uint32_t kMoveCacheLimit
uint32_t GetCacheTailSize()
uint8_t * FetchCacheFreeSpace(uint32_t *o_len)
volatile uint32_t offset_to_read_index_
int32_t UpdateCacheWrIdx(uint32_t used_size)
int32_t FsmGetPacketData(CommPacket *o_pack)
int32_t Pack(uint8_t *o_buf, uint32_t o_buf_size, uint32_t *o_len, const CommPacket &i_packet)
const uint32_t kCacheSize
uint32_t GetValidDataSize()
int32_t ParseCommStream(CommPacket *o_pack)
volatile uint32_t fsm_parse_step_