nidas v1.2.3
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ublox_pkt Class Reference

Public Member Functions

 ublox_pkt (uint8_t uclass, uint8_t id, uint16_t paylen)
 
 ublox_pkt (uint16_t paylen)
 
 ~ublox_pkt ()
 
uint8_t sync1 () const
 
uint8_t sync2 () const
 
uint8_t uclass () const
 
uint8_t id () const
 
uint8_t * payload () const
 
void payload (void *ptr)
 
int16_t len () const
 
char * beginp () const
 
char * endp () const
 
int16_t paylen () const
 
uint8_t * cksump () const
 
void cksum ()
 

Private Member Functions

 ublox_pkt (const ublox_pkt &)
 
ublox_pktoperator= (const ublox_pkt &)
 

Private Attributes

int16_t _paylen
 
uint8_t * _pkt
 

Constructor & Destructor Documentation

◆ ublox_pkt() [1/3]

ublox_pkt::ublox_pkt ( uint8_t uclass,
uint8_t id,
uint16_t paylen )

References _paylen, _pkt, id(), len(), and uclass().

◆ ublox_pkt() [2/3]

ublox_pkt::ublox_pkt ( uint16_t paylen)

References _pkt, and len().

◆ ~ublox_pkt()

ublox_pkt::~ublox_pkt ( )

References _pkt.

◆ ublox_pkt() [3/3]

ublox_pkt::ublox_pkt ( const ublox_pkt & )
private

Member Function Documentation

◆ beginp()

char * ublox_pkt::beginp ( ) const
inline

References _pkt.

Referenced by cksump(), and endp().

◆ cksum()

void ublox_pkt::cksum ( )

References _pkt, and cksump().

Referenced by ublox::config_port().

◆ cksump()

uint8_t * ublox_pkt::cksump ( ) const
inline

References _paylen, and beginp().

Referenced by cksum().

◆ endp()

char * ublox_pkt::endp ( ) const
inline

References beginp(), and len().

◆ id()

uint8_t ublox_pkt::id ( ) const
inline

References _pkt.

Referenced by ublox_pkt().

◆ len()

int16_t ublox_pkt::len ( ) const
inline

References _paylen.

Referenced by endp(), ublox_pkt(), and ublox_pkt().

◆ operator=()

ublox_pkt & ublox_pkt::operator= ( const ublox_pkt & )
private

◆ paylen()

int16_t ublox_pkt::paylen ( ) const
inline

References _pkt.

◆ payload() [1/2]

uint8_t * ublox_pkt::payload ( ) const
inline

References _pkt.

Referenced by ublox::config_port().

◆ payload() [2/2]

void ublox_pkt::payload ( void * ptr)
inline

References _paylen, and payload().

Referenced by payload().

◆ sync1()

uint8_t ublox_pkt::sync1 ( ) const
inline

References _pkt.

◆ sync2()

uint8_t ublox_pkt::sync2 ( ) const
inline

References _pkt.

◆ uclass()

uint8_t ublox_pkt::uclass ( ) const
inline

References _pkt.

Referenced by ublox_pkt().

Member Data Documentation

◆ _paylen

int16_t ublox_pkt::_paylen
private

Referenced by cksump(), len(), payload(), and ublox_pkt().

◆ _pkt

uint8_t* ublox_pkt::_pkt
private

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