AMS Advanced Air Mobility Sensors UG
Loading...
Searching...
No Matches
NIcm20789DriverConfig Namespace Reference

Enumerations

enum class  EAccelDynamicRange : uint8_t { e2g = 0x00 , e4g = 0x01 , e8g = 0x02 , e16g = 0x03 }
 
enum class  EGyroDynamicRange : uint8_t { e250dps = 0x00 , e500dps = 0x01 , e1000dps = 0x02 , e2000dps = 0x03 }
 

Functions

template<EGyroDynamicRange Range>
static constexpr float getGyroscopeRangeInDegreesPerSecond ()
 A template function to get gyroscope range from an enum value.
 
template<EAccelDynamicRange Range>
static constexpr float getAccelerometerRangeInG ()
 A template function to get accelerometer range from an enum value.
 

Enumeration Type Documentation

◆ EAccelDynamicRange

enum class NIcm20789DriverConfig::EAccelDynamicRange : uint8_t
strong
Enumerator
e2g 
e4g 
e8g 
e16g 

◆ EGyroDynamicRange

enum class NIcm20789DriverConfig::EGyroDynamicRange : uint8_t
strong
Enumerator
e250dps 
e500dps 
e1000dps 
e2000dps 

Function Documentation

◆ getAccelerometerRangeInG()

template<EAccelDynamicRange Range>
static constexpr float NIcm20789DriverConfig::getAccelerometerRangeInG ( )
staticconstexpr

A template function to get accelerometer range from an enum value.

◆ getGyroscopeRangeInDegreesPerSecond()

template<EGyroDynamicRange Range>
static constexpr float NIcm20789DriverConfig::getGyroscopeRangeInDegreesPerSecond ( )
staticconstexpr

A template function to get gyroscope range from an enum value.