BNO08X Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Namespaces | Functions
bno08x_reports.hpp File Reference

The sensor input report layouts as data: one table drives every decode. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <span>
#include "bno08x_detail.hpp"
#include "bno08x_registers.hpp"
#include "bno08x_shtp.hpp"
#include "bno08x_types.hpp"

Go to the source code of this file.

Namespaces

namespace  bno08x
 The BNO08x driver: everything it declares lives here; internals in detail.
 

Functions

constexpr uint8_t bno08x::QPoint (SensorId id) noexcept
 The Q point of the first value of a sensor's event (0 when not fixed point).
 
constexpr uint16_t bno08x::MetadataRecord (SensorId id) noexcept
 The metadata record that describes a sensor (RM Figure 27).
 
constexpr const char * bno08x::SensorName (SensorId id) noexcept
 The name of a sensor.
 
constexpr bool bno08x::InDatasheet (SensorId id) noexcept
 Whether the data sheet itself describes the sensor ("D" in the coverage matrix); the others come from the reference manual only and may not exist on a given chip (ambiguity A31).
 
constexpr bool bno08x::IsRawSensor (SensorId id) noexcept
 Whether the sensor delivers raw ADC data (it needs its base sensor enabled, DS p30).
 

Detailed Description

The sensor input report layouts as data: one table drives every decode.

Each sensor report (RM S6.5, Figures 82 to 122) is a list of fields at fixed offsets. The table below lists them in the order of the reference manual; DecodeSensor() turns a report into an Event. Names, Q points and the metadata record of every sensor are tables too, so no function here branches per sensor.