Public Member Functions | Public Attributes | List of all members
rosflight_firmware::UDPBoard::Buffer Struct Reference

Public Member Functions

void add_byte (uint8_t byte)
 
 Buffer ()
 
 Buffer (const uint8_t *src, size_t length)
 
uint8_t consume_byte ()
 
const uint8_t * dpos () const
 
bool empty () const
 
bool full () const
 
size_t nbytes () const
 

Public Attributes

uint8_t data [MAVLINK_MAX_PACKET_LEN]
 
size_t len
 
size_t pos
 

Detailed Description

Definition at line 69 of file udp_board.h.

Constructor & Destructor Documentation

rosflight_firmware::UDPBoard::Buffer::Buffer ( )
inline

Definition at line 75 of file udp_board.h.

rosflight_firmware::UDPBoard::Buffer::Buffer ( const uint8_t *  src,
size_t  length 
)
inline
Todo:
Do something less catastrophic here

Definition at line 77 of file udp_board.h.

Member Function Documentation

void rosflight_firmware::UDPBoard::Buffer::add_byte ( uint8_t  byte)
inline

Definition at line 85 of file udp_board.h.

uint8_t rosflight_firmware::UDPBoard::Buffer::consume_byte ( )
inline

Definition at line 86 of file udp_board.h.

const uint8_t* rosflight_firmware::UDPBoard::Buffer::dpos ( ) const
inline

Definition at line 83 of file udp_board.h.

bool rosflight_firmware::UDPBoard::Buffer::empty ( ) const
inline

Definition at line 87 of file udp_board.h.

bool rosflight_firmware::UDPBoard::Buffer::full ( ) const
inline

Definition at line 88 of file udp_board.h.

size_t rosflight_firmware::UDPBoard::Buffer::nbytes ( ) const
inline

Definition at line 84 of file udp_board.h.

Member Data Documentation

uint8_t rosflight_firmware::UDPBoard::Buffer::data[MAVLINK_MAX_PACKET_LEN]

Definition at line 71 of file udp_board.h.

size_t rosflight_firmware::UDPBoard::Buffer::len

Definition at line 72 of file udp_board.h.

size_t rosflight_firmware::UDPBoard::Buffer::pos

Definition at line 73 of file udp_board.h.


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


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:58