Struct MsgBuffer

Struct Documentation

struct MsgBuffer

Message buffer for internal use in libmavconn.

Public Functions

inline MsgBuffer()

Buffer constructor from mavlink_message_t.

Buffer constructor for mavlink::Message derived object.

inline MsgBuffer(const uint8_t *bytes, ssize_t nbytes)

Buffer constructor for send_bytes()

Parameters:

nbytes[in] should be less than MAX_SIZE

inline virtual ~MsgBuffer()
inline uint8_t *dpos()
inline ssize_t nbytes()

Public Members

uint8_t data[MAX_SIZE]
ssize_t len
ssize_t pos

Public Static Attributes

static constexpr ssize_t MAX_SIZE = MAVLINK_MAX_PACKET_LEN + 16

Maximum buffer size with padding for CRC bytes (280 + padding)