Voyant API 0.9.2
Loading...
Searching...
No Matches
Public Attributes | List of all members
SensorState Struct Reference

#include <voyant_types_ffi.hpp>

Public Attributes

SdlDeviceState sdl
 
HealthState health
 
CounterState counters
 
DeviceInfo device
 
CalibrationState calibration
 
DspHeaderState dsp_header
 
uint32_t peaks_per_frame
 
uint64_t last_heartbeat_frame
 

Detailed Description

Human-readable sensor state with physical units, derived from [SensorStateRaw].

This is the primary interface for GUI, DSP, and language bindings. All fields are in physical units (fps, degrees, °C, etc.) with enums in place of raw u8 registers.

Construct via [SensorState::from_raw]. Not logged directly — log [SensorStateRaw] and reconstruct on playback.

All sub-structs are #[repr(C)] and use field types compatible with extern "C" FFI, including primitive scalars, fixed-size arrays, and enums with explicit #[repr(...)]. Booleans are represented as u8 (0 = false, nonzero = true) for C ABI safety.

Member Data Documentation

◆ calibration

CalibrationState SensorState::calibration

◆ counters

CounterState SensorState::counters

◆ device

DeviceInfo SensorState::device

◆ dsp_header

DspHeaderState SensorState::dsp_header

◆ health

HealthState SensorState::health

◆ last_heartbeat_frame

uint64_t SensorState::last_heartbeat_frame

◆ peaks_per_frame

uint32_t SensorState::peaks_per_frame

◆ sdl

SdlDeviceState SensorState::sdl

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