|
ICM42670 Portable Driver
Public API reference for the ICM-42670-P IMU driver
|
FSYNC configuration and polling helpers for the ICM-42670-P. More...

Functions | |
| ICM42670_Status_t | ICM42670_Enable_Fsync (const ICM42670_Config *config, const ICM42670_FsyncConfig_t *fsync_config) |
| Enable FSYNC timestamp capture with simple defaults. | |
| ICM42670_Status_t | ICM42670_Disable_Fsync (const ICM42670_Config *config) |
| Disable FSYNC timestamp capture and clear FSYNC interrupt routing. | |
| ICM42670_Status_t | ICM42670_Read_Fsync (const ICM42670_Config *config, ICM42670_FsyncData_t *fsync_data) |
| Read the read-clear FSYNC event status and latest FSYNC timestamp. | |
FSYNC configuration and polling helpers for the ICM-42670-P.
| ICM42670_Status_t ICM42670_Disable_Fsync | ( | const ICM42670_Config * | config | ) |
Disable FSYNC timestamp capture and clear FSYNC interrupt routing.
| config | Driver configuration with read, write, and delay callbacks. |
References ICM42670_ERROR, ICM42670_FSYNC_INT_NONE, and ICM42670_OK.
| ICM42670_Status_t ICM42670_Enable_Fsync | ( | const ICM42670_Config * | config, |
| const ICM42670_FsyncConfig_t * | fsync_config | ||
| ) |
Enable FSYNC timestamp capture with simple defaults.
Passing NULL for fsync_config selects rising-edge FSYNC, no UI data LSB tag, clear-on-sensor-update behavior, and no interrupt routing.
| config | Driver configuration with read, write, and delay callbacks. |
| fsync_config | Optional FSYNC configuration, or NULL for defaults. |
References ICM42670_FsyncConfig_t::clear_mode, ICM42670_ERROR, ICM42670_FSYNC_CLEAR_ON_TAGGED_LSB_READ, ICM42670_FSYNC_FALLING_EDGE, ICM42670_OK, ICM42670_FsyncConfig_t::interrupt_pin, ICM42670_FsyncConfig_t::polarity, and ICM42670_FsyncConfig_t::tag.
| ICM42670_Status_t ICM42670_Read_Fsync | ( | const ICM42670_Config * | config, |
| ICM42670_FsyncData_t * | fsync_data | ||
| ) |
Read the read-clear FSYNC event status and latest FSYNC timestamp.
| config | Driver configuration with a read callback. |
| fsync_data | Destination for event status and timestamp data. |
References ICM42670_FsyncData_t::event_detected, ICM42670_ERROR, ICM42670_OK, ICM42670_FsyncData_t::raw_status, and ICM42670_FsyncData_t::timestamp_delta_us.