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

Tool for encoding packets more easily by simply appending fields. More...

Public Member Functions

template<typename... Ts>
void append (const Ts &...args)
 
void beginField (uint8_t desc)
 
void endField ()
 
 PacketEncoder (Imu::Packet &p)
 
virtual ~PacketEncoder ()
 

Private Attributes

bool enc_
 
uint8_t fs_
 
Imu::Packetp_
 

Detailed Description

Tool for encoding packets more easily by simply appending fields.

Definition at line 161 of file imu.cpp.

Constructor & Destructor Documentation

PacketEncoder::PacketEncoder ( Imu::Packet p)
inline

Definition at line 163 of file imu.cpp.

virtual PacketEncoder::~PacketEncoder ( )
inlinevirtual

Definition at line 166 of file imu.cpp.

Member Function Documentation

template<typename... Ts>
void PacketEncoder::append ( const Ts &...  args)
inline

Definition at line 181 of file imu.cpp.

void PacketEncoder::beginField ( uint8_t  desc)
inline

Definition at line 171 of file imu.cpp.

void PacketEncoder::endField ( )
inline

Definition at line 186 of file imu.cpp.

Member Data Documentation

bool PacketEncoder::enc_
private

Definition at line 195 of file imu.cpp.

uint8_t PacketEncoder::fs_
private

Definition at line 194 of file imu.cpp.

Imu::Packet& PacketEncoder::p_
private

Definition at line 193 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