Public Member Functions | Private Attributes | List of all members
PacketDecoder Class Reference

Tool for decoding packets by iterating through fields. More...

Public Member Functions

void advance ()
 
bool advanceTo (uint8_t field)
 
template<typename T >
void extract (size_t count, T *output)
 
int fieldDescriptor () const
 
bool fieldIsAckOrNack () const
 
int fieldLength () const
 
 PacketDecoder (const Imu::Packet &p)
 

Private Attributes

uint8_t fs_
 
const Imu::Packetp_
 
uint8_t pos_
 

Detailed Description

Tool for decoding packets by iterating through fields.

Definition at line 201 of file imu.cpp.

Constructor & Destructor Documentation

PacketDecoder::PacketDecoder ( const Imu::Packet p)
inline

Definition at line 203 of file imu.cpp.

Member Function Documentation

void PacketDecoder::advance ( )
inline

Definition at line 239 of file imu.cpp.

bool PacketDecoder::advanceTo ( uint8_t  field)
inline

Definition at line 230 of file imu.cpp.

template<typename T >
void PacketDecoder::extract ( size_t  count,
T *  output 
)
inline

Definition at line 245 of file imu.cpp.

int PacketDecoder::fieldDescriptor ( ) const
inline

Definition at line 207 of file imu.cpp.

bool PacketDecoder::fieldIsAckOrNack ( ) const
inline

Definition at line 222 of file imu.cpp.

int PacketDecoder::fieldLength ( ) const
inline

Definition at line 217 of file imu.cpp.

Member Data Documentation

uint8_t PacketDecoder::fs_
private

Definition at line 253 of file imu.cpp.

const Imu::Packet& PacketDecoder::p_
private

Definition at line 252 of file imu.cpp.

uint8_t PacketDecoder::pos_
private

Definition at line 254 of file imu.cpp.


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


thormang3_imu_3dm_gx4
Author(s): Gareth Cross, SCH
autogenerated on Mon Jun 10 2019 15:26:53