Public Member Functions | Private Attributes | List of all members
livox_ros::SdkProtocol Class Reference

#include <sdk_protocol.h>

Inheritance diagram for livox_ros::SdkProtocol:
Inheritance graph
[legend]

Public Member Functions

int32_t CheckPacket (const uint8_t *buf) override
 
int32_t CheckPreamble (const uint8_t *buf) override
 
uint32_t GetPacketLen (const uint8_t *buf) override
 
uint32_t GetPacketWrapperLen () override
 
uint32_t GetPreambleLen () override
 
int32_t Pack (uint8_t *o_buf, uint32_t o_buf_size, uint32_t *o_len, const CommPacket &i_packet) override
 
int32_t ParsePacket (const uint8_t *i_buf, uint32_t i_len, CommPacket *o_packet) override
 
 SdkProtocol (uint16_t seed16, uint32_t seed32)
 
 ~SdkProtocol ()=default
 
- Public Member Functions inherited from livox_ros::Protocol
virtual uint32_t FindPacketLen (const uint8_t *buf, uint32_t buf_length)=0
 
virtual ~Protocol ()=default
 

Private Attributes

FastCRC16 crc16_
 
FastCRC32 crc32_
 

Detailed Description

Definition at line 60 of file sdk_protocol.h.

Constructor & Destructor Documentation

livox_ros::SdkProtocol::SdkProtocol ( uint16_t  seed16,
uint32_t  seed32 
)

Definition at line 35 of file sdk_protocol.cpp.

livox_ros::SdkProtocol::~SdkProtocol ( )
default

Member Function Documentation

int32_t livox_ros::SdkProtocol::CheckPacket ( const uint8_t buf)
overridevirtual

Implements livox_ros::Protocol.

Definition at line 120 of file sdk_protocol.cpp.

int32_t livox_ros::SdkProtocol::CheckPreamble ( const uint8_t buf)
overridevirtual

Implements livox_ros::Protocol.

Definition at line 109 of file sdk_protocol.cpp.

uint32_t livox_ros::SdkProtocol::GetPacketLen ( const uint8_t buf)
overridevirtual

Implements livox_ros::Protocol.

Definition at line 104 of file sdk_protocol.cpp.

uint32_t livox_ros::SdkProtocol::GetPacketWrapperLen ( )
overridevirtual

Implements livox_ros::Protocol.

Definition at line 100 of file sdk_protocol.cpp.

uint32_t livox_ros::SdkProtocol::GetPreambleLen ( )
overridevirtual

Implements livox_ros::Protocol.

Definition at line 98 of file sdk_protocol.cpp.

int32_t livox_ros::SdkProtocol::Pack ( uint8_t o_buf,
uint32_t  o_buf_size,
uint32_t o_len,
const CommPacket i_packet 
)
overridevirtual

Implements livox_ros::Protocol.

Definition at line 38 of file sdk_protocol.cpp.

int32_t livox_ros::SdkProtocol::ParsePacket ( const uint8_t i_buf,
uint32_t  i_len,
CommPacket o_packet 
)
overridevirtual

Implements livox_ros::Protocol.

Definition at line 75 of file sdk_protocol.cpp.

Member Data Documentation

FastCRC16 livox_ros::SdkProtocol::crc16_
private

Definition at line 82 of file sdk_protocol.h.

FastCRC32 livox_ros::SdkProtocol::crc32_
private

Definition at line 83 of file sdk_protocol.h.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46