25 #ifndef COMM_COMM_PORT_H_ 26 #define COMM_COMM_PORT_H_ 48 int32_t
Pack(uint8_t *o_buf, uint32_t o_buf_size, uint32_t *o_len,
const CommPacket &i_packet);
59 uint32_t GetCacheTailSize();
61 uint32_t GetValidDataSize();
63 void UpdateCache(
void);
72 #endif // COMM_COMM_PORT_H_
int32_t ParseCommStream(CommPacket *o_pack)
const uint32_t kMoveCacheLimit
const uint32_t kCacheSize
uint8_t * FetchCacheFreeSpace(uint32_t *o_len)
int32_t Pack(uint8_t *o_buf, uint32_t o_buf_size, uint32_t *o_len, const CommPacket &i_packet)
int32_t UpdateCacheWrIdx(uint32_t used_size)
uint16_t GetAndUpdateSeqNum()