SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorConfig Struct Reference

Structure representing sensor configuration parameters. More...

#include <SensorDefs.hpp>

Public Member Functions

 SensorConfig ()
 
 SensorConfig (SensorType type, float range, float sample_rate, uint32_t latency, OperationMode mode)
 

Public Attributes

SensorType type
 Type of the sensor.
 
float range
 Measurement range.
 
float sample_rate
 Sample rate in Hz.
 
uint32_t latency
 Reporting latency in milliseconds.
 
OperationMode mode
 Operation mode.
 

Detailed Description

Structure representing sensor configuration parameters.

Definition at line 373 of file SensorDefs.hpp.

Constructor & Destructor Documentation

◆ SensorConfig() [1/2]

SensorConfig::SensorConfig ( )
inline

Definition at line 380 of file SensorDefs.hpp.

◆ SensorConfig() [2/2]

SensorConfig::SensorConfig ( SensorType  type,
float  range,
float  sample_rate,
uint32_t  latency,
OperationMode  mode 
)
inline

Definition at line 382 of file SensorDefs.hpp.

Member Data Documentation

◆ latency

uint32_t SensorConfig::latency

Reporting latency in milliseconds.

Examples
/home/runner/work/SensorLib/SensorLib/src/sensor/accelerometer/bma/SensorBMA4XX.hpp.

Definition at line 378 of file SensorDefs.hpp.

Referenced by SensorBMA4XX::update().

◆ mode

◆ range

◆ sample_rate

◆ type

SensorType SensorConfig::type

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