Livox SDK API  V2.2.0
livox::Protocol Class Referenceabstract

#include <protocol.h>

Public Member Functions

virtual ~Protocol ()
 
virtual int32_t ParsePacket (uint8_t *i_buf, uint32_t i_len, CommPacket *o_packet)=0
 
virtual int32_t Pack (uint8_t *o_buf, uint32_t o_buf_size, uint32_t *o_len, const CommPacket &i_packet)=0
 
virtual uint32_t GetPreambleLen ()=0
 
virtual uint32_t GetPacketWrapperLen ()=0
 
virtual uint32_t GetPacketLen (uint8_t *buf)=0
 
virtual int32_t CheckPreamble (uint8_t *buf)=0
 
virtual int32_t CheckPacket (uint8_t *buf)=0
 

Detailed Description

Definition at line 62 of file protocol.h.

Constructor & Destructor Documentation

virtual livox::Protocol::~Protocol ( )
inlinevirtual

Definition at line 64 of file protocol.h.

Member Function Documentation

virtual int32_t livox::Protocol::CheckPacket ( uint8_t *  buf)
pure virtual
virtual int32_t livox::Protocol::CheckPreamble ( uint8_t *  buf)
pure virtual
virtual uint32_t livox::Protocol::GetPacketLen ( uint8_t *  buf)
pure virtual
virtual uint32_t livox::Protocol::GetPacketWrapperLen ( )
pure virtual
virtual uint32_t livox::Protocol::GetPreambleLen ( )
pure virtual
virtual int32_t livox::Protocol::Pack ( uint8_t *  o_buf,
uint32_t  o_buf_size,
uint32_t *  o_len,
const CommPacket i_packet 
)
pure virtual
virtual int32_t livox::Protocol::ParsePacket ( uint8_t *  i_buf,
uint32_t  i_len,
CommPacket o_packet 
)
pure virtual

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