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

#include <gps_protocol.h>

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

Public Member Functions

int32_t CheckPacket (const uint8_t *buf) override
 
int32_t CheckPreamble (const uint8_t *buf) override
 
uint32_t FindPacketLen (const uint8_t *buf, uint32_t buf_length) override
 
uint32_t GetPacketLen (const uint8_t *buf) override
 
uint32_t GetPacketWrapperLen () override
 
uint32_t GetPreambleLen () override
 
 GpsProtocol ()
 
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
 
 ~GpsProtocol ()=default
 
- Public Member Functions inherited from livox_ros::Protocol
virtual ~Protocol ()=default
 

Private Member Functions

uint8_t CalcGpsPacketChecksum (const uint8_t *buf, uint32_t length)
 

Private Attributes

uint32_t found_length_
 

Detailed Description

Definition at line 49 of file gps_protocol.h.

Constructor & Destructor Documentation

livox_ros::GpsProtocol::GpsProtocol ( )

'$' + '*' + '2 checksum byte'

Definition at line 39 of file gps_protocol.cpp.

livox_ros::GpsProtocol::~GpsProtocol ( )
default

Member Function Documentation

uint8_t livox_ros::GpsProtocol::CalcGpsPacketChecksum ( const uint8_t buf,
uint32_t  length 
)
private

Definition at line 106 of file gps_protocol.cpp.

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

Implements livox_ros::Protocol.

Definition at line 95 of file gps_protocol.cpp.

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

Implements livox_ros::Protocol.

Definition at line 85 of file gps_protocol.cpp.

uint32_t livox_ros::GpsProtocol::FindPacketLen ( const uint8_t buf,
uint32_t  buf_length 
)
overridevirtual

Implements livox_ros::Protocol.

Definition at line 68 of file gps_protocol.cpp.

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

Implements livox_ros::Protocol.

Definition at line 83 of file gps_protocol.cpp.

uint32_t livox_ros::GpsProtocol::GetPacketWrapperLen ( )
overridevirtual

'$' + '*' + '2 checksum bytes'

Implements livox_ros::Protocol.

Definition at line 64 of file gps_protocol.cpp.

uint32_t livox_ros::GpsProtocol::GetPreambleLen ( )
overridevirtual

'$'

Implements livox_ros::Protocol.

Definition at line 62 of file gps_protocol.cpp.

int32_t livox_ros::GpsProtocol::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 41 of file gps_protocol.cpp.

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

Implements livox_ros::Protocol.

Definition at line 47 of file gps_protocol.cpp.

Member Data Documentation

uint32_t livox_ros::GpsProtocol::found_length_
private

Definition at line 73 of file gps_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