QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SBF::BlockHeader Struct Reference

Starts every block. The CRC covers id through the end of the block; length counts the whole block. More...

#include <SBFBlocks.h>

Public Member Functions

constexpr uint16_t number () const
 Bits 0-12 of the id; bits 13-15 are the block revision.
 

Public Attributes

uint16_t sync
 
uint16_t crc
 
uint16_t id
 
uint16_t length
 

Detailed Description

Starts every block. The CRC covers id through the end of the block; length counts the whole block.

Definition at line 21 of file SBFBlocks.h.

Member Function Documentation

◆ number()

constexpr uint16_t SBF::BlockHeader::number ( ) const
inlineconstexpr

Bits 0-12 of the id; bits 13-15 are the block revision.

Definition at line 29 of file SBFBlocks.h.

Member Data Documentation

◆ crc

uint16_t SBF::BlockHeader::crc

Definition at line 24 of file SBFBlocks.h.

◆ id

uint16_t SBF::BlockHeader::id

Definition at line 25 of file SBFBlocks.h.

◆ length

uint16_t SBF::BlockHeader::length

Definition at line 26 of file SBFBlocks.h.

◆ sync

uint16_t SBF::BlockHeader::sync

Definition at line 23 of file SBFBlocks.h.


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