QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UBX::CheckedValsetBatch< Capacity > Struct Template Reference

#include <UBXConfigKeys.h>

Public Member Functions

std::span< const uint8_t > payload () const
 
std::span< const uint8_t > entries () const
 The appended key/value entries, without the header.
 
bool append (uint32_t key, uint32_t value)
 

Public Attributes

std::array< uint8_t, Capacity > bytes {0, 1}
 
size_t size = 4
 
bool valid = true
 

Detailed Description

template<size_t Capacity>
struct UBX::CheckedValsetBatch< Capacity >

A CFG-VALSET payload for the RAM layer. An append error invalidates the entire batch, including previously appended entries.

Definition at line 274 of file UBXConfigKeys.h.

Member Function Documentation

◆ append()

template<size_t Capacity>
bool UBX::CheckedValsetBatch< Capacity >::append ( uint32_t  key,
uint32_t  value 
)
inline

◆ entries()

template<size_t Capacity>
std::span< const uint8_t > UBX::CheckedValsetBatch< Capacity >::entries ( ) const
inline

The appended key/value entries, without the header.

Definition at line 287 of file UBXConfigKeys.h.

References UBX::CheckedValsetBatch< Capacity >::bytes, and UBX::CheckedValsetBatch< Capacity >::size.

◆ payload()

template<size_t Capacity>
std::span< const uint8_t > UBX::CheckedValsetBatch< Capacity >::payload ( ) const
inline

Member Data Documentation

◆ bytes

template<size_t Capacity>
std::array<uint8_t, Capacity> UBX::CheckedValsetBatch< Capacity >::bytes {0, 1}

◆ size

◆ valid

template<size_t Capacity>
bool UBX::CheckedValsetBatch< Capacity >::valid = true

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