Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
icm42670.h File Reference

Extended public API for ICM42670 6-axis MEMS sensor. More...

Go to the source code of this file.

Macros

#define ICM42670_LOW_NOISE_MODE   (0)
 ICM42670 power mode.
 
#define ICM42670_LOW_POWER_MODE   (1)
 

Enumerations

enum  sensor_attribute_icm42670 { SENSOR_ATTR_BW_FILTER_LPF = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_AVERAGING }
 Extended sensor attributes for ICM42670 6-axis MEMS sensor. More...
 

Detailed Description

Extended public API for ICM42670 6-axis MEMS sensor.

Some capabilities and operational requirements for this sensor cannot be expressed within the sensor driver abstraction.

Macro Definition Documentation

◆ ICM42670_LOW_NOISE_MODE

#define ICM42670_LOW_NOISE_MODE   (0)

ICM42670 power mode.

◆ ICM42670_LOW_POWER_MODE

#define ICM42670_LOW_POWER_MODE   (1)

Enumeration Type Documentation

◆ sensor_attribute_icm42670

Extended sensor attributes for ICM42670 6-axis MEMS sensor.

This exposes attributes for the ICM42670 which can be used for setting the signal path filtering parameters.

The signal path starts with ADCs for the gyroscope and accelerometer. Low-Noise Mode and Low-Power Mode options are available for the accelerometer. Only Low-Noise Mode is available for gyroscope. In Low-Noise Mode, the ADC output is sent through an Anti-Alias Filter (AAF). The AAF is a filter with fixed coefficients (not user configurable), also the AAF cannot be bypassed. The AAF is followed by a 1st Order Low Pass Filter (LPF) with user selectable filter bandwidth options. In Low-Power Mode, the accelerometer ADC output is sent through an Average filter, with user configurable average filter setting. The output of 1st Order LPF in Low-Noise Mode, or Average filter in Low-Power Mode is subject to ODR selection, with user selectable ODR.

Enumerator
SENSOR_ATTR_BW_FILTER_LPF 

BW filtering.

Low-pass filter configuration

SENSOR_ATTR_AVERAGING 

Averaging configuration.