| eMD IIM4265x Driver API 1.0.0

Functions
Ixm42xxxDriver_HL.c File Reference
`#include "Invn/Drivers/Ixm42xxx/Ixm42xxxDefs.h"`
`#include "Invn/Drivers/Ixm42xxx/Ixm42xxxExtFunc.h"`
`#include "Invn/Drivers/Ixm42xxx/Ixm42xxxDriver_HL.h"`
`#include "Invn/Drivers/Ixm42xxx/Ixm42xxxTransport.h"`
`#include "Invn/Drivers/Ixm42xxx/Ixm42xxxVersion.h"`
Include dependency graph for Ixm42xxxDriver_HL.c:

Go to the source code of this file.

## Functions
int | inv_ixm42xxx_set_reg_bank (struct inv_ixm42xxx *s, uint8_t bank)
| Set register bank index. More...
int | inv_ixm42xxx_init (struct inv_ixm42xxx *s, struct inv_ixm42xxx_serif *serif, void(*sensor_event_cb)(inv_ixm42xxx_sensor_event_t *event))
| Configure the serial interface used to access the device and execute hardware initialization. More...
int | inv_ixm42xxx_device_reset (struct inv_ixm42xxx *s)
| Perform a soft reset of the device. More...
int | inv_ixm42xxx_get_who_am_i (struct inv_ixm42xxx *s, uint8_t *who_am_i)
| return WHOAMI value More...
int | inv_ixm42xxx_force_clock_source (struct inv_ixm42xxx *s, IXM42XXX_INTF_CONFIG1_ACCEL_LP_CLK_t clk_src)
| Configure Accel clock source. More...
int | inv_ixm42xxx_enable_accel_low_power_mode (struct inv_ixm42xxx *s)
| Enable/put accel in low power mode. More...
int | inv_ixm42xxx_enable_accel_low_noise_mode (struct inv_ixm42xxx *s)
| Enable/put accel in low noise mode. More...
int | inv_ixm42xxx_disable_accel (struct inv_ixm42xxx *s)
| Disable all 3 axes of accel. More...
int | inv_ixm42xxx_enable_gyro_low_noise_mode (struct inv_ixm42xxx *s)
| Enable/put gyro in low noise mode. More...
int | inv_ixm42xxx_disable_gyro (struct inv_ixm42xxx *s)
| Disable all 3 axes of gyro. More...
int | inv_ixm42xxx_enable_fsync (struct inv_ixm42xxx *s)
| Enable fsync tagging functionnality. In details it: More...
int | inv_ixm42xxx_disable_fsync (struct inv_ixm42xxx *s)
| Disable fsync tagging functionnality. In details it: More...
int | inv_ixm42xxx_configure_timestamp_resolution (struct inv_ixm42xxx *s, IXM42XXX_TMST_CONFIG_RESOL_t resol)
| Configure timestamp resolution from FIFO. More...
int | inv_ixm42xxx_get_config_ibi (struct inv_ixm42xxx *s, inv_ixm42xxx_interrupt_parameter_t *interrupt_to_configure)
| Retrieve interrupts configuration. More...
int | inv_ixm42xxx_get_config_int1 (struct inv_ixm42xxx *s, inv_ixm42xxx_interrupt_parameter_t *interrupt_to_configure)
| Retrieve interrupts configuration. More...
int | inv_ixm42xxx_get_config_int2 (struct inv_ixm42xxx *s, inv_ixm42xxx_interrupt_parameter_t *interrupt_to_configure)
| Retrieve interrupts configuration. More...
int | inv_ixm42xxx_set_config_ibi (struct inv_ixm42xxx *s, inv_ixm42xxx_interrupt_parameter_t *interrupt_to_configure)
| Configure which interrupt source can trigger ibi interruptions. More...
int | inv_ixm42xxx_set_config_int1 (struct inv_ixm42xxx *s, inv_ixm42xxx_interrupt_parameter_t *interrupt_to_configure)
| Configure which interrupt source can trigger INT1. More...
int | inv_ixm42xxx_set_config_int2 (struct inv_ixm42xxx *s, inv_ixm42xxx_interrupt_parameter_t *interrupt_to_configure)
| Configure which interrupt source can trigger INT2. More...
int | inv_ixm42xxx_get_data_from_registers (struct inv_ixm42xxx *s)
| Read all registers containing data (tempereature, accelerometer and gyroscope). Then it calls sensor_event_cb funtion passed in parameter of inv_ixm42xxx_init function for each packet. More...
int | inv_ixm42xxx_get_data_from_fifo (struct inv_ixm42xxx *s)
| Read all available packets from the FIFO. For each packet function builds a sensor event containing packet data and validity information. Then it calls sensor_event_cb funtion passed in parameter of inv_ixm42xxx_init function for each packet. More...
uint32_t | inv_ixm42xxx_convert_odr_bitfield_to_us (uint32_t odr_bitfield)
| Converts IXM42XXX_ACCEL_CONFIG0_ODR_t or IXM42XXX_GYRO_CONFIG0_ODR_t enums to period expressed in us. More...
int | inv_ixm42xxx_set_accel_frequency (struct inv_ixm42xxx *s, const IXM42XXX_ACCEL_CONFIG0_ODR_t frequency)
| Configure accel Output Data Rate. More...
int | inv_ixm42xxx_set_gyro_frequency (struct inv_ixm42xxx *s, const IXM42XXX_GYRO_CONFIG0_ODR_t frequency)
| Configure gyro Output Data Rate. More...
int | inv_ixm42xxx_set_accel_fsr (struct inv_ixm42xxx *s, IXM42XXX_ACCEL_CONFIG0_FS_SEL_t accel_fsr_g)
| Set accel full scale range. More...
int | inv_ixm42xxx_set_gyro_fsr (struct inv_ixm42xxx *s, IXM42XXX_GYRO_CONFIG0_FS_SEL_t gyro_fsr_dps)
| Set gyro full scale range. More...
int | inv_ixm42xxx_get_accel_fsr (struct inv_ixm42xxx *s, IXM42XXX_ACCEL_CONFIG0_FS_SEL_t *accel_fsr_g)
| Access accel full scale range. More...
int | inv_ixm42xxx_get_gyro_fsr (struct inv_ixm42xxx *s, IXM42XXX_GYRO_CONFIG0_FS_SEL_t *gyro_fsr_dps)
| Access gyro full scale range. More...
int | inv_ixm42xxx_set_accel_lp_avg (struct inv_ixm42xxx *s, IXM42XXX_GYRO_ACCEL_CONFIG0_ACCEL_FILT_AVG_t acc_avg)
| Set accel Low-Power averaging value. More...
int | inv_ixm42xxx_set_accel_ln_bw (struct inv_ixm42xxx *s, IXM42XXX_GYRO_ACCEL_CONFIG0_ACCEL_FILT_BW_t acc_bw)
| Set accel Low-Noise bandwidth value. More...
int | inv_ixm42xxx_set_gyro_ln_bw (struct inv_ixm42xxx *s, IXM42XXX_GYRO_ACCEL_CONFIG0_GYRO_FILT_BW_t gyr_bw)
| Set gyro Low-Noise bandwidth value. More...
int | inv_ixm42xxx_reset_fifo (struct inv_ixm42xxx *s)
| reset IXM42XXX fifo More...
int | inv_ixm42xxx_enable_timestamp_to_register (struct inv_ixm42xxx *s)
| Enable the 20bits-timestamp register access to read in a reliable way the strobed timestamp. To do that, the fine clock is forced enabled at some power cost. More...
int | inv_ixm42xxx_disable_timestamp_to_register (struct inv_ixm42xxx *s)
| Disable the 20bits-timestamp register access. Register read always return 0's. More...
int | inv_ixm42xxx_get_current_timestamp (struct inv_ixm42xxx *s, uint32_t *icm_time)
| Get the timestamp value of ixm42xxx from register. More...
int | inv_ixm42xxx_enable_clkin_rtc (struct inv_ixm42xxx *s, uint8_t enable)
| Enable or disable CLKIN/RTC capability. More...
int | inv_ixm42xxx_get_clkin_rtc_status (struct inv_ixm42xxx *s)
| Get CLKIN/RTC feature status. More...
int | inv_ixm42xxx_enable_high_resolution_fifo (struct inv_ixm42xxx *s)
| Enable 20 bits raw acc and raw gyr data in fifo. More...
int | inv_ixm42xxx_disable_high_resolution_fifo (struct inv_ixm42xxx *s)
| Disable 20 bits raw acc and raw gyr data in fifo. More...
int | inv_ixm42xxx_configure_fifo (struct inv_ixm42xxx *s, INV_IXM42XXX_FIFO_CONFIG_t fifo_config)
| Configure Fifo to select the way data are gathered. More...
int | inv_ixm42xxx_configure_fifo_wm (struct inv_ixm42xxx *s, uint16_t wm)
| Configure Fifo watermark (also refered to as fifo threshold) More...
uint32_t | inv_ixm42xxx_get_fifo_timestamp_resolution_us_q24 (struct inv_ixm42xxx *s)
| Get FIFO timestamp resolution. More...
uint32_t | inv_ixm42xxx_get_reg_timestamp_resolution_us_q24 (struct inv_ixm42xxx *s)
| Get register timestamp resolution. More...
const char * | inv_ixm42xxx_get_version (void)
| Return driver version x.y.z-suffix as a char array. More...