![]() |
![]() |
|
SAILAPIGuide
1_00_00_09
|
#include "bmi160.h"Functions | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_init (struct bmi160_t *bmi160) |
| This function is used for initialize bus read and bus write functions assign the chip id and device address chip id is read in the register 0x00 bit from 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_write_reg (u8 v_addr_u8, u8 *v_data_u8, u8 v_len_u8) |
| This API write the data to the given register. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_reg (u8 v_addr_u8, u8 *v_data_u8, u8 v_len_u8) |
| This API reads the data from the given register. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fatal_err (u8 *v_fatal_err_u8) |
| This API used to reads the fatal error from the Register 0x02 bit 0 This flag will be reset only by power-on-reset and soft reset. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_err_code (u8 *v_err_code_u8) |
| This API used to read the error code from register 0x02 bit 1 to 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_i2c_fail_err (u8 *v_i2c_err_code_u8) |
| This API Reads the i2c error code from the Register 0x02 bit 5. This error occurred in I2C master detected. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_drop_cmd_err (u8 *v_drop_cmd_err_u8) |
| This API Reads the dropped command error from the register 0x02 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_data_rdy_err (u8 *v_mag_data_rdy_err_u8) |
| This API reads the magnetometer data ready interrupt not active. It reads from the error register 0x0x2 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_error_status (u8 *v_fatal_er_u8r, u8 *v_err_code_u8, u8 *v_i2c_fail_err_u8, u8 *v_drop_cmd_err_u8, u8 *v_mag_data_rdy_err_u8) |
| This API reads the error status from the error register 0x02 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_power_mode_stat (u8 *v_mag_power_mode_stat_u8) |
| This API reads the magnetometer power mode from PMU status register 0x03 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_power_mode_stat (u8 *v_gyro_power_mode_stat_u8) |
| This API reads the gyroscope power mode from PMU status register 0x03 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_power_mode_stat (u8 *v_accel_power_mode_stat_u8) |
| This API reads the accelerometer power mode from PMU status register 0x03 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_interface_normal (void) |
| This API switch mag interface to normal mode and confirm whether the mode switching done successfully or not. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_mag_x (s16 *v_mag_x_s16, u8 v_sensor_select_u8) |
| This API reads magnetometer data X values from the register 0x04 and 0x05. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_mag_y (s16 *v_mag_y_s16, u8 v_sensor_select_u8) |
| This API reads magnetometer data Y values from the register 0x06 and 0x07. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_mag_z (s16 *v_mag_z_s16, u8 v_sensor_select_u8) |
| This API reads magnetometer data Z values from the register 0x08 and 0x09. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_mag_r (s16 *v_mag_r_s16) |
| This API reads magnetometer data RHALL values from the register 0x0A and 0x0B. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_mag_xyz (struct bmi160_mag_t *mag, u8 v_sensor_select_u8) |
| This API reads magnetometer data X,Y,Z values from the register 0x04 to 0x09. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_mag_xyzr (struct bmi160_mag_xyzr_t *mag) |
| This API reads magnetometer data X,Y,Z,r values from the register 0x04 to 0x0B. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_gyro_x (s16 *v_gyro_x_s16) |
| This API reads gyro data X values form the register 0x0C and 0x0D. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_gyro_y (s16 *v_gyro_y_s16) |
| This API reads gyro data Y values form the register 0x0E and 0x0F. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_gyro_z (s16 *v_gyro_z_s16) |
| This API reads gyro data Z values form the register 0x10 and 0x11. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_gyro_xyz (struct bmi160_gyro_t *gyro) |
| This API reads gyro data X,Y,Z values from the register 0x0C to 0x11. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_accel_x (s16 *v_accel_x_s16) |
| This API reads accelerometer data X values form the register 0x12 and 0x13. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_accel_y (s16 *v_accel_y_s16) |
| This API reads accelerometer data Y values form the register 0x14 and 0x15. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_accel_z (s16 *v_accel_z_s16) |
| This API reads accelerometer data Z values form the register 0x16 and 0x17. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_accel_xyz (struct bmi160_accel_t *accel) |
| This API reads accelerometer data X,Y,Z values from the register 0x12 to 0x17. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_sensor_time (u32 *v_sensor_time_u32) |
| This API reads sensor_time from the register 0x18 to 0x1A. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_accel_gyro_sensor_time (u8 accel_gyro_sensortime_select, struct bmi160_sensortime_accel_gyro_data *accel_gyro_sensor_time) |
| This API reads sensor_time ,Accel data ,Gyro data from the register 0x0C to 0x1A. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_selftest (u8 *v_gyro_selftest_u8) |
| This API reads the Gyroscope self test status from the register 0x1B bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_manual_operation_stat (u8 *v_mag_manual_stat_u8) |
| This API reads the status of mag manual interface operation form the register 0x1B bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_foc_rdy (u8 *v_foc_rdy_u8) |
| This API reads the fast offset compensation status form the register 0x1B bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_nvm_rdy (u8 *v_nvm_rdy_u8) |
| This API Reads the nvm_rdy status from the resister 0x1B bit 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_data_rdy_mag (u8 *v_data_rdy_u8) |
| This API reads the status of mag data ready from the register 0x1B bit 5 The status get reset when one mag data register is read out. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_data_rdy (u8 *v_data_rdy_u8) |
| This API reads the status of gyro data ready form the register 0x1B bit 6 The status get reset when gyro data register read out. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_data_rdy (u8 *v_data_rdy_u8) |
| This API reads the status of accel data ready form the register 0x1B bit 7 The status get reset when accel data register read out. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_step_intr (u8 *v_step_intr_u8) |
| This API reads the step detector interrupt status from the register 0x1C bit 0 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_significant_intr (u8 *v_significant_intr_u8) |
| This API reads the significant motion interrupt status from the register 0x1C bit 1 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_any_motion_intr (u8 *v_any_motion_intr_u8) |
| This API reads the any motion interrupt status from the register 0x1C bit 2 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_pmu_trigger_intr (u8 *v_pmu_trigger_intr_u8) |
| This API reads the power mode trigger interrupt status from the register 0x1C bit 3 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_double_tap_intr (u8 *v_double_tap_intr_u8) |
| This API reads the double tab status from the register 0x1C bit 4 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_single_tap_intr (u8 *v_single_tap_intr_u8) |
| This API reads the single tab status from the register 0x1C bit 5 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_orient_intr (u8 *v_orient_intr_u8) |
| This API reads the orient status from the register 0x1C bit 6 flag is associated with a specific interrupt function. It is set when the orient interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat0_flat_intr (u8 *v_flat_intr_u8) |
| This API reads the flat interrupt status from the register 0x1C bit 7 flag is associated with a specific interrupt function. It is set when the flat interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat1_high_g_intr (u8 *v_high_g_intr_u8) |
| This API reads the high_g interrupt status from the register 0x1D bit 2 flag is associated with a specific interrupt function. It is set when the high g interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat1_low_g_intr (u8 *v_low_g_intr_u8) |
| This API reads the low g interrupt status from the register 0x1D bit 3 flag is associated with a specific interrupt function. It is set when the low g interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat1_data_rdy_intr (u8 *v_data_rdy_intr_u8) |
| This API reads data ready interrupt status from the register 0x1D bit 4 flag is associated with a specific interrupt function. It is set when the data ready interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat1_fifo_full_intr (u8 *v_fifo_full_intr_u8) |
| This API reads data ready FIFO full interrupt status from the register 0x1D bit 5 flag is associated with a specific interrupt function. It is set when the FIFO full interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat1_fifo_wm_intr (u8 *v_fifo_wm_intr_u8) |
| This API reads data ready FIFO watermark interrupt status from the register 0x1D bit 6 flag is associated with a specific interrupt function. It is set when the FIFO watermark interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat1_nomotion_intr (u8 *v_nomotion_intr_u8) |
| This API reads data ready no motion interrupt status from the register 0x1D bit 7 flag is associated with a specific interrupt function. It is set when the no motion interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_any_motion_first_x (u8 *v_anymotion_first_x_u8) |
| This API reads the status of any motion first x from the register 0x1E bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_any_motion_first_y (u8 *v_any_motion_first_y_u8) |
| This API reads the status of any motion first y interrupt from the register 0x1E bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_any_motion_first_z (u8 *v_any_motion_first_z_u8) |
| This API reads the status of any motion first z interrupt from the register 0x1E bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_any_motion_sign (u8 *v_anymotion_sign_u8) |
| This API reads the any motion sign status from the register 0x1E bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_tap_first_x (u8 *v_tap_first_x_u8) |
| This API reads the any motion tap first x status from the register 0x1E bit 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_tap_first_y (u8 *v_tap_first_y_u8) |
| This API reads the tap first y interrupt status from the register 0x1E bit 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_tap_first_z (u8 *v_tap_first_z_u8) |
| This API reads the tap first z interrupt status from the register 0x1E bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat2_tap_sign (u8 *v_tap_sign_u8) |
| This API reads the tap sign status from the register 0x1E bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_high_g_first_x (u8 *v_high_g_first_x_u8) |
| This API reads the high_g first x status from the register 0x1F bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_high_g_first_y (u8 *v_high_g_first_y_u8) |
| This API reads the high_g first y status from the register 0x1F bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_high_g_first_z (u8 *v_high_g_first_z_u8) |
| This API reads the high_g first z status from the register 0x1F bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_high_g_sign (u8 *v_high_g_sign_u8) |
| This API reads the high sign status from the register 0x1F bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_orient_xy (u8 *v_orient_xy_u8) |
| This API reads the status of orient_xy plane from the register 0x1F bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_orient_z (u8 *v_orient_z_u8) |
| This API reads the status of orient z plane from the register 0x1F bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_stat3_flat (u8 *v_flat_u8) |
| This API reads the flat status from the register 0x1F bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_temp (s16 *v_temp_s16) |
| This API reads the temperature of the sensor from the register 0x21 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_fifo_length (u32 *v_fifo_length_u32) |
| This API reads the of the sensor form the register 0x23 and 0x24 bit 0 to 7 and 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_fifo_data (u8 *v_fifodata_u8, u16 v_fifo_length_u16) |
| This API reads the fifo data of the sensor from the register 0x24. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_output_data_rate (u8 *v_output_data_rate_u8) |
| This API is used to get the accel output date rate form the register 0x40 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_output_data_rate (u8 v_output_data_rate_u8, u8 v_accel_bw_u8) |
| This API is used to set the accel output date rate form the register 0x40 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_bw (u8 *v_bw_u8) |
| This API is used to get the accel bandwidth from the register 0x40 bit 4 to 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_bw (u8 v_bw_u8) |
| This API is used to set the accel bandwidth from the register 0x40 bit 4 to 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_under_sampling_parameter (u8 *v_accel_under_sampling_u8) |
| This API is used to get the accel under sampling parameter form the register 0x40 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_under_sampling_parameter (u8 v_accel_under_sampling_u8) |
| This API is used to set the accel under sampling parameter form the register 0x40 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_range (u8 *v_range_u8) |
| This API is used to get the ranges (g values) of the accel from the register 0x41 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_range (u8 v_range_u8) |
| This API is used to set the ranges (g values) of the accel from the register 0x41 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_output_data_rate (u8 *v_output_data_rate_u8) |
| This API is used to get the gyroscope output data rate from the register 0x42 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_output_data_rate (u8 v_output_data_rate_u8) |
| This API is used to set the gyroscope output data rate from the register 0x42 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_bw (u8 *v_bw_u8) |
| This API is used to get the data of gyro from the register 0x42 bit 4 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_bw (u8 v_bw_u8) |
| This API is used to set the data of gyro from the register 0x42 bit 4 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_range (u8 *v_range_u8) |
| This API reads the range of gyro from the register 0x43 bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_range (u8 v_range_u8) |
| This API set the range of gyro from the register 0x43 bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_output_data_rate (u8 *v_output_data_rate_u8) |
| This API is used to get the output data rate of magnetometer from the register 0x44 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_output_data_rate (u8 v_output_data_rate_u8) |
| This API is used to set the output data rate of magnetometer from the register 0x44 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_down_gyro (u8 *v_fifo_down_gyro_u8) |
| This API is used to read Down sampling for gyro (2**downs_gyro) in the register 0x45 bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_down_gyro (u8 v_fifo_down_gyro_u8) |
| This API is used to set Down sampling for gyro (2**downs_gyro) in the register 0x45 bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_fifo_filter_data (u8 *v_gyro_fifo_filter_data_u8) |
| This API is used to read gyro fifo filter data from the register 0x45 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_fifo_filter_data (u8 v_gyro_fifo_filter_data_u8) |
| This API is used to set gyro fifo filter data from the register 0x45 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_down_accel (u8 *v_fifo_down_u8) |
| This API is used to read Down sampling for accel (2*downs_accel) from the register 0x45 bit 4 to 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_down_accel (u8 v_fifo_down_u8) |
| This API is used to set Down sampling for accel (2*downs_accel) from the register 0x45 bit 4 to 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_fifo_filter_data (u8 *accel_fifo_filter_u8) |
| This API is used to read accel fifo filter data from the register 0x45 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_fifo_filter_data (u8 v_accel_fifo_filter_u8) |
| This API is used to set accel fifo filter data from the register 0x45 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_wm (u8 *v_fifo_wm_u8) |
| This API is used to Trigger an interrupt when FIFO contains water mark level from the register 0x46 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_wm (u8 v_fifo_wm_u8) |
| This API is used to Trigger an interrupt when FIFO contains water mark level from the register 0x46 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_time_enable (u8 *v_fifo_time_enable_u8) |
| This API reads fifo sensor time frame after the last valid data frame form the register 0x47 bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_time_enable (u8 v_fifo_time_enable_u8) |
| This API set fifo sensor time frame after the last valid data frame form the register 0x47 bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_tag_intr2_enable (u8 *v_fifo_tag_intr2_u8) |
| This API reads FIFO tag interrupt2 enable status from the resister 0x47 bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_tag_intr2_enable (u8 v_fifo_tag_intr2_u8) |
| This API set FIFO tag interrupt2 enable status from the resister 0x47 bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_tag_intr1_enable (u8 *v_fifo_tag_intr1_u8) |
| This API get FIFO tag interrupt1 enable status from the resister 0x47 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_tag_intr1_enable (u8 v_fifo_tag_intr1_u8) |
| This API set FIFO tag interrupt1 enable status from the resister 0x47 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_header_enable (u8 *v_fifo_header_u8) |
| This API reads FIFO frame header enable from the register 0x47 bit 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_header_enable (u8 v_fifo_header_u8) |
| This API set FIFO frame header enable from the register 0x47 bit 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_mag_enable (u8 *v_fifo_mag_u8) |
| This API is used to read stored magnetometer data in FIFO (all 3 axes) from the register 0x47 bit 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_mag_enable (u8 v_fifo_mag_u8) |
| This API is used to set stored magnetometer data in FIFO (all 3 axes) from the register 0x47 bit 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_accel_enable (u8 *v_fifo_accel_u8) |
| This API is used to read stored accel data in FIFO (all 3 axes) from the register 0x47 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_accel_enable (u8 v_fifo_accel_u8) |
| This API is used to set stored accel data in FIFO (all 3 axes) from the register 0x47 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_fifo_gyro_enable (u8 *v_fifo_gyro_u8) |
| This API is used to read stored gyro data in FIFO (all 3 axes) from the resister 0x47 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_fifo_gyro_enable (u8 v_fifo_gyro_u8) |
| This API is used to set stored gyro data in FIFO (all 3 axes) from the resister 0x47 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_i2c_device_addr (u8 *v_i2c_device_addr_u8) |
| This API is used to read I2C device address of auxiliary mag from the register 0x4B bit 1 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_i2c_device_addr (u8 v_i2c_device_addr_u8) |
| This API is used to set I2C device address of auxiliary mag from the register 0x4B bit 1 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_burst (u8 *v_mag_burst_u8) |
| This API is used to read Burst data length (1,2,6,8 byte) from the register 0x4C bit 0 to 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_burst (u8 v_mag_burst_u8) |
| This API is used to set Burst data length (1,2,6,8 byte) from the register 0x4C bit 0 to 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_offset (u8 *v_mag_offset_u8) |
| This API is used to read trigger-readout offset in units of 2.5 ms. If set to zero, the offset is maximum, i.e. after readout a trigger is issued immediately. from the register 0x4C bit 2 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_offset (u8 v_mag_offset_u8) |
| This API is used to set trigger-readout offset in units of 2.5 ms. If set to zero, the offset is maximum, i.e. after readout a trigger is issued immediately. from the register 0x4C bit 2 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_manual_enable (u8 *v_mag_manual_u8) |
| This API is used to read Enable register access on MAG_IF[2] or MAG_IF[3] writes. This implies that the DATA registers are not updated with magnetometer values. Accessing magnetometer requires the magnetometer in normal mode in PMU_STATUS. from the register 0x4C bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_manual_enable (u8 v_mag_manual_u8) |
| This API is used to set Enable register access on MAG_IF[2] or MAG_IF[3] writes. This implies that the DATA registers are not updated with magnetometer values. Accessing magnetometer requires the magnetometer in normal mode in PMU_STATUS. from the register 0x4C bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_read_addr (u8 *v_mag_read_addr_u8) |
| This API is used to read data magnetometer address to read from the register 0x4D bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_read_addr (u8 v_mag_read_addr_u8) |
| This API is used to set magnetometer write address from the register 0x4D bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_write_addr (u8 *v_mag_write_addr_u8) |
| This API is used to read magnetometer write address from the register 0x4E bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_write_addr (u8 v_mag_write_addr_u8) |
| This API is used to set magnetometer write address from the register 0x4E bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_mag_write_data (u8 *v_mag_write_data_u8) |
| This API is used to read magnetometer write data form the resister 0x4F bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_mag_write_data (u8 v_mag_write_data_u8) |
| This API is used to set magnetometer write data form the resister 0x4F bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_enable_0 (u8 v_enable_u8, u8 *v_intr_enable_zero_u8) |
| This API is used to read interrupt enable from the register 0x50 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_enable_0 (u8 v_enable_u8, u8 v_intr_enable_zero_u8) |
| This API is used to set interrupt enable from the register 0x50 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_enable_1 (u8 v_enable_u8, u8 *v_intr_enable_1_u8) |
| This API is used to read interrupt enable byte1 from the register 0x51 bit 0 to 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_enable_1 (u8 v_enable_u8, u8 v_intr_enable_1_u8) |
| This API is used to set interrupt enable byte1 from the register 0x51 bit 0 to 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_enable_2 (u8 v_enable_u8, u8 *v_intr_enable_2_u8) |
| This API is used to read interrupt enable byte2 from the register bit 0x52 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_enable_2 (u8 v_enable_u8, u8 v_intr_enable_2_u8) |
| This API is used to set interrupt enable byte2 from the register bit 0x52 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_step_detector_enable (u8 *v_step_intr_u8) |
| This API is used to read interrupt enable step detector interrupt from the register bit 0x52 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_step_detector_enable (u8 v_step_intr_u8) |
| This API is used to set interrupt enable step detector interrupt from the register bit 0x52 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_edge_ctrl (u8 v_channel_u8, u8 *v_intr_edge_ctrl_u8) |
| Configure trigger condition of interrupt1 and interrupt2 pin from the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_edge_ctrl (u8 v_channel_u8, u8 v_intr_edge_ctrl_u8) |
| Configure trigger condition of interrupt1 and interrupt2 pin from the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_level (u8 v_channel_u8, u8 *v_intr_level_u8) |
| API used for get the Configure level condition of interrupt1 and interrupt2 pin form the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_level (u8 v_channel_u8, u8 v_intr_level_u8) |
| API used for set the Configure level condition of interrupt1 and interrupt2 pin form the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_output_type (u8 v_channel_u8, u8 *v_intr_output_type_u8) |
| API used to get configured output enable of interrupt1 and interrupt2 from the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_output_type (u8 v_channel_u8, u8 v_intr_output_type_u8) |
| API used to set output enable of interrupt1 and interrupt2 from the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_output_enable (u8 v_channel_u8, u8 *v_output_enable_u8) |
| API used to get the Output enable for interrupt1 and interrupt2 pin from the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_output_enable (u8 v_channel_u8, u8 v_output_enable_u8) |
| API used to set the Output enable for interrupt1 and interrupt2 pin from the register 0x53. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_latch_intr (u8 *v_latch_intr_u8) |
| This API is used to get the latch duration from the register 0x54 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_latch_intr (u8 v_latch_intr_u8) |
| This API is used to set the latch duration from the register 0x54 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_input_enable (u8 v_channel_u8, u8 *v_input_en_u8) |
| API used to get input enable for interrupt1 and interrupt2 pin from the register 0x54. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_input_enable (u8 v_channel_u8, u8 v_input_en_u8) |
| API used to set input enable for interrupt1 and interrupt2 pin from the register 0x54. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_low_g (u8 v_channel_u8, u8 *v_intr_low_g_u8) |
| reads the Low g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57 More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_low_g (u8 v_channel_u8, u8 v_intr_low_g_u8) |
| set the Low g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57 More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_high_g (u8 v_channel_u8, u8 *v_intr_high_g_u8) |
| Reads the HIGH g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_high_g (u8 v_channel_u8, u8 v_intr_high_g_u8) |
| Write the HIGH g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_any_motion (u8 v_channel_u8, u8 *v_intr_any_motion_u8) |
| Reads the Any motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_any_motion (u8 v_channel_u8, u8 v_intr_any_motion_u8) |
| Write the Any motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_nomotion (u8 v_channel_u8, u8 *v_intr_nomotion_u8) |
| Reads the No motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_nomotion (u8 v_channel_u8, u8 v_intr_nomotion_u8) |
| Write the No motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_double_tap (u8 v_channel_u8, u8 *v_intr_double_tap_u8) |
| Reads the Double Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_double_tap (u8 v_channel_u8, u8 v_intr_double_tap_u8) |
| Write the Double Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_single_tap (u8 v_channel_u8, u8 *v_intr_single_tap_u8) |
| Reads the Single Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_single_tap (u8 v_channel_u8, u8 v_intr_single_tap_u8) |
| Write the Single Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient (u8 v_channel_u8, u8 *v_intr_orient_u8) |
| Reads the Orient interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient (u8 v_channel_u8, u8 v_intr_orient_u8) |
| Write the Orient interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_flat (u8 v_channel_u8, u8 *v_intr_flat_u8) |
| Reads the Flat interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_flat (u8 v_channel_u8, u8 v_intr_flat_u8) |
| Write the Flat interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_pmu_trig (u8 v_channel_u8, u8 *v_intr_pmu_trig_u8) |
| Reads PMU trigger interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 0 and 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_pmu_trig (u8 v_channel_u8, u8 v_intr_pmu_trig_u8) |
| Write PMU trigger interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 0 and 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_fifo_full (u8 v_channel_u8, u8 *v_intr_fifo_full_u8) |
| Reads FIFO Full interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 5 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_fifo_full (u8 v_channel_u8, u8 v_intr_fifo_full_u8) |
| Write FIFO Full interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 5 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_fifo_wm (u8 v_channel_u8, u8 *v_intr_fifo_wm_u8) |
| Reads FIFO Watermark interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 6 and 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_fifo_wm (u8 v_channel_u8, u8 v_intr_fifo_wm_u8) |
| Write FIFO Watermark interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 6 and 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_data_rdy (u8 v_channel_u8, u8 *v_intr_data_rdy_u8) |
| Reads Data Ready interrupt mapped to interrupt1 and interrupt2 form the register 0x56. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_data_rdy (u8 v_channel_u8, u8 v_intr_data_rdy_u8) |
| Write Data Ready interrupt mapped to interrupt1 and interrupt2 form the register 0x56. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_tap_source (u8 *v_tap_source_u8) |
| This API reads data source for the interrupt engine for the single and double tap interrupts from the register 0x58 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_tap_source (u8 v_tap_source_u8) |
| This API write data source for the interrupt engine for the single and double tap interrupts from the register 0x58 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_low_high_source (u8 *v_low_high_source_u8) |
| This API Reads Data source for the interrupt engine for the low and high g interrupts from the register 0x58 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_low_high_source (u8 v_low_high_source_u8) |
| This API write Data source for the interrupt engine for the low and high g interrupts from the register 0x58 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_motion_source (u8 *v_motion_source_u8) |
| This API reads Data source for the interrupt engine for the nomotion and anymotion interrupts from the register 0x59 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_motion_source (u8 v_motion_source_u8) |
| This API write Data source for the interrupt engine for the nomotion and anymotion interrupts from the register 0x59 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_low_g_durn (u8 *v_low_g_durn_u8) |
| This API is used to read the low_g duration from register 0x5A bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_low_g_durn (u8 v_low_g_durn_u8) |
| This API is used to write the low_g duration from register 0x5A bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_low_g_thres (u8 *v_low_g_thres_u8) |
| This API is used to read Threshold definition for the low-g interrupt from the register 0x5B bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_low_g_thres (u8 v_low_g_thres_u8) |
| This API is used to write Threshold definition for the low-g interrupt from the register 0x5B bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_low_g_hyst (u8 *v_low_hyst_u8) |
| This API Reads Low-g interrupt hysteresis from the register 0x5C bit 0 to 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_low_g_hyst (u8 v_low_hyst_u8) |
| This API write Low-g interrupt hysteresis from the register 0x5C bit 0 to 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_low_g_mode (u8 *v_low_g_mode_u8) |
| This API reads Low-g interrupt mode from the register 0x5C bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_low_g_mode (u8 v_low_g_mode_u8) |
| This API write Low-g interrupt mode from the register 0x5C bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_high_g_hyst (u8 *v_high_g_hyst_u8) |
| This API reads High-g interrupt hysteresis from the register 0x5C bit 6 and 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_high_g_hyst (u8 v_high_g_hyst_u8) |
| This API write High-g interrupt hysteresis from the register 0x5C bit 6 and 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_high_g_durn (u8 *v_high_g_durn_u8) |
| This API is used to read Delay time definition for the high-g interrupt from the register 0x5D bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_high_g_durn (u8 v_high_g_durn_u8) |
| This API is used to write Delay time definition for the high-g interrupt from the register 0x5D bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_high_g_thres (u8 *v_high_g_thres_u8) |
| This API is used to read Threshold definition for the high-g interrupt from the register 0x5E 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_high_g_thres (u8 v_high_g_thres_u8) |
| This API is used to write Threshold definition for the high-g interrupt from the register 0x5E 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_any_motion_durn (u8 *v_any_motion_durn_u8) |
| This API reads any motion duration from the register 0x5F bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_any_motion_durn (u8 v_any_motion_durn_u8) |
| This API write any motion duration from the register 0x5F bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_slow_no_motion_durn (u8 *v_slow_no_motion_u8) |
| This API read Slow/no-motion interrupt trigger delay duration from the register 0x5F bit 2 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_slow_no_motion_durn (u8 v_slow_no_motion_u8) |
| This API write Slow/no-motion interrupt trigger delay duration from the register 0x5F bit 2 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_any_motion_thres (u8 *v_any_motion_thres_u8) |
| This API is used to read threshold definition for the any-motion interrupt from the register 0x60 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_any_motion_thres (u8 v_any_motion_thres_u8) |
| This API is used to write threshold definition for the any-motion interrupt from the register 0x60 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_slow_no_motion_thres (u8 *v_slow_no_motion_thres_u8) |
| This API is used to read threshold for the slow/no-motion interrupt from the register 0x61 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_slow_no_motion_thres (u8 v_slow_no_motion_thres_u8) |
| This API is used to write threshold for the slow/no-motion interrupt from the register 0x61 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_slow_no_motion_select (u8 *v_intr_slow_no_motion_select_u8) |
| This API is used to read the slow/no-motion selection from the register 0x62 bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_slow_no_motion_select (u8 v_intr_slow_no_motion_select_u8) |
| This API is used to write the slow/no-motion selection from the register 0x62 bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_significant_motion_select (u8 *v_intr_significant_motion_select_u8) |
| This API is used to select the significant or any motion interrupt from the register 0x62 bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_significant_motion_select (u8 v_intr_significant_motion_select_u8) |
| This API is used to write, select the significant or any motion interrupt from the register 0x62 bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_unmap_significant_motion_intr (u8 v_significant_u8) |
| This API used to unmap the signification motion interrupt. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_significant_motion_skip (u8 *v_int_sig_mot_skip_u8) |
| This API is used to read the significant skip time from the register 0x62 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_significant_motion_skip (u8 v_int_sig_mot_skip_u8) |
| This API is used to write the significant skip time from the register 0x62 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_significant_motion_proof (u8 *v_significant_motion_proof_u8) |
| This API is used to read the significant proof time from the register 0x62 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_significant_motion_proof (u8 v_significant_motion_proof_u8) |
| This API is used to write the significant proof time from the register 0x62 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_tap_durn (u8 *v_tap_durn_u8) |
| This API is used to get the tap duration from the register 0x63 bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_tap_durn (u8 v_tap_durn_u8) |
| This API is used to write the tap duration from the register 0x63 bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_tap_shock (u8 *v_tap_shock_u8) |
| This API read the tap shock duration from the register 0x63 bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_tap_shock (u8 v_tap_shock_u8) |
| This API write the tap shock duration from the register 0x63 bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_tap_quiet (u8 *v_tap_quiet_u8) |
| This API read tap quiet duration from the register 0x63 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_tap_quiet (u8 v_tap_quiet_u8) |
| This API write tap quiet duration from the register 0x63 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_tap_thres (u8 *v_tap_thres_u8) |
| This API read Threshold of the single/double tap interrupt from the register 0x64 bit 0 to 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_tap_thres (u8 v_tap_thres_u8) |
| This API write Threshold of the single/double tap interrupt from the register 0x64 bit 0 to 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient_mode (u8 *v_orient_mode_u8) |
| This API read the threshold for orientation interrupt from the register 0x65 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient_mode (u8 v_orient_mode_u8) |
| This API write the threshold for orientation interrupt from the register 0x65 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient_blocking (u8 *v_orient_blocking_u8) |
| This API read the orient blocking mode that is used for the generation of the orientation interrupt. from the register 0x65 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient_blocking (u8 v_orient_blocking_u8) |
| This API write the orient blocking mode that is used for the generation of the orientation interrupt. from the register 0x65 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient_hyst (u8 *v_orient_hyst_u8) |
| This API read Orient interrupt hysteresis, from the register 0x64 bit 4 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient_hyst (u8 v_orient_hyst_u8) |
| This API write Orient interrupt hysteresis, from the register 0x64 bit 4 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient_theta (u8 *v_orient_theta_u8) |
| This API read Orient blocking angle (0 to 44.8) from the register 0x66 bit 0 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient_theta (u8 v_orient_theta_u8) |
| This API write Orient blocking angle (0 to 44.8) from the register 0x66 bit 0 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient_ud_enable (u8 *v_orient_ud_u8) |
| This API read orient change of up/down bit from the register 0x66 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient_ud_enable (u8 v_orient_ud_u8) |
| This API write orient change of up/down bit from the register 0x66 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_orient_axes_enable (u8 *v_orient_axes_u8) |
| This API read orientation axes changes from the register 0x66 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_orient_axes_enable (u8 v_orient_axes_u8) |
| This API write orientation axes changes from the register 0x66 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_flat_theta (u8 *v_flat_theta_u8) |
| This API read Flat angle (0 to 44.8) for flat interrupt from the register 0x67 bit 0 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_flat_theta (u8 v_flat_theta_u8) |
| This API write Flat angle (0 to 44.8) for flat interrupt from the register 0x67 bit 0 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_flat_hold (u8 *v_flat_hold_u8) |
| This API read Flat interrupt hold time; from the register 0x68 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_flat_hold (u8 v_flat_hold_u8) |
| This API write Flat interrupt hold time; from the register 0x68 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_intr_flat_hyst (u8 *v_flat_hyst_u8) |
| This API read flat interrupt hysteresis from the register 0x68 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_intr_flat_hyst (u8 v_flat_hyst_u8) |
| This API write flat interrupt hysteresis from the register 0x68 bit 0 to 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_foc_accel_z (u8 *v_foc_accel_z_u8) |
| This API read accel offset compensation target value for z-axis from the register 0x69 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_foc_accel_z (u8 v_foc_accel_z_u8) |
| This API write accel offset compensation target value for z-axis from the register 0x69 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_foc_accel_y (u8 *v_foc_accel_y_u8) |
| This API read accel offset compensation target value for y-axis from the register 0x69 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_foc_accel_y (u8 v_foc_accel_y_u8) |
| This API write accel offset compensation target value for y-axis from the register 0x69 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_foc_accel_x (u8 *v_foc_accel_x_u8) |
| This API read accel offset compensation target value for x-axis is from the register 0x69 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_foc_accel_x (u8 v_foc_accel_x_u8) |
| This API write accel offset compensation target value for x-axis is from the register 0x69 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_foc_trigger (u8 v_axis_u8, u8 v_foc_accel_u8, s8 *v_accel_offset_s8) |
| This API writes accel fast offset compensation from the register 0x69 bit 0 to 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_accel_foc_trigger_xyz (u8 v_foc_accel_x_u8, u8 v_foc_accel_y_u8, u8 v_foc_accel_z_u8, s8 *v_accel_off_x_s8, s8 *v_accel_off_y_s8, s8 *v_accel_off_z_s8) |
| This API write fast accel offset compensation it writes all axis together.To the register 0x69 bit 0 to 5 FOC_X_AXIS - bit 4 and 5 FOC_Y_AXIS - bit 2 and 3 FOC_Z_AXIS - bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_foc_gyro_enable (u8 *v_foc_gyro_u8) |
| This API read gyro fast offset enable from the register 0x69 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_foc_gyro_enable (u8 v_foc_gyro_u8, s16 *v_gyro_off_x_s16, s16 *v_gyro_off_y_s16, s16 *v_gyro_off_z_s16) |
| This API write gyro fast offset enable from the register 0x69 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_nvm_prog_enable (u8 *v_nvm_prog_u8) |
| This API read NVM program enable from the register 0x6A bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_nvm_prog_enable (u8 v_nvm_prog_u8) |
| This API write NVM program enable from the register 0x6A bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_spi3 (u8 *v_spi3_u8) |
| This API read to configure SPI Interface Mode for primary and OIS interface from the register 0x6B bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_spi3 (u8 v_spi3_u8) |
| This API write to configure SPI Interface Mode for primary and OIS interface from the register 0x6B bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_i2c_wdt_select (u8 *v_i2c_wdt_u8) |
| This API read I2C Watchdog timer from the register 0x70 bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_i2c_wdt_select (u8 v_i2c_wdt_u8) |
| This API write I2C Watchdog timer from the register 0x70 bit 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_i2c_wdt_enable (u8 *v_i2c_wdt_u8) |
| This API read I2C watchdog enable from the register 0x70 bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_i2c_wdt_enable (u8 v_i2c_wdt_u8) |
| This API write I2C watchdog enable from the register 0x70 bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_if_mode (u8 *v_if_mode_u8) |
| This API read I2C interface configuration(if) moe from the register 0x6B bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_if_mode (u8 v_if_mode_u8) |
| This API write I2C interface configuration(if) moe from the register 0x6B bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_sleep_trigger (u8 *v_gyro_sleep_trigger_u8) |
| This API read gyro sleep trigger from the register 0x6C bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_sleep_trigger (u8 v_gyro_sleep_trigger_u8) |
| This API write gyro sleep trigger from the register 0x6C bit 0 to 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_wakeup_trigger (u8 *v_gyro_wakeup_trigger_u8) |
| This API read gyro wakeup trigger from the register 0x6C bit 3 and 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_wakeup_trigger (u8 v_gyro_wakeup_trigger_u8) |
| This API write gyro wakeup trigger from the register 0x6C bit 3 and 4. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_sleep_state (u8 *v_gyro_sleep_state_u8) |
| This API read Target state for gyro sleep mode from the register 0x6C bit 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_sleep_state (u8 v_gyro_sleep_state_u8) |
| This API write Target state for gyro sleep mode from the register 0x6C bit 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_wakeup_intr (u8 *v_gyro_wakeup_intr_u8) |
| This API read gyro wakeup interrupt from the register 0x6C bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_wakeup_intr (u8 v_gyro_wakeup_intr_u8) |
| This API write gyro wakeup interrupt from the register 0x6C bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_selftest_axis (u8 *v_accel_selftest_axis_u8) |
| This API read accel select axis to be self-test. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_selftest_axis (u8 v_accel_selftest_axis_u8) |
| This API write accel select axis to be self-test. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_selftest_sign (u8 *v_accel_selftest_sign_u8) |
| This API read accel self test axis sign from the register 0x6D bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_selftest_sign (u8 v_accel_selftest_sign_u8) |
| This API write accel self test axis sign from the register 0x6D bit 2. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_selftest_amp (u8 *v_accel_selftest_amp_u8) |
| This API read accel self test amplitude from the register 0x6D bit 3 select amplitude of the selftest deflection: More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_selftest_amp (u8 v_accel_selftest_amp_u8) |
| This API write accel self test amplitude from the register 0x6D bit 3 select amplitude of the selftest deflection: More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_selftest_start (u8 *v_gyro_selftest_start_u8) |
| This API read gyro self test trigger. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_selftest_start (u8 v_gyro_selftest_start_u8) |
| This API write gyro self test trigger. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_spi_enable (u8 *v_spi_enable_u8) |
| This API read primary interface selection I2C or SPI from the register 0x70 bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_spi_enable (u8 v_spi_enable_u8) |
| This API write primary interface selection I2C or SPI from the register 0x70 bit 0. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_spare0_trim (u8 *v_spare0_trim_u8) |
| This API read the spare zero form register 0x70 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_spare0_trim (u8 v_spare0_trim_u8) |
| This API write the spare zero form register 0x70 bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_nvm_counter (u8 *v_nvm_counter_u8) |
| This API read the NVM counter form register 0x70 bit 4 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_nvm_counter (u8 v_nvm_counter_u8) |
| This API write the NVM counter form register 0x70 bit 4 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_offset_compensation_xaxis (s8 *v_accel_off_x_s8) |
| This API read accel manual offset compensation of x axis from the register 0x71 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_offset_compensation_xaxis (s8 v_accel_off_x_s8) |
| This API write accel manual offset compensation of x axis from the register 0x71 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_offset_compensation_yaxis (s8 *v_accel_off_y_s8) |
| This API read accel manual offset compensation of y axis from the register 0x72 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_offset_compensation_yaxis (s8 v_accel_off_y_s8) |
| This API write accel manual offset compensation of y axis from the register 0x72 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_offset_compensation_zaxis (s8 *v_accel_off_z_s8) |
| This API read accel manual offset compensation of z axis from the register 0x73 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_offset_compensation_zaxis (s8 v_accel_off_z_s8) |
| This API write accel manual offset compensation of z axis from the register 0x73 bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_offset_compensation_xaxis (s16 *v_gyro_off_x_s16) |
| This API read gyro manual offset compensation of x axis from the register 0x74 bit 0 to 7 and 0x77 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_offset_compensation_xaxis (s16 v_gyro_off_x_s16) |
| This API write gyro manual offset compensation of x axis from the register 0x74 bit 0 to 7 and 0x77 bit 0 and 1. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_offset_compensation_yaxis (s16 *v_gyro_off_y_s16) |
| This API read gyro manual offset compensation of y axis from the register 0x75 bit 0 to 7 and 0x77 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_offset_compensation_yaxis (s16 v_gyro_off_y_s16) |
| This API write gyro manual offset compensation of y axis from the register 0x75 bit 0 to 7 and 0x77 bit 2 and 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_offset_compensation_zaxis (s16 *v_gyro_off_z_s16) |
| This API read gyro manual offset compensation of z axis from the register 0x76 bit 0 to 7 and 0x77 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_offset_compensation_zaxis (s16 v_gyro_off_z_s16) |
| This API write gyro manual offset compensation of z axis from the register 0x76 bit 0 to 7 and 0x77 bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_accel_offset_enable (u8 *v_accel_off_enable_u8) |
| This API read the accel offset enable bit from the register 0x77 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_accel_offset_enable (u8 v_accel_off_enable_u8) |
| This API write the accel offset enable bit from the register 0x77 bit 6. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_gyro_offset_enable (u8 *v_gyro_off_enable_u8) |
| This API read the accel offset enable bit from the register 0x77 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_gyro_offset_enable (u8 v_gyro_off_enable_u8) |
| This API write the accel offset enable bit from the register 0x77 bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_step_count (s16 *v_step_cnt_s16) |
| This API reads step counter value form the register 0x78 and 0x79. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_step_config (u16 *v_step_config_u16) |
| This API Reads step counter configuration from the register 0x7A bit 0 to 7 and from the register 0x7B bit 0 to 2 and 4 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_step_config (u16 v_step_config_u16) |
| This API write step counter configuration from the register 0x7A bit 0 to 7 and from the register 0x7B bit 0 to 2 and 4 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_step_counter_enable (u8 *v_step_counter_u8) |
| This API read enable step counter from the register 0x7B bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_step_counter_enable (u8 v_step_counter_u8) |
| This API write enable step counter from the register 0x7B bit 3. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_step_mode (u8 v_step_mode_u8) |
| This API set Step counter modes. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_map_significant_motion_intr (u8 v_significant_u8) |
| This API used to trigger the signification motion interrupt. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_map_step_detector_intr (u8 v_step_detector_u8) |
| This API used to trigger the step detector interrupt. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_clear_step_counter (void) |
| This API used to clear the step counter interrupt interrupt. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_command_register (u8 v_command_reg_u8) |
| This API writes value to the register 0x7E bit 0 to 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_target_page (u8 *v_target_page_u8) |
| This API read target page from the register 0x7F bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_target_page (u8 v_target_page_u8) |
| This API write target page from the register 0x7F bit 4 and 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_paging_enable (u8 *v_page_enable_u8) |
| This API read page enable from the register 0x7F bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_paging_enable (u8 v_page_enable_u8) |
| This API write page enable from the register 0x7F bit 7. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_get_pullup_configuration (u8 *v_control_pullup_u8) |
| This API read pull up configuration from the register 0X85 bit 4 an 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_pullup_configuration (u8 v_control_pullup_u8) |
| This API write pull up configuration from the register 0X85 bit 4 an 5. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_second_if_mag_compensate_xyz (struct bmi160_mag_fifo_data_t mag_fifo_data, u8 v_mag_second_if_u8) |
| This function used for reading the compensated data of mag secondary interface xyz data. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_fifo_header_data (u8 v_mag_if_u8, struct bmi160_fifo_data_header_t *header_data) |
| This function used for reading the fifo data of header mode. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_fifo_header_data_user_defined_length (u16 v_fifo_user_length_u16, u8 v_mag_if_mag_u8, struct bmi160_fifo_data_header_t *fifo_header_data) |
| This function used for reading the fifo data of header mode for using user defined length. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_fifo_headerless_mode (u8 v_mag_if_u8, struct bmi160_fifo_data_header_less_t *headerless_data) |
| This function used for reading the fifo data of header less mode. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_fifo_headerless_mode_user_defined_length (u16 v_fifo_user_length_u16, struct bmi160_fifo_data_header_less_t *fifo_data, u8 v_mag_if_mag_u8) |
| This function used for reading the fifo data of header less mode for using user defined length. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bmm150_mag_compensate_xyz (struct bmi160_mag_xyz_s32_t *mag_comp_xyz) |
| This function used for read the compensated value of mag Before start reading the mag compensated data's make sure the following two points are addressed. More... | |
| s32 | bmi160_bmm150_mag_compensate_X (s16 v_mag_data_x_s16, u16 v_data_r_u16) |
| This API used to get the compensated BMM150-X data the out put of X as s32 Before start reading the mag compensated X data make sure the following two points are addressed. More... | |
| s32 | bmi160_bmm150_mag_compensate_Y (s16 v_mag_data_y_s16, u16 v_data_r_u16) |
| This API used to get the compensated BMM150-Y data the out put of Y as s32 Before start reading the mag compensated Y data make sure the following two points are addressed. More... | |
| s32 | bmi160_bmm150_mag_compensate_Z (s16 v_mag_data_z_s16, u16 v_data_r_u16) |
| This API used to get the compensated BMM150-Z data the out put of Z as s32 Before start reading the mag compensated Z data make sure the following two points are addressed. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bmm150_mag_interface_init (u8 *v_chip_id_u8) |
| This function used for initialize the bmm150 sensor. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bmm150_mag_wakeup (void) |
| This function used for set the mag power control bit enable. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_bmm150_mag_and_secondary_if_power_mode (u8 v_mag_sec_if_pow_mode_u8) |
| This function used for set the magnetometer power mode. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bmm150_mag_set_power_mode (u8 v_mag_pow_mode_u8) |
| This function used for set the magnetometer power mode. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_set_bmm150_mag_presetmode (u8 v_mode_u8) |
| This API used to set the pre-set modes of bmm150 The pre-set mode setting is depend on data rate and xy and z repetitions. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_read_bmm150_mag_trim (void) |
| This function used for read the trim values of magnetometer. More... | |
FUNCTIONS FOR YAMAHA-YAS537 | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bst_yamaha_yas537_mag_interface_init (void) |
| This function used to init the YAMAH-YAS537. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bst_yamaha_yas537_calib_values (u8 v_rcoil_u8) |
| This function used for read the YAMAHA YAS537 calibration data. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bst_yas537_acquisition_command_register (u8 v_command_reg_data_u8) |
| This function used for YAS537 write data acquisition command register write. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bst_yamaha_yas537_read_xy1y2_data (u8 *v_coil_stat_u8, u8 *v_busy_u8, u16 *v_temperature_u16, u16 *xy1y2, u8 *v_ouflow_u8) |
| This function used for read the YAMAHA YAS537 xy1y2 data. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bst_yamaha_yas537_measure_xyz_data (u8 *v_ouflow_u8, struct yas_vector *vector_xyz) |
| This function used for read the YAMAHA YAS537 xy1y2 data. More... | |
| BMI160_RETURN_FUNCTION_TYPE | bmi160_bst_yamaha_yas537_fifo_xyz_data (u16 *a_xy1y2_u16, u8 v_over_flow_u8, u8 v_rcoil_u8, u8 v_busy_u8) |
| This function used for read the YAMAHA YAS537 xy1y2 data of fifo. More... | |
| struct bmi160_t * | bmi160_get_ptr (void) |
| This function used for reading bmi160_t structure. More... | |
Variables | |
| struct bmi160_t * | p_bmi160 |
| struct trim_data_t | mag_trim |
| u8 | V_bmm150_maual_auto_condition_u8 = BMI160_INIT_VALUE |
| struct bmi160_mag_fifo_data_t | mag_data |
| struct yas537_t | yas537_data |
| struct yas_vector | fifo_vector_xyz |
| struct bmi160_mag_xyz_s32_t | processed_data |
| BMI160_RETURN_FUNCTION_TYPE bmi160_init | ( | struct bmi160_t * | bmi160 | ) |
This function is used for initialize bus read and bus write functions assign the chip id and device address chip id is read in the register 0x00 bit from 0 to 7.
| bmi160 | : structure pointer |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_CHIP_ID__REG, BMI160_USER_PMU_TRIGGER_ADDR, bmi160_write_reg(), bmi160_t::chip_id, bmi160_t::dev_addr, and E_BMI160_COMM_RES.
| BMI160_RETURN_FUNCTION_TYPE bmi160_write_reg | ( | u8 | v_addr_u8, |
| u8 * | v_data_u8, | ||
| u8 | v_len_u8 | ||
| ) |
This API write the data to the given register.
| v_addr_u8 | -> Address of the register |
| v_data_u8 | -> The data from the register |
| v_len_u8 | -> no of bytes to read |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_init(), bmi160_map_significant_motion_intr(), bmi160_map_step_detector_intr(), and bmi160_unmap_significant_motion_intr().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_reg | ( | u8 | v_addr_u8, |
| u8 * | v_data_u8, | ||
| u8 | v_len_u8 | ||
| ) |
This API reads the data from the given register.
| v_addr_u8 | -> Address of the register |
| v_data_u8 | -> The data from the register |
| v_len_u8 | -> no of bytes to read |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bmm150_mag_wakeup(), bmi160_bst_yamaha_yas537_calib_values(), bmi160_bst_yamaha_yas537_mag_interface_init(), bmi160_map_significant_motion_intr(), bmi160_map_step_detector_intr(), bmi160_read_bmm150_mag_trim(), bmi160_read_fifo_headerless_mode_user_defined_length(), and bmi160_unmap_significant_motion_intr().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fatal_err | ( | u8 * | v_fatal_err_u8 | ) |
This API used to reads the fatal error from the Register 0x02 bit 0 This flag will be reset only by power-on-reset and soft reset.
| v_fatal_err_u8 | : The status of fatal error |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FATAL_ERR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_err_code | ( | u8 * | v_err_code_u8 | ) |
This API used to read the error code from register 0x02 bit 1 to 4.
| v_err_code_u8 | : The status of error codes
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ERR_CODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_i2c_fail_err | ( | u8 * | v_i2c_err_code_u8 | ) |
This API Reads the i2c error code from the Register 0x02 bit 5. This error occurred in I2C master detected.
| v_i2c_err_code_u8 | : The status of i2c fail error |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_I2C_FAIL_ERR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_drop_cmd_err | ( | u8 * | v_drop_cmd_err_u8 | ) |
This API Reads the dropped command error from the register 0x02 bit 6.
| v_drop_cmd_err_u8 | : The status of drop command error |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_DROP_CMD_ERR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_data_rdy_err | ( | u8 * | v_mag_data_rdy_err_u8 | ) |
This API reads the magnetometer data ready interrupt not active. It reads from the error register 0x0x2 bit 7.
| v_mag_data_rdy_err_u8 | : The status of mag data ready interrupt |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_MAG_DATA_RDY_ERR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_error_status | ( | u8 * | v_fatal_er_u8r, |
| u8 * | v_err_code_u8, | ||
| u8 * | v_i2c_fail_err_u8, | ||
| u8 * | v_drop_cmd_err_u8, | ||
| u8 * | v_mag_data_rdy_err_u8 | ||
| ) |
This API reads the error status from the error register 0x02 bit 0 to 7.
| v_mag_data_rdy_err_u8 | : The status of mag data ready interrupt |
| v_fatal_er_u8r | : The status of fatal error |
| v_err_code_u8 | : The status of error code |
| v_i2c_fail_err_u8 | : The status of I2C fail error |
| v_drop_cmd_err_u8 | : The status of drop command error |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ERR_STAT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_power_mode_stat | ( | u8 * | v_mag_power_mode_stat_u8 | ) |
This API reads the magnetometer power mode from PMU status register 0x03 bit 0 and 1.
| v_mag_power_mode_stat_u8 | : The value of mag power mode
|
| value | mode |
|---|---|
| 0x18 | MAG_MODE_SUSPEND |
| 0x19 | MAG_MODE_NORMAL |
| 0x1A | MAG_MODE_LOWPOWER |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_MAG_POWER_MODE_STAT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_read_bmm150_mag_trim(), and bmi160_set_mag_interface_normal().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_power_mode_stat | ( | u8 * | v_gyro_power_mode_stat_u8 | ) |
This API reads the gyroscope power mode from PMU status register 0x03 bit 2 and 3.
| v_gyro_power_mode_stat_u8 | : The value of gyro power mode
|
| value | mode |
|---|---|
| 0x14 | GYRO_MODE_SUSPEND |
| 0x15 | GYRO_MODE_NORMAL |
| 0x17 | GYRO_MODE_FASTSTARTUP |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_POWER_MODE_STAT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_power_mode_stat | ( | u8 * | v_accel_power_mode_stat_u8 | ) |
This API reads the accelerometer power mode from PMU status register 0x03 bit 4 and 5.
| v_accel_power_mode_stat_u8 | : The value of accel power mode
|
| value | mode |
|---|---|
| 0x11 | ACCEL_MODE_NORMAL |
| 0x12 | ACCEL_LOWPOWER |
| 0x10 | ACCEL_SUSPEND |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_POWER_MODE_STAT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), bmi160_read_bmm150_mag_trim(), and bmi160_set_bmm150_mag_and_secondary_if_power_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_interface_normal | ( | void | ) |
This API switch mag interface to normal mode and confirm whether the mode switching done successfully or not.
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DELAY, bmi160_get_mag_power_mode_stat(), BMI160_INIT_VALUE, BMI160_MAG_NOAMRL_SWITCH_TIMES, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_command_register(), bmi160_t::delay_msec, E_BMI160_COMM_RES, MAG_INTERFACE_PMU_ENABLE, MAG_MODE_NORMAL, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), bmi160_read_bmm150_mag_trim(), and bmi160_set_bmm150_mag_and_secondary_if_power_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_mag_x | ( | s16 * | v_mag_x_s16, |
| u8 | v_sensor_select_u8 | ||
| ) |
This API reads magnetometer data X values from the register 0x04 and 0x05.
The mag sensor data read form auxiliary mag
| v_mag_x_s16 | : The value of mag x | ||||||
| v_sensor_select_u8 | : Mag selection value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_MAG_X_DATA_LENGTH, BMI160_MAG_X_DATA_SIZE, BMI160_MAG_X_LSB_BYTE, BMI160_MAG_X_MSB_BYTE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_05_BITS, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_0_MAG_X_LSB__REG, BMI160_USER_DATA_MAG_X_LSB__REG, BST_AKM, BST_BMM, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_mag_y | ( | s16 * | v_mag_y_s16, |
| u8 | v_sensor_select_u8 | ||
| ) |
This API reads magnetometer data Y values from the register 0x06 and 0x07.
The mag sensor data read form auxiliary mag
| v_mag_y_s16 | : The value of mag y | ||||||
| v_sensor_select_u8 | : Mag selection value
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_MAG_Y_DATA_LENGTH, BMI160_MAG_Y_DATA_SIZE, BMI160_MAG_Y_LSB_BYTE, BMI160_MAG_Y_MSB_BYTE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_05_BITS, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_2_MAG_Y_LSB__REG, BMI160_USER_DATA_MAG_Y_LSB__REG, BST_AKM, BST_BMM, bmi160_t::dev_addr, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_mag_z | ( | s16 * | v_mag_z_s16, |
| u8 | v_sensor_select_u8 | ||
| ) |
This API reads magnetometer data Z values from the register 0x08 and 0x09.
The mag sensor data read form auxiliary mag
| v_mag_z_s16 | : The value of mag z | ||||||
| v_sensor_select_u8 | : Mag selection value
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_MAG_Z_DATA_LENGTH, BMI160_MAG_Z_DATA_SIZE, BMI160_MAG_Z_LSB_BYTE, BMI160_MAG_Z_MSB_BYTE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_4_MAG_Z_LSB__REG, BMI160_USER_DATA_MAG_Z_LSB__REG, BST_AKM, BST_BMM, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_mag_r | ( | s16 * | v_mag_r_s16 | ) |
This API reads magnetometer data RHALL values from the register 0x0A and 0x0B.
| v_mag_r_s16 | : The value of BMM150 r data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_MAG_R_DATA_LENGTH, BMI160_MAG_R_DATA_SIZE, BMI160_MAG_R_LSB_BYTE, BMI160_MAG_R_MSB_BYTE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_USER_DATA_6_RHALL_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_mag_xyz | ( | struct bmi160_mag_t * | mag, |
| u8 | v_sensor_select_u8 | ||
| ) |
This API reads magnetometer data X,Y,Z values from the register 0x04 to 0x09.
The mag sensor data read form auxiliary mag
| mag | : The value of mag xyz data | ||||||
| v_sensor_select_u8 | : Mag selection value
|
| 0 | -> Success |
| -1 | -> Error * |
References BMI160_DATA_FRAME_MAG_X_LSB_BYTE, BMI160_DATA_FRAME_MAG_X_MSB_BYTE, BMI160_DATA_FRAME_MAG_Y_LSB_BYTE, BMI160_DATA_FRAME_MAG_Y_MSB_BYTE, BMI160_DATA_FRAME_MAG_Z_LSB_BYTE, BMI160_DATA_FRAME_MAG_Z_MSB_BYTE, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_MAG_XYZ_DATA_LENGTH, BMI160_MAG_XYZ_DATA_SIZE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_05_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_0_MAG_X_LSB__REG, BMI160_USER_DATA_MAG_X_LSB__REG, BST_AKM, BST_BMM, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, bmi160_mag_t::x, bmi160_mag_t::y, and bmi160_mag_t::z.
Referenced by bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_mag_xyzr | ( | struct bmi160_mag_xyzr_t * | mag | ) |
This API reads magnetometer data X,Y,Z,r values from the register 0x04 to 0x0B.
| mag | : The value of mag-BMM150 xyzr data @note For mag data output rate configuration use the following function @note bmi160_set_mag_output_data_rate() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_DATA_FRAME_MAG_R_LSB_BYTE, BMI160_DATA_FRAME_MAG_R_MSB_BYTE, BMI160_DATA_FRAME_MAG_X_LSB_BYTE, BMI160_DATA_FRAME_MAG_X_MSB_BYTE, BMI160_DATA_FRAME_MAG_Y_LSB_BYTE, BMI160_DATA_FRAME_MAG_Y_MSB_BYTE, BMI160_DATA_FRAME_MAG_Z_LSB_BYTE, BMI160_DATA_FRAME_MAG_Z_MSB_BYTE, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_MAG_XYZR_DATA_LENGTH, BMI160_MAG_XYZR_DATA_SIZE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_05_BITS, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_USER_DATA_MAG_X_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, bmi160_mag_xyzr_t::r, bmi160_mag_xyzr_t::x, bmi160_mag_xyzr_t::y, and bmi160_mag_xyzr_t::z.
Referenced by bmi160_bmm150_mag_compensate_xyz().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_gyro_x | ( | s16 * | v_gyro_x_s16 | ) |
This API reads gyro data X values form the register 0x0C and 0x0D.
| v_gyro_x_s16 | : The value of gyro x data @note Gyro Configuration use the following function @note bmi160_set_gyro_output_data_rate() @note bmi160_set_gyro_bw() @note bmi160_set_gyro_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GYRO_DATA_LENGTH, BMI160_GYRO_X_DATA_SIZE, BMI160_GYRO_X_LSB_BYTE, BMI160_GYRO_X_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_8_GYRO_X_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_gyro_y | ( | s16 * | v_gyro_y_s16 | ) |
This API reads gyro data Y values form the register 0x0E and 0x0F.
| v_gyro_y_s16 | : The value of gyro y data @note Gyro Configuration use the following function @note bmi160_set_gyro_output_data_rate() @note bmi160_set_gyro_bw() @note bmi160_set_gyro_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error result of communication routines |
References BMI160_GYRO_DATA_LENGTH, BMI160_GYRO_Y_DATA_SIZE, BMI160_GYRO_Y_LSB_BYTE, BMI160_GYRO_Y_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_10_GYRO_Y_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_gyro_z | ( | s16 * | v_gyro_z_s16 | ) |
This API reads gyro data Z values form the register 0x10 and 0x11.
| v_gyro_z_s16 | : The value of gyro z data @note Gyro Configuration use the following function @note bmi160_set_gyro_output_data_rate() @note bmi160_set_gyro_bw() @note bmi160_set_gyro_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GYRO_DATA_LENGTH, BMI160_GYRO_Z_DATA_SIZE, BMI160_GYRO_Z_LSB_BYTE, BMI160_GYRO_Z_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_12_GYRO_Z_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_gyro_xyz | ( | struct bmi160_gyro_t * | gyro | ) |
This API reads gyro data X,Y,Z values from the register 0x0C to 0x11.
| gyro | : The value of gyro xyz @note Gyro Configuration use the following function @note bmi160_set_gyro_output_data_rate() @note bmi160_set_gyro_bw() @note bmi160_set_gyro_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_DATA_FRAME_GYRO_X_LSB_BYTE, BMI160_DATA_FRAME_GYRO_X_MSB_BYTE, BMI160_DATA_FRAME_GYRO_Y_LSB_BYTE, BMI160_DATA_FRAME_GYRO_Y_MSB_BYTE, BMI160_DATA_FRAME_GYRO_Z_LSB_BYTE, BMI160_DATA_FRAME_GYRO_Z_MSB_BYTE, BMI160_GYRO_XYZ_DATA_LENGTH, BMI160_GYRO_XYZ_DATA_SIZE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_8_GYRO_X_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, bmi160_gyro_t::x, bmi160_gyro_t::y, and bmi160_gyro_t::z.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_accel_x | ( | s16 * | v_accel_x_s16 | ) |
This API reads accelerometer data X values form the register 0x12 and 0x13.
| v_accel_x_s16 | : The value of accel x @note For accel configuration use the following functions @note bmi160_set_accel_output_data_rate() @note bmi160_set_accel_bw() @note bmi160_set_accel_under_sampling_parameter() @note bmi160_set_accel_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_ACCEL_DATA_LENGTH, BMI160_ACCEL_X_DATA_SIZE, BMI160_ACCEL_X_LSB_BYTE, BMI160_ACCEL_X_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_14_ACCEL_X_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_accel_y | ( | s16 * | v_accel_y_s16 | ) |
This API reads accelerometer data Y values form the register 0x14 and 0x15.
| v_accel_y_s16 | : The value of accel y @note For accel configuration use the following functions @note bmi160_set_accel_output_data_rate() @note bmi160_set_accel_bw() @note bmi160_set_accel_under_sampling_parameter() @note bmi160_set_accel_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_ACCEL_DATA_LENGTH, BMI160_ACCEL_Y_DATA_SIZE, BMI160_ACCEL_Y_LSB_BYTE, BMI160_ACCEL_Y_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_16_ACCEL_Y_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_accel_z | ( | s16 * | v_accel_z_s16 | ) |
This API reads accelerometer data Z values form the register 0x16 and 0x17.
| v_accel_z_s16 | : The value of accel z @note For accel configuration use the following functions @note bmi160_set_accel_output_data_rate() @note bmi160_set_accel_bw() @note bmi160_set_accel_under_sampling_parameter() @note bmi160_set_accel_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_ACCEL_DATA_LENGTH, BMI160_ACCEL_Z_DATA_SIZE, BMI160_ACCEL_Z_LSB_BYTE, BMI160_ACCEL_Z_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_18_ACCEL_Z_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_accel_xyz | ( | struct bmi160_accel_t * | accel | ) |
This API reads accelerometer data X,Y,Z values from the register 0x12 to 0x17.
| accel | :The value of accel xyz @note For accel configuration use the following functions @note bmi160_set_accel_output_data_rate() @note bmi160_set_accel_bw() @note bmi160_set_accel_under_sampling_parameter() @note bmi160_set_accel_range() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_ACCEL_XYZ_DATA_LENGTH, BMI160_ACCEL_XYZ_DATA_SIZE, BMI160_DATA_FRAME_ACCEL_X_LSB_BYTE, BMI160_DATA_FRAME_ACCEL_X_MSB_BYTE, BMI160_DATA_FRAME_ACCEL_Y_LSB_BYTE, BMI160_DATA_FRAME_ACCEL_Y_MSB_BYTE, BMI160_DATA_FRAME_ACCEL_Z_LSB_BYTE, BMI160_DATA_FRAME_ACCEL_Z_MSB_BYTE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_14_ACCEL_X_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, bmi160_accel_t::x, bmi160_accel_t::y, and bmi160_accel_t::z.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_sensor_time | ( | u32 * | v_sensor_time_u32 | ) |
This API reads sensor_time from the register 0x18 to 0x1A.
| v_sensor_time_u32 | : The value of sensor time |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SENSOR_TIME_DATA_SIZE, BMI160_SENSOR_TIME_LENGTH, BMI160_SENSOR_TIME_LSB_BYTE, BMI160_SENSOR_TIME_MSB_BYTE, BMI160_SENSOR_TIME_XLSB_BYTE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_SHIFT_BIT_POSITION_BY_16_BITS, BMI160_USER_SENSORTIME_0_SENSOR_TIME_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_accel_gyro_sensor_time | ( | u8 | accel_gyro_sensortime_select, |
| struct bmi160_sensortime_accel_gyro_data * | accel_gyro_sensor_time | ||
| ) |
This API reads sensor_time ,Accel data ,Gyro data from the register 0x0C to 0x1A.
| accel_gyro_sensortime_select | : The value of configuration
| ||||||
| accel_gyro_sensor_time | : the value of accel gyro and sensor time data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References bmi160_sensortime_accel_gyro_data::accel, BMI160_ACCEL_SENSORTIME_DATA, BMI160_ACCEL_SENSORTIME_DATA_SIZE, BMI160_DATA_FRAME_ACCEL_X_LSB_BYTE, BMI160_DATA_FRAME_ACCEL_X_MSB_BYTE, BMI160_DATA_FRAME_ACCEL_Y_LSB_BYTE, BMI160_DATA_FRAME_ACCEL_Y_MSB_BYTE, BMI160_DATA_FRAME_ACCEL_Z_LSB_BYTE, BMI160_DATA_FRAME_ACCEL_Z_MSB_BYTE, BMI160_DATA_FRAME_GYRO_X_LSB_BYTE, BMI160_DATA_FRAME_GYRO_X_MSB_BYTE, BMI160_DATA_FRAME_GYRO_Y_LSB_BYTE, BMI160_DATA_FRAME_GYRO_Y_MSB_BYTE, BMI160_DATA_FRAME_GYRO_Z_LSB_BYTE, BMI160_DATA_FRAME_GYRO_Z_MSB_BYTE, BMI160_GYRO_ACCEL_SENSORTIME_DATA, BMI160_GYRO_ACCEL_SENSORTIME_DATA_SIZE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_SHIFT_BIT_POSITION_BY_16_BITS, BMI160_USER_DATA_14_ACCEL_X_LSB__REG, BMI160_USER_DATA_8_GYRO_X_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, bmi160_sensortime_accel_gyro_data::gyro, bmi160_sensortime_accel_gyro_data::v_sensor_time_u32, bmi160_gyro_t::x, bmi160_accel_t::x, bmi160_gyro_t::y, bmi160_accel_t::y, bmi160_gyro_t::z, and bmi160_accel_t::z.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_selftest | ( | u8 * | v_gyro_selftest_u8 | ) |
This API reads the Gyroscope self test status from the register 0x1B bit 1.
| v_gyro_selftest_u8 | : The value of gyro self test status
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_GYRO_SELFTEST_OK__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_manual_operation_stat | ( | u8 * | v_mag_manual_stat_u8 | ) |
This API reads the status of mag manual interface operation form the register 0x1B bit 2.
| v_mag_manual_stat_u8 | : The value of mag manual operation status
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_MAG_MANUAL_OPERATION__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_foc_rdy | ( | u8 * | v_foc_rdy_u8 | ) |
This API reads the fast offset compensation status form the register 0x1B bit 3.
| v_foc_rdy_u8 | : The status of fast compensation |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_FOC_RDY__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_accel_foc_trigger_xyz(), bmi160_set_accel_foc_trigger(), and bmi160_set_foc_gyro_enable().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_nvm_rdy | ( | u8 * | v_nvm_rdy_u8 | ) |
This API Reads the nvm_rdy status from the resister 0x1B bit 4.
| v_nvm_rdy_u8 | : The value of NVM ready status
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_NVM_RDY__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_data_rdy_mag | ( | u8 * | v_data_rdy_u8 | ) |
This API reads the status of mag data ready from the register 0x1B bit 5 The status get reset when one mag data register is read out.
| v_data_rdy_u8 | : The value of mag data ready status |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_DATA_RDY_MAG__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_data_rdy | ( | u8 * | v_data_rdy_u8 | ) |
This API reads the status of gyro data ready form the register 0x1B bit 6 The status get reset when gyro data register read out.
| v_data_rdy_u8 | : The value of gyro data ready |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_DATA_RDY_GYRO__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_data_rdy | ( | u8 * | v_data_rdy_u8 | ) |
This API reads the status of accel data ready form the register 0x1B bit 7 The status get reset when accel data register read out.
| v_data_rdy_u8 | : The value of accel data ready status |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STAT_DATA_RDY_ACCEL__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_step_intr | ( | u8 * | v_step_intr_u8 | ) |
This API reads the step detector interrupt status from the register 0x1C bit 0 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_step_intr_u8 | : The status of step detector interrupt |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_STEP_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_significant_intr | ( | u8 * | v_significant_intr_u8 | ) |
This API reads the significant motion interrupt status from the register 0x1C bit 1 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_significant_intr_u8 | : The status of step motion interrupt |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_SIGNIFICANT_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_any_motion_intr | ( | u8 * | v_any_motion_intr_u8 | ) |
This API reads the any motion interrupt status from the register 0x1C bit 2 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_any_motion_intr_u8 | : The status of any-motion interrupt |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_ANY_MOTION__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_pmu_trigger_intr | ( | u8 * | v_pmu_trigger_intr_u8 | ) |
This API reads the power mode trigger interrupt status from the register 0x1C bit 3 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_pmu_trigger_intr_u8 | : The status of power mode trigger interrupt |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_PMU_TRIGGER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_double_tap_intr | ( | u8 * | v_double_tap_intr_u8 | ) |
This API reads the double tab status from the register 0x1C bit 4 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_double_tap_intr_u8 | :The status of double tab interrupt @note Double tap interrupt can be configured by the following functions @note INTERRUPT MAPPING @note bmi160_set_intr_double_tap() @note AXIS MAPPING @note bmi160_get_stat2_tap_first_x() @note bmi160_get_stat2_tap_first_y() @note bmi160_get_stat2_tap_first_z() @note DURATION @note bmi160_set_intr_tap_durn() @note THRESHOLD @note bmi160_set_intr_tap_thres() @note TAP QUIET @note bmi160_set_intr_tap_quiet() @note TAP SHOCK @note bmi160_set_intr_tap_shock() @note TAP SOURCE @note bmi160_set_intr_tap_source() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_DOUBLE_TAP_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_single_tap_intr | ( | u8 * | v_single_tap_intr_u8 | ) |
This API reads the single tab status from the register 0x1C bit 5 flag is associated with a specific interrupt function. It is set when the single tab interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_single_tap_intr_u8 | :The status of single tap interrupt @note Single tap interrupt can be configured by the following functions @note INTERRUPT MAPPING @note bmi160_set_intr_single_tap() @note AXIS MAPPING @note bmi160_get_stat2_tap_first_x() @note bmi160_get_stat2_tap_first_y() @note bmi160_get_stat2_tap_first_z() @note DURATION @note bmi160_set_intr_tap_durn() @note THRESHOLD @note bmi160_set_intr_tap_thres() @note TAP QUIET @note bmi160_set_intr_tap_quiet() @note TAP SHOCK @note bmi160_set_intr_tap_shock() @note TAP SOURCE @note bmi160_set_intr_tap_source() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_SINGLE_TAP_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_orient_intr | ( | u8 * | v_orient_intr_u8 | ) |
This API reads the orient status from the register 0x1C bit 6 flag is associated with a specific interrupt function. It is set when the orient interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_orient_intr_u8 | : The status of orient interrupt @note For orient interrupt configuration use the following functions @note STATUS @note bmi160_get_stat0_orient_intr() @note AXIS MAPPING @note bmi160_get_stat3_orient_xy() @note bmi160_get_stat3_orient_z() @note bmi160_set_intr_orient_axes_enable() @note INTERRUPT MAPPING @note bmi160_set_intr_orient() @note INTERRUPT OUTPUT @note bmi160_set_intr_orient_ud_enable() @note THETA @note bmi160_set_intr_orient_theta() @note HYSTERESIS @note bmi160_set_intr_orient_hyst() @note BLOCKING @note bmi160_set_intr_orient_blocking() @note MODE @note bmi160_set_intr_orient_mode() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_ORIENT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat0_flat_intr | ( | u8 * | v_flat_intr_u8 | ) |
This API reads the flat interrupt status from the register 0x1C bit 7 flag is associated with a specific interrupt function. It is set when the flat interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_flat_intr_u8 | : The status of flat interrupt @note For flat configuration use the following functions @note STATS @note bmi160_get_stat0_flat_intr() @note bmi160_get_stat3_flat() @note INTERRUPT MAPPING @note bmi160_set_intr_flat() @note THETA @note bmi160_set_intr_flat_theta() @note HOLD TIME @note bmi160_set_intr_flat_hold() @note HYSTERESIS @note bmi160_set_intr_flat_hyst() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_0_FLAT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat1_high_g_intr | ( | u8 * | v_high_g_intr_u8 | ) |
This API reads the high_g interrupt status from the register 0x1D bit 2 flag is associated with a specific interrupt function. It is set when the high g interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_high_g_intr_u8 | : The status of high_g interrupt @note High_g interrupt configured by following functions @note STATUS @note bmi160_get_stat1_high_g_intr() @note AXIS MAPPING @note bmi160_get_stat3_high_g_first_x() @note bmi160_get_stat3_high_g_first_y() @note bmi160_get_stat3_high_g_first_z() @note SIGN MAPPING @note bmi160_get_stat3_high_g_first_sign() @note INTERRUPT MAPPING @note bmi160_set_intr_high_g() @note HYSTERESIS @note bmi160_set_intr_high_g_hyst() @note DURATION @note bmi160_set_intr_high_g_durn() @note THRESHOLD @note bmi160_set_intr_high_g_thres() @note SOURCE @note bmi160_set_intr_low_high_source() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_1_HIGH_G_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat1_low_g_intr | ( | u8 * | v_low_g_intr_u8 | ) |
This API reads the low g interrupt status from the register 0x1D bit 3 flag is associated with a specific interrupt function. It is set when the low g interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_low_g_intr_u8 | : The status of low_g interrupt @note Low_g interrupt configured by following functions @note STATUS @note bmi160_get_stat1_low_g_intr() @note INTERRUPT MAPPING @note bmi160_set_intr_low_g() @note SOURCE @note bmi160_set_intr_low_high_source() @note DURATION @note bmi160_set_intr_low_g_durn() @note THRESHOLD @note bmi160_set_intr_low_g_thres() @note HYSTERESIS @note bmi160_set_intr_low_g_hyst() @note MODE @note bmi160_set_intr_low_g_mode() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_1_LOW_G_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat1_data_rdy_intr | ( | u8 * | v_data_rdy_intr_u8 | ) |
This API reads data ready interrupt status from the register 0x1D bit 4 flag is associated with a specific interrupt function. It is set when the data ready interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_data_rdy_intr_u8 | : The status of data ready interrupt @note Data ready interrupt configured by following functions @note STATUS @note bmi160_get_stat1_data_rdy_intr() @note INTERRUPT MAPPING @note bmi160_set_intr_data_rdy() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_1_DATA_RDY_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat1_fifo_full_intr | ( | u8 * | v_fifo_full_intr_u8 | ) |
This API reads data ready FIFO full interrupt status from the register 0x1D bit 5 flag is associated with a specific interrupt function. It is set when the FIFO full interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_fifo_full_intr_u8 | : The status of fifo full interrupt @note FIFO full interrupt can be configured by following functions @note bmi160_set_intr_fifo_full() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_1_FIFO_FULL_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat1_fifo_wm_intr | ( | u8 * | v_fifo_wm_intr_u8 | ) |
This API reads data ready FIFO watermark interrupt status from the register 0x1D bit 6 flag is associated with a specific interrupt function. It is set when the FIFO watermark interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_fifo_wm_intr_u8 | : The status of fifo water mark interrupt @note FIFO full interrupt can be configured by following functions @note bmi160_set_intr_fifo_wm() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_1_FIFO_WM_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat1_nomotion_intr | ( | u8 * | v_nomotion_intr_u8 | ) |
This API reads data ready no motion interrupt status from the register 0x1D bit 7 flag is associated with a specific interrupt function. It is set when the no motion interrupt triggers. The setting of INT_LATCH controls if the interrupt signal and hence the respective interrupt flag will be permanently latched, temporarily latched or not latched.
| v_nomotion_intr_u8 | : The status of no motion interrupt @note No motion interrupt can be configured by following function @note STATUS @note bmi160_get_stat1_nomotion_intr() @note INTERRUPT MAPPING @note bmi160_set_intr_nomotion() @note DURATION @note bmi160_set_intr_slow_no_motion_durn() @note THRESHOLD @note bmi160_set_intr_slow_no_motion_thres() @note SLOW/NO MOTION SELECT @note bmi160_set_intr_slow_no_motion_select() @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_1_NOMOTION_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_any_motion_first_x | ( | u8 * | v_anymotion_first_x_u8 | ) |
This API reads the status of any motion first x from the register 0x1E bit 0.
| v_anymotion_first_x_u8 | : The status of any motion first x interrupt
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_ANY_MOTION_FIRST_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_any_motion_first_y | ( | u8 * | v_any_motion_first_y_u8 | ) |
This API reads the status of any motion first y interrupt from the register 0x1E bit 1.
| v_any_motion_first_y_u8 | : The status of any motion first y interrupt
|
@return results of bus communication function
@retval 0 -> Success
@retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_ANY_MOTION_FIRST_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_any_motion_first_z | ( | u8 * | v_any_motion_first_z_u8 | ) |
This API reads the status of any motion first z interrupt from the register 0x1E bit 2.
| v_any_motion_first_z_u8 | : The status of any motion first z interrupt
|
@return results of bus communication function
@retval 0 -> Success
@retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_ANY_MOTION_FIRST_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_any_motion_sign | ( | u8 * | v_anymotion_sign_u8 | ) |
This API reads the any motion sign status from the register 0x1E bit 3.
| v_anymotion_sign_u8 | : The status of any motion sign
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_ANY_MOTION_SIGN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_tap_first_x | ( | u8 * | v_tap_first_x_u8 | ) |
This API reads the any motion tap first x status from the register 0x1E bit 4.
| v_tap_first_x_u8 | :The status of any motion tap first x
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_TAP_FIRST_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_tap_first_y | ( | u8 * | v_tap_first_y_u8 | ) |
This API reads the tap first y interrupt status from the register 0x1E bit 5.
| v_tap_first_y_u8 | :The status of tap first y interrupt
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_TAP_FIRST_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_tap_first_z | ( | u8 * | v_tap_first_z_u8 | ) |
This API reads the tap first z interrupt status from the register 0x1E bit 6.
| v_tap_first_z_u8 | :The status of tap first z interrupt
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_TAP_FIRST_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat2_tap_sign | ( | u8 * | v_tap_sign_u8 | ) |
This API reads the tap sign status from the register 0x1E bit 7.
| v_tap_sign_u8 | : The status of tap sign
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_2_TAP_SIGN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_high_g_first_x | ( | u8 * | v_high_g_first_x_u8 | ) |
This API reads the high_g first x status from the register 0x1F bit 0.
| v_high_g_first_x_u8 | :The status of high_g first x
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_HIGH_G_FIRST_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_high_g_first_y | ( | u8 * | v_high_g_first_y_u8 | ) |
This API reads the high_g first y status from the register 0x1F bit 1.
| v_high_g_first_y_u8 | : The status of high_g first y
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_HIGH_G_FIRST_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_high_g_first_z | ( | u8 * | v_high_g_first_z_u8 | ) |
This API reads the high_g first z status from the register 0x1F bit 3.
| v_high_g_first_z_u8 | : The status of high_g first z
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_HIGH_G_FIRST_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_high_g_sign | ( | u8 * | v_high_g_sign_u8 | ) |
This API reads the high sign status from the register 0x1F bit 3.
| v_high_g_sign_u8 | :The status of high sign
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_HIGH_G_SIGN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_orient_xy | ( | u8 * | v_orient_xy_u8 | ) |
This API reads the status of orient_xy plane from the register 0x1F bit 4 and 5.
| v_orient_xy_u8 | :The status of orient_xy plane
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_ORIENT_XY__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_orient_z | ( | u8 * | v_orient_z_u8 | ) |
This API reads the status of orient z plane from the register 0x1F bit 6.
| v_orient_z_u8 | :The status of orient z
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_ORIENT_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_stat3_flat | ( | u8 * | v_flat_u8 | ) |
This API reads the flat status from the register 0x1F bit 7.
| v_flat_u8 | : The status of flat interrupt
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_STAT_3_FLAT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_temp | ( | s16 * | v_temp_s16 | ) |
This API reads the temperature of the sensor from the register 0x21 bit 0 to 7.
| v_temp_s16 | : The value of temperature |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_TEMP_DATA_LENGTH, BMI160_TEMP_DATA_SIZE, BMI160_TEMP_LSB_BYTE, BMI160_TEMP_MSB_BYTE, BMI160_USER_TEMP_LSB_VALUE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_fifo_length | ( | u32 * | v_fifo_length_u32 | ) |
This API reads the of the sensor form the register 0x23 and 0x24 bit 0 to 7 and 0 to 2.
this byte counter is updated each time a complete frame was read or writtern
| v_fifo_length_u32 | : The value of fifo byte counter |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_FIFO_DATA_LENGTH, BMI160_FIFO_DATA_SIZE, BMI160_FIFO_LENGTH_LSB_BYTE, BMI160_FIFO_LENGTH_MSB_BYTE, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_FIFO_BYTE_COUNTER_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_fifo_data | ( | u8 * | v_fifodata_u8, |
| u16 | v_fifo_length_u16 | ||
| ) |
This API reads the fifo data of the sensor from the register 0x24.
Data format depends on the setting of register FIFO_CONFIG
| v_fifodata_u8 | : Pointer holding the fifo data |
| v_fifo_length_u16 | : The value of fifo length maximum 1024 |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_DATA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_read_fifo_header_data_user_defined_length(), and bmi160_read_fifo_headerless_mode_user_defined_length().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_output_data_rate | ( | u8 * | v_output_data_rate_u8 | ) |
This API is used to get the accel output date rate form the register 0x40 bit 0 to 3.
| v_output_data_rate_u8 | :The value of accel output date rate
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_CONFIG_OUTPUT_DATA_RATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_output_data_rate | ( | u8 | v_output_data_rate_u8, |
| u8 | v_accel_bw_u8 | ||
| ) |
This API is used to set the accel output date rate form the register 0x40 bit 0 to 3.
| v_output_data_rate_u8 | :The value of accel output date rate
| ||||||||||||||||||||||||||||
| v_accel_bw_u8 | :The value of accel selected accel bandwidth
|
@note Verify the accel bandwidth before setting the
output data rate
| bandwidth | output data rate | under sampling |
|---|---|---|
| OSR4 | 12.5 TO 1600 | 0 |
| OSR2 | 12.5 TO 1600 | 0 |
| NORMAL | 12.5 TO 1600 | 0 |
| CIC | 12.5 TO 1600 | 0 |
| AVG2 | 0.78 TO 400 | 1 |
| AVG4 | 0.78 TO 200 | 1 |
| AVG8 | 0.78 TO 100 | 1 |
| AVG16 | 0.78 TO 50 | 1 |
| AVG32 | 0.78 TO 25 | 1 |
| AVG64 | 0.78 TO 12.5 | 1 |
| AVG128 | 0.78 TO 6.25 | 1 |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_ACCEL_CIC_AVG8, BMI160_ACCEL_NORMAL_AVG4, BMI160_ACCEL_OSR2_AVG2, BMI160_ACCEL_OSR4_AVG1, BMI160_ACCEL_OUTPUT_DATA_RATE_0_78HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_100HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_12_5HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_1600HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_200HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_25HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_400HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_50HZ, BMI160_ACCEL_OUTPUT_DATA_RATE_6_25HZ, BMI160_ACCEL_RES_AVG128, BMI160_ACCEL_RES_AVG16, BMI160_ACCEL_RES_AVG2, BMI160_ACCEL_RES_AVG32, BMI160_ACCEL_RES_AVG4, BMI160_ACCEL_RES_AVG64, BMI160_ACCEL_RES_AVG8, BMI160_ASSIGN_DATA, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_accel_under_sampling_parameter(), BMI160_SET_BITSLICE, BMI160_US_DISABLE, BMI160_US_ENABLE, BMI160_USER_ACCEL_CONFIG_OUTPUT_DATA_RATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_bw | ( | u8 * | v_bw_u8 | ) |
This API is used to get the accel bandwidth from the register 0x40 bit 4 to 6.
bandwidth parameter determines filter configuration(acc_us=0) and averaging for under sampling mode(acc_us=1)
| v_bw_u8 | : The value of accel bandwidth @note accel bandwidth depends on under sampling parameter @note under sampling parameter cab be set by the function "BMI160_SET_ACCEL_UNDER_SAMPLING_PARAMETER" @note Filter configuration
|
| accel_us | Under sampling mode |
|---|---|
| 0x00 | no averaging |
| 0x01 | average 2 samples |
| 0x02 | average 4 samples |
| 0x03 | average 8 samples |
| 0x04 | average 16 samples |
| 0x05 | average 32 samples |
| 0x06 | average 64 samples |
| 0x07 | average 128 samples |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_CONFIG_ACCEL_BW__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_bw | ( | u8 | v_bw_u8 | ) |
This API is used to set the accel bandwidth from the register 0x40 bit 4 to 6.
bandwidth parameter determines filter configuration(acc_us=0) and averaging for under sampling mode(acc_us=1)
| v_bw_u8 | : The value of accel bandwidth @note accel bandwidth depends on under sampling parameter @note under sampling parameter cab be set by the function "BMI160_SET_ACCEL_UNDER_SAMPLING_PARAMETER" @note Filter configuration
|
| accel_us | Under sampling mode |
|---|---|
| 0x00 | no averaging |
| 0x01 | average 2 samples |
| 0x02 | average 4 samples |
| 0x03 | average 8 samples |
| 0x04 | average 16 samples |
| 0x05 | average 32 samples |
| 0x06 | average 64 samples |
| 0x07 | average 128 samples |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ACCEL_BW, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_ACCEL_CONFIG_ACCEL_BW__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_under_sampling_parameter | ( | u8 * | v_accel_under_sampling_u8 | ) |
This API is used to get the accel under sampling parameter form the register 0x40 bit 7.
| v_accel_under_sampling_u8 | : The value of accel under sampling
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_CONFIG_ACCEL_UNDER_SAMPLING__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_under_sampling_parameter | ( | u8 | v_accel_under_sampling_u8 | ) |
This API is used to set the accel under sampling parameter form the register 0x40 bit 7.
| v_accel_under_sampling_u8 | : The value of accel under sampling
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_UNDER_SAMPLING, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_ACCEL_CONFIG_ACCEL_UNDER_SAMPLING__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_set_accel_output_data_rate().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_range | ( | u8 * | v_range_u8 | ) |
This API is used to get the ranges (g values) of the accel from the register 0x41 bit 0 to 3.
| v_range_u8 | : The value of accel g range
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_RANGE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_range | ( | u8 | v_range_u8 | ) |
This API is used to set the ranges (g values) of the accel from the register 0x41 bit 0 to 3.
| v_range_u8 | : The value of accel g range
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_ACCEL_RANGE0, BMI160_ACCEL_RANGE1, BMI160_ACCEL_RANGE3, BMI160_ACCEL_RANGE4, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_ACCEL_RANGE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_output_data_rate | ( | u8 * | v_output_data_rate_u8 | ) |
This API is used to get the gyroscope output data rate from the register 0x42 bit 0 to 3.
| v_output_data_rate_u8 | :The value of gyro output data rate
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_CONFIG_OUTPUT_DATA_RATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_output_data_rate | ( | u8 | v_output_data_rate_u8 | ) |
This API is used to set the gyroscope output data rate from the register 0x42 bit 0 to 3.
| v_output_data_rate_u8 | :The value of gyro output data rate
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_OUTPUT_DATA_RATE1, BMI160_OUTPUT_DATA_RATE2, BMI160_OUTPUT_DATA_RATE3, BMI160_OUTPUT_DATA_RATE4, BMI160_OUTPUT_DATA_RATE5, BMI160_OUTPUT_DATA_RATE6, BMI160_OUTPUT_DATA_RATE7, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_CONFIG_OUTPUT_DATA_RATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_bw | ( | u8 * | v_bw_u8 | ) |
This API is used to get the data of gyro from the register 0x42 bit 4 to 5.
| v_bw_u8 | : The value of gyro bandwidth
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_CONFIG_BW__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_bw | ( | u8 | v_bw_u8 | ) |
This API is used to set the data of gyro from the register 0x42 bit 4 to 5.
| v_bw_u8 | : The value of gyro bandwidth
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_GYRO_BW, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_CONFIG_BW__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_range | ( | u8 * | v_range_u8 | ) |
This API reads the range of gyro from the register 0x43 bit 0 to 2.
| v_range_u8 | : The value of gyro range
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_RANGE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_range | ( | u8 | v_range_u8 | ) |
This API set the range of gyro from the register 0x43 bit 0 to 2.
| v_range_u8 | : The value of gyro range
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_GYRO_RANGE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_RANGE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_output_data_rate | ( | u8 * | v_output_data_rate_u8 | ) |
This API is used to get the output data rate of magnetometer from the register 0x44 bit 0 to 3.
| v_output_data_rate_u8 | : The value of mag output data rate
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_MAG_CONFIG_OUTPUT_DATA_RATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_output_data_rate | ( | u8 | v_output_data_rate_u8 | ) |
This API is used to set the output data rate of magnetometer from the register 0x44 bit 0 to 3.
| v_output_data_rate_u8 | : The value of mag output data rate
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ACCEL_OUTPUT_DATA_RATE, BMI160_NULL, BMI160_OUTPUT_DATA_RATE0, BMI160_OUTPUT_DATA_RATE6, BMI160_OUTPUT_DATA_RATE7, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_MAG_CONFIG_OUTPUT_DATA_RATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_down_gyro | ( | u8 * | v_fifo_down_gyro_u8 | ) |
This API is used to read Down sampling for gyro (2**downs_gyro) in the register 0x45 bit 0 to 2.
| v_fifo_down_gyro_u8 | :The value of gyro fifo down |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_DOWN_GYRO__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_down_gyro | ( | u8 | v_fifo_down_gyro_u8 | ) |
This API is used to set Down sampling for gyro (2**downs_gyro) in the register 0x45 bit 0 to 2.
| v_fifo_down_gyro_u8 | :The value of gyro fifo down |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_DOWN_GYRO__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_fifo_filter_data | ( | u8 * | v_gyro_fifo_filter_data_u8 | ) |
This API is used to read gyro fifo filter data from the register 0x45 bit 3.
| v_gyro_fifo_filter_data_u8 | :The value of gyro filter data
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_FILTER_GYRO__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_fifo_filter_data | ( | u8 | v_gyro_fifo_filter_data_u8 | ) |
This API is used to set gyro fifo filter data from the register 0x45 bit 3.
| v_gyro_fifo_filter_data_u8 | :The value of gyro filter data
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_FILTER, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_FILTER_GYRO__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_down_accel | ( | u8 * | v_fifo_down_u8 | ) |
This API is used to read Down sampling for accel (2*downs_accel) from the register 0x45 bit 4 to 6.
| v_fifo_down_u8 | :The value of accel fifo down |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_DOWN_ACCEL__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_down_accel | ( | u8 | v_fifo_down_u8 | ) |
This API is used to set Down sampling for accel (2*downs_accel) from the register 0x45 bit 4 to 6.
| v_fifo_down_u8 | :The value of accel fifo down |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_DOWN_ACCEL__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_fifo_filter_data | ( | u8 * | accel_fifo_filter_u8 | ) |
This API is used to read accel fifo filter data from the register 0x45 bit 7.
| accel_fifo_filter_u8 | :The value of accel filter data
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_FILTER_ACCEL__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_fifo_filter_data | ( | u8 | v_accel_fifo_filter_u8 | ) |
This API is used to set accel fifo filter data from the register 0x45 bit 7.
| v_accel_fifo_filter_u8 | :The value of accel filter data
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_FILTER, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_FILTER_ACCEL__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_wm | ( | u8 * | v_fifo_wm_u8 | ) |
This API is used to Trigger an interrupt when FIFO contains water mark level from the register 0x46 bit 0 to 7.
| v_fifo_wm_u8 | : The value of fifo water mark level |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_WM__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_wm | ( | u8 | v_fifo_wm_u8 | ) |
This API is used to Trigger an interrupt when FIFO contains water mark level from the register 0x46 bit 0 to 7.
| v_fifo_wm_u8 | : The value of fifo water mark level |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_WM__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_time_enable | ( | u8 * | v_fifo_time_enable_u8 | ) |
This API reads fifo sensor time frame after the last valid data frame form the register 0x47 bit 1.
| v_fifo_time_enable_u8 | : The value of sensor time
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_TIME_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_time_enable | ( | u8 | v_fifo_time_enable_u8 | ) |
This API set fifo sensor time frame after the last valid data frame form the register 0x47 bit 1.
| v_fifo_time_enable_u8 | : The value of sensor time
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_TIME, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_TIME_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_tag_intr2_enable | ( | u8 * | v_fifo_tag_intr2_u8 | ) |
This API reads FIFO tag interrupt2 enable status from the resister 0x47 bit 2.
| v_fifo_tag_intr2_u8 | : The value of fifo tag interrupt
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_TAG_INTR2_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_tag_intr2_enable | ( | u8 | v_fifo_tag_intr2_u8 | ) |
This API set FIFO tag interrupt2 enable status from the resister 0x47 bit 2.
| v_fifo_tag_intr2_u8 | : The value of fifo tag interrupt
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_input_enable(), BMI160_USER_FIFO_TAG_INTR2_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_tag_intr1_enable | ( | u8 * | v_fifo_tag_intr1_u8 | ) |
This API get FIFO tag interrupt1 enable status from the resister 0x47 bit 3.
| v_fifo_tag_intr1_u8 | :The value of fifo tag interrupt1
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_TAG_INTR1_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_tag_intr1_enable | ( | u8 | v_fifo_tag_intr1_u8 | ) |
This API set FIFO tag interrupt1 enable status from the resister 0x47 bit 3.
| v_fifo_tag_intr1_u8 | :The value of fifo tag interrupt1
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_input_enable(), BMI160_USER_FIFO_TAG_INTR1_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_header_enable | ( | u8 * | v_fifo_header_u8 | ) |
This API reads FIFO frame header enable from the register 0x47 bit 4.
| v_fifo_header_u8 | :The value of fifo header
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_HEADER_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_header_enable | ( | u8 | v_fifo_header_u8 | ) |
This API set FIFO frame header enable from the register 0x47 bit 4.
| v_fifo_header_u8 | :The value of fifo header
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_HEADER, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_HEADER_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_read_fifo_headerless_mode_user_defined_length().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_mag_enable | ( | u8 * | v_fifo_mag_u8 | ) |
This API is used to read stored magnetometer data in FIFO (all 3 axes) from the register 0x47 bit 5.
| v_fifo_mag_u8 | : The value of fifo mag enble
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_MAG_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_mag_enable | ( | u8 | v_fifo_mag_u8 | ) |
This API is used to set stored magnetometer data in FIFO (all 3 axes) from the register 0x47 bit 5.
| v_fifo_mag_u8 | : The value of fifo mag enble
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_MAG, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_MAG_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_accel_enable | ( | u8 * | v_fifo_accel_u8 | ) |
This API is used to read stored accel data in FIFO (all 3 axes) from the register 0x47 bit 6.
| v_fifo_accel_u8 | : The value of fifo accel enble
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_ACCEL_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_accel_enable | ( | u8 | v_fifo_accel_u8 | ) |
This API is used to set stored accel data in FIFO (all 3 axes) from the register 0x47 bit 6.
| v_fifo_accel_u8 | : The value of fifo accel enble
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_ACCEL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_ACCEL_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_fifo_gyro_enable | ( | u8 * | v_fifo_gyro_u8 | ) |
This API is used to read stored gyro data in FIFO (all 3 axes) from the resister 0x47 bit 7.
| v_fifo_gyro_u8 | : The value of fifo gyro enble
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FIFO_GYRO_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_fifo_gyro_enable | ( | u8 | v_fifo_gyro_u8 | ) |
This API is used to set stored gyro data in FIFO (all 3 axes) from the resister 0x47 bit 7.
| v_fifo_gyro_u8 | : The value of fifo gyro enble
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_FIFO_GYRO, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FIFO_GYRO_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_i2c_device_addr | ( | u8 * | v_i2c_device_addr_u8 | ) |
This API is used to read I2C device address of auxiliary mag from the register 0x4B bit 1 to 7.
| v_i2c_device_addr_u8 | : The value of mag I2C device address |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_I2C_DEVICE_ADDR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_i2c_device_addr | ( | u8 | v_i2c_device_addr_u8 | ) |
This API is used to set I2C device address of auxiliary mag from the register 0x4B bit 1 to 7.
| v_i2c_device_addr_u8 | : The value of mag I2C device address |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_I2C_DEVICE_ADDR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_burst | ( | u8 * | v_mag_burst_u8 | ) |
This API is used to read Burst data length (1,2,6,8 byte) from the register 0x4C bit 0 to 1.
| v_mag_burst_u8 | : The data of mag burst read lenth |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_MAG_BURST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_burst | ( | u8 | v_mag_burst_u8 | ) |
This API is used to set Burst data length (1,2,6,8 byte) from the register 0x4C bit 0 to 1.
| v_mag_burst_u8 | : The data of mag burst read lenth |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_MAG_BURST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_offset | ( | u8 * | v_mag_offset_u8 | ) |
This API is used to read trigger-readout offset in units of 2.5 ms. If set to zero, the offset is maximum, i.e. after readout a trigger is issued immediately. from the register 0x4C bit 2 to 5.
| v_mag_offset_u8 | : The value of mag offset |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_MAG_OFFSET__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_offset | ( | u8 | v_mag_offset_u8 | ) |
This API is used to set trigger-readout offset in units of 2.5 ms. If set to zero, the offset is maximum, i.e. after readout a trigger is issued immediately. from the register 0x4C bit 2 to 5.
| v_mag_offset_u8 | : The value of mag offset |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_MAG_OFFSET__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_manual_enable | ( | u8 * | v_mag_manual_u8 | ) |
This API is used to read Enable register access on MAG_IF[2] or MAG_IF[3] writes. This implies that the DATA registers are not updated with magnetometer values. Accessing magnetometer requires the magnetometer in normal mode in PMU_STATUS. from the register 0x4C bit 7.
| v_mag_manual_u8 | : The value of mag manual enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_MAG_MANUAL_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_manual_enable | ( | u8 | v_mag_manual_u8 | ) |
This API is used to set Enable register access on MAG_IF[2] or MAG_IF[3] writes. This implies that the DATA registers are not updated with magnetometer values. Accessing magnetometer requires the magnetometer in normal mode in PMU_STATUS. from the register 0x4C bit 7.
| v_mag_manual_u8 | : The value of mag manual enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_MAG_MANUAL_ENABLE__REG, bmi160_t::delay_msec, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, bmi160_t::mag_manual_enable, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bmm150_mag_set_power_mode(), bmi160_bst_yamaha_yas537_mag_interface_init(), bmi160_bst_yas537_acquisition_command_register(), bmi160_read_bmm150_mag_trim(), bmi160_set_bmm150_mag_and_secondary_if_power_mode(), and bmi160_set_bmm150_mag_presetmode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_read_addr | ( | u8 * | v_mag_read_addr_u8 | ) |
This API is used to read data magnetometer address to read from the register 0x4D bit 0 to 7.
It used to provide mag read address of auxiliary mag
| v_mag_read_addr_u8 | : The value of address need to be read |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_READ_ADDR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_read_addr | ( | u8 | v_mag_read_addr_u8 | ) |
This API is used to set magnetometer write address from the register 0x4D bit 0 to 7.
mag write address writes the address of auxiliary mag to write
| v_mag_read_addr_u8 | The data of auxiliary mag address to write data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_READ_ADDR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bmm150_mag_set_power_mode(), bmi160_bmm150_mag_wakeup(), bmi160_bst_yamaha_yas537_calib_values(), bmi160_bst_yamaha_yas537_mag_interface_init(), bmi160_bst_yas537_acquisition_command_register(), bmi160_read_bmm150_mag_trim(), and bmi160_set_bmm150_mag_presetmode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_write_addr | ( | u8 * | v_mag_write_addr_u8 | ) |
This API is used to read magnetometer write address from the register 0x4E bit 0 to 7.
mag write address writes the address of auxiliary mag to write
| v_mag_write_addr_u8 | The data of auxiliary mag address to write data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_WRITE_ADDR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_write_addr | ( | u8 | v_mag_write_addr_u8 | ) |
This API is used to set magnetometer write address from the register 0x4E bit 0 to 7.
mag write address writes the address of auxiliary mag to write
| v_mag_write_addr_u8 | The data of auxiliary mag address to write data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_WRITE_ADDR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bmm150_mag_set_power_mode(), bmi160_bmm150_mag_wakeup(), bmi160_bst_yamaha_yas537_calib_values(), bmi160_bst_yas537_acquisition_command_register(), bmi160_read_bmm150_mag_trim(), and bmi160_set_bmm150_mag_presetmode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_mag_write_data | ( | u8 * | v_mag_write_data_u8 | ) |
This API is used to read magnetometer write data form the resister 0x4F bit 0 to 7.
This writes the data will be wrote to mag
| v_mag_write_data_u8 | The value of mag data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_WRITE_DATA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_mag_write_data | ( | u8 | v_mag_write_data_u8 | ) |
This API is used to set magnetometer write data form the resister 0x4F bit 0 to 7.
This writes the data will be wrote to mag
| v_mag_write_data_u8 | The value of mag data |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_WRITE_DATA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bmm150_mag_set_power_mode(), bmi160_bmm150_mag_wakeup(), bmi160_bst_yamaha_yas537_calib_values(), bmi160_bst_yas537_acquisition_command_register(), bmi160_read_bmm150_mag_trim(), and bmi160_set_bmm150_mag_presetmode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_enable_0 | ( | u8 | v_enable_u8, |
| u8 * | v_intr_enable_zero_u8 | ||
| ) |
This API is used to read interrupt enable from the register 0x50 bit 0 to 7.
| v_enable_u8 | : Value to decided to select interrupt
| ||||||||||||||||
| v_intr_enable_zero_u8 | : The interrupt enable value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_ANY_MOTION_X_ENABLE, BMI160_ANY_MOTION_Y_ENABLE, BMI160_ANY_MOTION_Z_ENABLE, BMI160_DOUBLE_TAP_ENABLE, BMI160_FLAT_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_ORIENT_ENABLE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SINGLE_TAP_ENABLE, BMI160_USER_INTR_ENABLE_0_ANY_MOTION_X_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_ANY_MOTION_Y_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_ANY_MOTION_Z_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_DOUBLE_TAP_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_FLAT_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_ORIENT_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_SINGLE_TAP_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_enable_0 | ( | u8 | v_enable_u8, |
| u8 | v_intr_enable_zero_u8 | ||
| ) |
This API is used to set interrupt enable from the register 0x50 bit 0 to 7.
| v_enable_u8 | : Value to decided to select interrupt
| ||||||||||||||||
| v_intr_enable_zero_u8 | : The interrupt enable value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_ANY_MOTION_X_ENABLE, BMI160_ANY_MOTION_Y_ENABLE, BMI160_ANY_MOTION_Z_ENABLE, BMI160_DOUBLE_TAP_ENABLE, BMI160_FLAT_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_ORIENT_ENABLE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_SINGLE_TAP_ENABLE, BMI160_USER_INTR_ENABLE_0_ANY_MOTION_X_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_ANY_MOTION_Y_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_ANY_MOTION_Z_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_DOUBLE_TAP_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_FLAT_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_ORIENT_ENABLE__REG, BMI160_USER_INTR_ENABLE_0_SINGLE_TAP_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_enable_1 | ( | u8 | v_enable_u8, |
| u8 * | v_intr_enable_1_u8 | ||
| ) |
This API is used to read interrupt enable byte1 from the register 0x51 bit 0 to 6.
It read the high_g_x,high_g_y,high_g_z,low_g_enable data ready, fifo full and fifo water mark.
| v_enable_u8 | : The value of interrupt enable | ||||||||||||||||
| v_enable_u8 | : Value to decided to select interrupt
| ||||||||||||||||
| v_intr_enable_1_u8 | : The interrupt enable value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_DATA_RDY_ENABLE, BMI160_FIFO_FULL_ENABLE, BMI160_FIFO_WM_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_HIGH_G_X_ENABLE, BMI160_HIGH_G_Y_ENABLE, BMI160_HIGH_G_Z_ENABLE, BMI160_INIT_VALUE, BMI160_LOW_G_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ENABLE_1_DATA_RDY_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_FIFO_FULL_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_FIFO_WM_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_HIGH_G_X_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_HIGH_G_Y_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_HIGH_G_Z_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_LOW_G_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_enable_1 | ( | u8 | v_enable_u8, |
| u8 | v_intr_enable_1_u8 | ||
| ) |
This API is used to set interrupt enable byte1 from the register 0x51 bit 0 to 6.
It read the high_g_x,high_g_y,high_g_z,low_g_enable data ready, fifo full and fifo water mark.
| v_enable_u8 | : The value of interrupt enable | ||||||||||||||||
| v_enable_u8 | : Value to decided to select interrupt
| ||||||||||||||||
| v_intr_enable_1_u8 | : The interrupt enable value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_DATA_RDY_ENABLE, BMI160_FIFO_FULL_ENABLE, BMI160_FIFO_WM_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_HIGH_G_X_ENABLE, BMI160_HIGH_G_Y_ENABLE, BMI160_HIGH_G_Z_ENABLE, BMI160_INIT_VALUE, BMI160_LOW_G_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ENABLE_1_DATA_RDY_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_FIFO_FULL_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_FIFO_WM_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_HIGH_G_X_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_HIGH_G_Y_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_HIGH_G_Z_ENABLE__REG, BMI160_USER_INTR_ENABLE_1_LOW_G_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_enable_2 | ( | u8 | v_enable_u8, |
| u8 * | v_intr_enable_2_u8 | ||
| ) |
This API is used to read interrupt enable byte2 from the register bit 0x52 bit 0 to 3.
It reads no motion x,y and z
@param v_enable_u8: The value of interrupt enable
| v_enable_u8 | interrupt |
|---|---|
| 0 | BMI160_NOMOTION_X_ENABLE |
| 1 | BMI160_NOMOTION_Y_ENABLE |
| 2 | BMI160_NOMOTION_Z_ENABLE |
| v_intr_enable_2_u8 | : The interrupt enable value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NOMOTION_X_ENABLE, BMI160_NOMOTION_Y_ENABLE, BMI160_NOMOTION_Z_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ENABLE_2_NOMOTION_X_ENABLE__REG, BMI160_USER_INTR_ENABLE_2_NOMOTION_Y_ENABLE__REG, BMI160_USER_INTR_ENABLE_2_NOMOTION_Z_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_enable_2 | ( | u8 | v_enable_u8, |
| u8 | v_intr_enable_2_u8 | ||
| ) |
This API is used to set interrupt enable byte2 from the register bit 0x52 bit 0 to 3.
It reads no motion x,y and z
@param v_enable_u8: The value of interrupt enable
| v_enable_u8 | interrupt |
|---|---|
| 0 | BMI160_NOMOTION_X_ENABLE |
| 1 | BMI160_NOMOTION_Y_ENABLE |
| 2 | BMI160_NOMOTION_Z_ENABLE |
| v_intr_enable_2_u8 | : The interrupt enable value
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NOMOTION_X_ENABLE, BMI160_NOMOTION_Y_ENABLE, BMI160_NOMOTION_Z_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ENABLE_2_NOMOTION_X_ENABLE__REG, BMI160_USER_INTR_ENABLE_2_NOMOTION_Y_ENABLE__REG, BMI160_USER_INTR_ENABLE_2_NOMOTION_Z_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_step_detector_enable | ( | u8 * | v_step_intr_u8 | ) |
This API is used to read interrupt enable step detector interrupt from the register bit 0x52 bit 3.
| v_step_intr_u8 | : The value of step detector interrupt enable |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ENABLE_2_STEP_DETECTOR_ENABLE__REG, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_map_step_detector_intr(), and bmi160_set_intr_low_g().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_step_detector_enable | ( | u8 | v_step_intr_u8 | ) |
This API is used to set interrupt enable step detector interrupt from the register bit 0x52 bit 3.
| v_step_intr_u8 | : The value of step detector interrupt enable |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ENABLE_2_STEP_DETECTOR_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
Referenced by bmi160_map_step_detector_intr(), and bmi160_set_intr_low_g().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_edge_ctrl | ( | u8 | v_channel_u8, |
| u8 * | v_intr_edge_ctrl_u8 | ||
| ) |
Configure trigger condition of interrupt1 and interrupt2 pin from the register 0x53.
interrupt1 - bit 0 interrupt2 - bit 4
| v_channel_u8 | The value of edge trigger selection
| ||||||
| v_intr_edge_ctrl_u8 | : The value of edge trigger enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_EDGE_CTRL, BMI160_INTR2_EDGE_CTRL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR1_EDGE_CTRL__REG, BMI160_USER_INTR2_EDGE_CTRL__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_edge_ctrl | ( | u8 | v_channel_u8, |
| u8 | v_intr_edge_ctrl_u8 | ||
| ) |
Configure trigger condition of interrupt1 and interrupt2 pin from the register 0x53.
interrupt1 - bit 0 interrupt2 - bit 4
| v_channel_u8 | The value of edge trigger selection
| ||||||
| v_intr_edge_ctrl_u8 | : The value of edge trigger enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_EDGE_CTRL, BMI160_INTR2_EDGE_CTRL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR1_EDGE_CTRL__REG, BMI160_USER_INTR2_EDGE_CTRL__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_level | ( | u8 | v_channel_u8, |
| u8 * | v_intr_level_u8 | ||
| ) |
API used for get the Configure level condition of interrupt1 and interrupt2 pin form the register 0x53.
interrupt1 - bit 1 interrupt2 - bit 5
| v_channel_u8 | The value of level condition selection
| ||||||
| v_intr_level_u8 | : The value of level of interrupt enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_LEVEL, BMI160_INTR2_LEVEL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR1_LEVEL__REG, BMI160_USER_INTR2_LEVEL__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_level | ( | u8 | v_channel_u8, |
| u8 | v_intr_level_u8 | ||
| ) |
API used for set the Configure level condition of interrupt1 and interrupt2 pin form the register 0x53.
interrupt1 - bit 1 interrupt2 - bit 5
| v_channel_u8 | The value of level condition selection
| ||||||
| v_intr_level_u8 | : The value of level of interrupt enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_LEVEL, BMI160_INTR2_LEVEL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR1_LEVEL__REG, BMI160_USER_INTR2_LEVEL__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_output_type | ( | u8 | v_channel_u8, |
| u8 * | v_intr_output_type_u8 | ||
| ) |
API used to get configured output enable of interrupt1 and interrupt2 from the register 0x53.
interrupt1 - bit 2 interrupt2 - bit 6
| v_channel_u8 | The value of output type enable selection
| ||||||
| v_intr_output_type_u8 | : The value of output type of interrupt enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_OUTPUT_TYPE, BMI160_INTR2_OUTPUT_TYPE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR1_OUTPUT_TYPE__REG, BMI160_USER_INTR2_OUTPUT_TYPE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_output_type | ( | u8 | v_channel_u8, |
| u8 | v_intr_output_type_u8 | ||
| ) |
API used to set output enable of interrupt1 and interrupt2 from the register 0x53.
interrupt1 - bit 2 interrupt2 - bit 6
| v_channel_u8 | The value of output type enable selection
| ||||||
| v_intr_output_type_u8 | : The value of output type of interrupt enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_OUTPUT_TYPE, BMI160_INTR2_OUTPUT_TYPE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR1_OUTPUT_TYPE__REG, BMI160_USER_INTR2_OUTPUT_TYPE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_output_enable | ( | u8 | v_channel_u8, |
| u8 * | v_output_enable_u8 | ||
| ) |
API used to get the Output enable for interrupt1 and interrupt2 pin from the register 0x53.
interrupt1 - bit 3 interrupt2 - bit 7
| v_channel_u8 | The value of output enable selection
| ||||||
| v_output_enable_u8 | : The value of output enable of interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_OUTPUT_ENABLE, BMI160_INTR2_OUTPUT_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR1_OUTPUT_ENABLE__REG, BMI160_USER_INTR2_OUTPUT_EN__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_output_enable | ( | u8 | v_channel_u8, |
| u8 | v_output_enable_u8 | ||
| ) |
API used to set the Output enable for interrupt1 and interrupt2 pin from the register 0x53.
interrupt1 - bit 3 interrupt2 - bit 7
| v_channel_u8 | The value of output enable selection
| ||||||
| v_output_enable_u8 | : The value of output enable of interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_OUTPUT_ENABLE, BMI160_INTR2_OUTPUT_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR1_OUTPUT_ENABLE__REG, BMI160_USER_INTR2_OUTPUT_EN__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_latch_intr | ( | u8 * | v_latch_intr_u8 | ) |
This API is used to get the latch duration from the register 0x54 bit 0 to 3.
This latch selection is not applicable for data ready, orientation and flat interrupts.
| v_latch_intr_u8 | : The value of latch duration
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LATCH__REG, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_latch_intr | ( | u8 | v_latch_intr_u8 | ) |
This API is used to set the latch duration from the register 0x54 bit 0 to 3.
This latch selection is not applicable for data ready, orientation and flat interrupts.
| v_latch_intr_u8 | : The value of latch duration
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_LATCH_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_LATCH__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_input_enable | ( | u8 | v_channel_u8, |
| u8 * | v_input_en_u8 | ||
| ) |
API used to get input enable for interrupt1 and interrupt2 pin from the register 0x54.
interrupt1 - bit 4 interrupt2 - bit 5
| v_channel_u8 | The value of input enable selection
| ||||||
| v_input_en_u8 | : The value of input enable of interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_INPUT_ENABLE, BMI160_INTR2_INPUT_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR1_INPUT_ENABLE__REG, BMI160_USER_INTR2_INPUT_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_input_enable | ( | u8 | v_channel_u8, |
| u8 | v_input_en_u8 | ||
| ) |
API used to set input enable for interrupt1 and interrupt2 pin from the register 0x54.
interrupt1 - bit 4 interrupt2 - bit 5
| v_channel_u8 | The value of input enable selection
| ||||||
| v_input_en_u8 | : The value of input enable of interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_INPUT_ENABLE, BMI160_INTR2_INPUT_ENABLE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR1_INPUT_ENABLE__REG, BMI160_USER_INTR2_INPUT_ENABLE__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_set_fifo_tag_intr1_enable(), and bmi160_set_fifo_tag_intr2_enable().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_low_g | ( | u8 | v_channel_u8, |
| u8 * | v_intr_low_g_u8 | ||
| ) |
reads the Low g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57
interrupt1 bit 0 in the register 0x55 interrupt2 bit 0 in the register 0x57
@param v_channel_u8: The value of low_g selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_LOW_G |
| 1 | BMI160_INTR2_MAP_LOW_G |
| v_intr_low_g_u8 | : The value of low_g enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_LOW_G, BMI160_INTR2_MAP_LOW_G, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_LOW_G__REG, BMI160_USER_INTR_MAP_2_INTR2_LOW_G__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_low_g | ( | u8 | v_channel_u8, |
| u8 | v_intr_low_g_u8 | ||
| ) |
set the Low g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57
interrupt1 bit 0 in the register 0x55 interrupt2 bit 0 in the register 0x57
@param v_channel_u8: The value of low_g selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_LOW_G |
| 1 | BMI160_INTR2_MAP_LOW_G |
| v_intr_low_g_u8 | : The value of low_g enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, bmi160_get_step_counter_enable(), bmi160_get_step_detector_enable(), BMI160_INIT_VALUE, BMI160_INTR1_MAP_LOW_G, BMI160_INTR2_MAP_LOW_G, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_step_counter_enable(), bmi160_set_step_detector_enable(), BMI160_USER_INTR_MAP_0_INTR1_LOW_G__REG, BMI160_USER_INTR_MAP_2_INTR2_LOW_G__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_high_g | ( | u8 | v_channel_u8, |
| u8 * | v_intr_high_g_u8 | ||
| ) |
Reads the HIGH g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 1 in the register 0x55 interrupt2 bit 1 in the register 0x57
@param v_channel_u8: The value of high_g selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_HIGH_G |
| 1 | BMI160_INTR2_MAP_HIGH_G |
| v_intr_high_g_u8 | : The value of high_g enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_HIGH_G, BMI160_INTR2_MAP_HIGH_G, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_HIGH_G__REG, BMI160_USER_INTR_MAP_2_INTR2_HIGH_G__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_high_g | ( | u8 | v_channel_u8, |
| u8 | v_intr_high_g_u8 | ||
| ) |
Write the HIGH g interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 1 in the register 0x55 interrupt2 bit 1 in the register 0x57
@param v_channel_u8: The value of high_g selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_HIGH_G |
| 1 | BMI160_INTR2_MAP_HIGH_G |
| v_intr_high_g_u8 | : The value of high_g enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_HIGH_G, BMI160_INTR2_MAP_HIGH_G, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_0_INTR1_HIGH_G__REG, BMI160_USER_INTR_MAP_2_INTR2_HIGH_G__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_any_motion | ( | u8 | v_channel_u8, |
| u8 * | v_intr_any_motion_u8 | ||
| ) |
Reads the Any motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 2 in the register 0x55 interrupt2 bit 2 in the register 0x57
@param v_channel_u8: The value of any motion selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_ANY_MOTION |
| 1 | BMI160_INTR2_MAP_ANY_MOTION |
| v_intr_any_motion_u8 | : The value of any motion enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_ANY_MOTION, BMI160_INTR2_MAP_ANY_MOTION, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_ANY_MOTION__REG, BMI160_USER_INTR_MAP_2_INTR2_ANY_MOTION__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_any_motion | ( | u8 | v_channel_u8, |
| u8 | v_intr_any_motion_u8 | ||
| ) |
Write the Any motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 2 in the register 0x55 interrupt2 bit 2 in the register 0x57
@param v_channel_u8: The value of any motion selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_ANY_MOTION |
| 1 | BMI160_INTR2_MAP_ANY_MOTION |
| v_intr_any_motion_u8 | : The value of any motion enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, bmi160_get_intr_significant_motion_select(), BMI160_INIT_VALUE, BMI160_INTR1_MAP_ANY_MOTION, BMI160_INTR2_MAP_ANY_MOTION, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_intr_significant_motion_select(), BMI160_USER_INTR_MAP_0_INTR1_ANY_MOTION__REG, BMI160_USER_INTR_MAP_2_INTR2_ANY_MOTION__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_nomotion | ( | u8 | v_channel_u8, |
| u8 * | v_intr_nomotion_u8 | ||
| ) |
Reads the No motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 3 in the register 0x55 interrupt2 bit 3 in the register 0x57
@param v_channel_u8: The value of no motion selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_NOMO |
| 1 | BMI160_INTR2_MAP_NOMO |
| v_intr_nomotion_u8 | : The value of no motion enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_NOMO, BMI160_INTR2_MAP_NOMO, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_NOMOTION__REG, BMI160_USER_INTR_MAP_2_INTR2_NOMOTION__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_nomotion | ( | u8 | v_channel_u8, |
| u8 | v_intr_nomotion_u8 | ||
| ) |
Write the No motion interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 3 in the register 0x55 interrupt2 bit 3 in the register 0x57
@param v_channel_u8: The value of no motion selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_NOMO |
| 1 | BMI160_INTR2_MAP_NOMO |
| v_intr_nomotion_u8 | : The value of no motion enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_NOMO, BMI160_INTR2_MAP_NOMO, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_0_INTR1_NOMOTION__REG, BMI160_USER_INTR_MAP_2_INTR2_NOMOTION__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_double_tap | ( | u8 | v_channel_u8, |
| u8 * | v_intr_double_tap_u8 | ||
| ) |
Reads the Double Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 4 in the register 0x55 interrupt2 bit 4 in the register 0x57
@param v_channel_u8: The value of double tap interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_DOUBLE_TAP |
| 1 | BMI160_INTR2_MAP_DOUBLE_TAP |
| v_intr_double_tap_u8 | : The value of double tap enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_DOUBLE_TAP, BMI160_INTR2_MAP_DOUBLE_TAP, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_DOUBLE_TAP__REG, BMI160_USER_INTR_MAP_2_INTR2_DOUBLE_TAP__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_double_tap | ( | u8 | v_channel_u8, |
| u8 | v_intr_double_tap_u8 | ||
| ) |
Write the Double Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 4 in the register 0x55 interrupt2 bit 4 in the register 0x57
@param v_channel_u8: The value of double tap interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_DOUBLE_TAP |
| 1 | BMI160_INTR2_MAP_DOUBLE_TAP |
| v_intr_double_tap_u8 | : The value of double tap enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_DOUBLE_TAP, BMI160_INTR2_MAP_DOUBLE_TAP, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_0_INTR1_DOUBLE_TAP__REG, BMI160_USER_INTR_MAP_2_INTR2_DOUBLE_TAP__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_single_tap | ( | u8 | v_channel_u8, |
| u8 * | v_intr_single_tap_u8 | ||
| ) |
Reads the Single Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 5 in the register 0x55 interrupt2 bit 5 in the register 0x57
@param v_channel_u8: The value of single tap interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_SINGLE_TAP |
| 1 | BMI160_INTR2_MAP_SINGLE_TAP |
| v_intr_single_tap_u8 | : The value of single tap enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_SINGLE_TAP, BMI160_INTR2_MAP_SINGLE_TAP, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_SINGLE_TAP__REG, BMI160_USER_INTR_MAP_2_INTR2_SINGLE_TAP__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_single_tap | ( | u8 | v_channel_u8, |
| u8 | v_intr_single_tap_u8 | ||
| ) |
Write the Single Tap interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 5 in the register 0x55 interrupt2 bit 5 in the register 0x57
@param v_channel_u8: The value of single tap interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_SINGLE_TAP |
| 1 | BMI160_INTR2_MAP_SINGLE_TAP |
| v_intr_single_tap_u8 | : The value of single tap enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_SINGLE_TAP, BMI160_INTR2_MAP_SINGLE_TAP, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_0_INTR1_SINGLE_TAP__REG, BMI160_USER_INTR_MAP_2_INTR2_SINGLE_TAP__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient | ( | u8 | v_channel_u8, |
| u8 * | v_intr_orient_u8 | ||
| ) |
Reads the Orient interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 6 in the register 0x55 interrupt2 bit 6 in the register 0x57
@param v_channel_u8: The value of orient interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_ORIENT |
| 1 | BMI160_INTR2_MAP_ORIENT |
| v_intr_orient_u8 | : The value of orient enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_ORIENT, BMI160_INTR2_MAP_ORIENT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_ORIENT__REG, BMI160_USER_INTR_MAP_2_INTR2_ORIENT__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient | ( | u8 | v_channel_u8, |
| u8 | v_intr_orient_u8 | ||
| ) |
Write the Orient interrupt interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 6 in the register 0x55 interrupt2 bit 6 in the register 0x57
@param v_channel_u8: The value of orient interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_ORIENT |
| 1 | BMI160_INTR2_MAP_ORIENT |
| v_intr_orient_u8 | : The value of orient enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_ORIENT, BMI160_INTR2_MAP_ORIENT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_0_INTR1_ORIENT__REG, BMI160_USER_INTR_MAP_2_INTR2_ORIENT__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_flat | ( | u8 | v_channel_u8, |
| u8 * | v_intr_flat_u8 | ||
| ) |
Reads the Flat interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 7 in the register 0x55 interrupt2 bit 7 in the register 0x57
@param v_channel_u8: The value of flat interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_FLAT |
| 1 | BMI160_INTR2_MAP_FLAT |
| v_intr_flat_u8 | : The value of flat enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_FLAT, BMI160_INTR2_MAP_FLAT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_0_INTR1_FLAT__REG, BMI160_USER_INTR_MAP_2_INTR2_FLAT__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_flat | ( | u8 | v_channel_u8, |
| u8 | v_intr_flat_u8 | ||
| ) |
Write the Flat interrupt mapped to interrupt1 and interrupt2 from the register 0x55 and 0x57.
interrupt1 bit 7 in the register 0x55 interrupt2 bit 7 in the register 0x57
@param v_channel_u8: The value of flat interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_FLAT |
| 1 | BMI160_INTR2_MAP_FLAT |
| v_intr_flat_u8 | : The value of flat enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_FLAT, BMI160_INTR2_MAP_FLAT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_0_INTR1_FLAT__REG, BMI160_USER_INTR_MAP_2_INTR2_FLAT__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_pmu_trig | ( | u8 | v_channel_u8, |
| u8 * | v_intr_pmu_trig_u8 | ||
| ) |
Reads PMU trigger interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 0 and 4.
interrupt1 bit 0 in the register 0x56 interrupt2 bit 4 in the register 0x56
@param v_channel_u8: The value of pmu trigger selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_PMUTRIG |
| 1 | BMI160_INTR2_MAP_PMUTRIG |
| v_intr_pmu_trig_u8 | : The value of pmu trigger enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_PMUTRIG, BMI160_INTR2_MAP_PMUTRIG, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_1_INTR1_PMU_TRIG__REG, BMI160_USER_INTR_MAP_1_INTR2_PMU_TRIG__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_pmu_trig | ( | u8 | v_channel_u8, |
| u8 | v_intr_pmu_trig_u8 | ||
| ) |
Write PMU trigger interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 0 and 4.
interrupt1 bit 0 in the register 0x56 interrupt2 bit 4 in the register 0x56
@param v_channel_u8: The value of pmu trigger selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_PMUTRIG |
| 1 | BMI160_INTR2_MAP_PMUTRIG |
| v_intr_pmu_trig_u8 | : The value of pmu trigger enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_PMUTRIG, BMI160_INTR2_MAP_PMUTRIG, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_1_INTR1_PMU_TRIG__REG, BMI160_USER_INTR_MAP_1_INTR2_PMU_TRIG__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_fifo_full | ( | u8 | v_channel_u8, |
| u8 * | v_intr_fifo_full_u8 | ||
| ) |
Reads FIFO Full interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 5 and 1.
interrupt1 bit 5 in the register 0x56 interrupt2 bit 1 in the register 0x56
@param v_channel_u8: The value of fifo full interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_FIFO_FULL |
| 1 | BMI160_INTR2_MAP_FIFO_FULL |
| v_intr_fifo_full_u8 | : The value of fifo full interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_FIFO_FULL, BMI160_INTR2_MAP_FIFO_FULL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_1_INTR1_FIFO_FULL__REG, BMI160_USER_INTR_MAP_1_INTR2_FIFO_FULL__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_fifo_full | ( | u8 | v_channel_u8, |
| u8 | v_intr_fifo_full_u8 | ||
| ) |
Write FIFO Full interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 5 and 1.
interrupt1 bit 5 in the register 0x56 interrupt2 bit 1 in the register 0x56
@param v_channel_u8: The value of fifo full interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_FIFO_FULL |
| 1 | BMI160_INTR2_MAP_FIFO_FULL |
| v_intr_fifo_full_u8 | : The value of fifo full interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_FIFO_FULL, BMI160_INTR2_MAP_FIFO_FULL, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_1_INTR1_FIFO_FULL__REG, BMI160_USER_INTR_MAP_1_INTR2_FIFO_FULL__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_fifo_wm | ( | u8 | v_channel_u8, |
| u8 * | v_intr_fifo_wm_u8 | ||
| ) |
Reads FIFO Watermark interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 6 and 2.
interrupt1 bit 6 in the register 0x56 interrupt2 bit 2 in the register 0x56
@param v_channel_u8: The value of fifo Watermark interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_FIFO_WM |
| 1 | BMI160_INTR2_MAP_FIFO_WM |
| v_intr_fifo_wm_u8 | : The value of fifo Watermark interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_FIFO_WM, BMI160_INTR2_MAP_FIFO_WM, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_1_INTR1_FIFO_WM__REG, BMI160_USER_INTR_MAP_1_INTR2_FIFO_WM__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_fifo_wm | ( | u8 | v_channel_u8, |
| u8 | v_intr_fifo_wm_u8 | ||
| ) |
Write FIFO Watermark interrupt mapped to interrupt1 and interrupt2 form the register 0x56 bit 6 and 2.
interrupt1 bit 6 in the register 0x56 interrupt2 bit 2 in the register 0x56
@param v_channel_u8: The value of fifo Watermark interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_FIFO_WM |
| 1 | BMI160_INTR2_MAP_FIFO_WM |
| v_intr_fifo_wm_u8 | : The value of fifo Watermark interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_FIFO_WM, BMI160_INTR2_MAP_FIFO_WM, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_1_INTR1_FIFO_WM__REG, BMI160_USER_INTR_MAP_1_INTR2_FIFO_WM__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_data_rdy | ( | u8 | v_channel_u8, |
| u8 * | v_intr_data_rdy_u8 | ||
| ) |
Reads Data Ready interrupt mapped to interrupt1 and interrupt2 form the register 0x56.
interrupt1 bit 7 in the register 0x56 interrupt2 bit 3 in the register 0x56
@param v_channel_u8: The value of data ready interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_DATA_RDY |
| 1 | BMI160_INTR2_MAP_DATA_RDY |
| v_intr_data_rdy_u8 | : The value of data ready interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_INTR1_MAP_DATA_RDY, BMI160_INTR2_MAP_DATA_RDY, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MAP_1_INTR1_DATA_RDY__REG, BMI160_USER_INTR_MAP_1_INTR2_DATA_RDY__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_data_rdy | ( | u8 | v_channel_u8, |
| u8 | v_intr_data_rdy_u8 | ||
| ) |
Write Data Ready interrupt mapped to interrupt1 and interrupt2 form the register 0x56.
interrupt1 bit 7 in the register 0x56 interrupt2 bit 3 in the register 0x56
@param v_channel_u8: The value of data ready interrupt selection
| v_channel_u8 | interrupt |
|---|---|
| 0 | BMI160_INTR1_MAP_DATA_RDY |
| 1 | BMI160_INTR2_MAP_DATA_RDY |
| v_intr_data_rdy_u8 | : The value of data ready interrupt enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_INTR1_MAP_DATA_RDY, BMI160_INTR2_MAP_DATA_RDY, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MAP_1_INTR1_DATA_RDY__REG, BMI160_USER_INTR_MAP_1_INTR2_DATA_RDY__REG, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_tap_source | ( | u8 * | v_tap_source_u8 | ) |
This API reads data source for the interrupt engine for the single and double tap interrupts from the register 0x58 bit 3.
| v_tap_source_u8 | : The value of the tap source
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_DATA_0_INTR_TAP_SOURCE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_tap_source | ( | u8 | v_tap_source_u8 | ) |
This API write data source for the interrupt engine for the single and double tap interrupts from the register 0x58 bit 3.
| v_tap_source_u8 | : The value of the tap source
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SOURCE_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_DATA_0_INTR_TAP_SOURCE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_low_high_source | ( | u8 * | v_low_high_source_u8 | ) |
This API Reads Data source for the interrupt engine for the low and high g interrupts from the register 0x58 bit 7.
| v_low_high_source_u8 | : The value of the tap source
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_DATA_0_INTR_LOW_HIGH_SOURCE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_low_high_source | ( | u8 | v_low_high_source_u8 | ) |
This API write Data source for the interrupt engine for the low and high g interrupts from the register 0x58 bit 7.
| v_low_high_source_u8 | : The value of the tap source
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SOURCE_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_DATA_0_INTR_LOW_HIGH_SOURCE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_motion_source | ( | u8 * | v_motion_source_u8 | ) |
This API reads Data source for the interrupt engine for the nomotion and anymotion interrupts from the register 0x59 bit 7.
| v_motion_source_u8 | : The value of the any/no motion interrupt source
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_DATA_1_INTR_MOTION_SOURCE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_motion_source | ( | u8 | v_motion_source_u8 | ) |
This API write Data source for the interrupt engine for the nomotion and anymotion interrupts from the register 0x59 bit 7.
| v_motion_source_u8 | : The value of the any/no motion interrupt source
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SOURCE_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_DATA_1_INTR_MOTION_SOURCE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_low_g_durn | ( | u8 * | v_low_g_durn_u8 | ) |
This API is used to read the low_g duration from register 0x5A bit 0 to 7.
| v_low_g_durn_u8 | : The value of low_g duration @note Low_g duration trigger trigger delay according to "(v_low_g_durn_u8 * 2.5)ms" in a range from 2.5ms to 640ms. the default corresponds delay is 20ms @note When low_g data source of interrupt is unfiltered the sensor must not be in low power mode @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_0_INTR_LOW_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_low_g_durn | ( | u8 | v_low_g_durn_u8 | ) |
This API is used to write the low_g duration from register 0x5A bit 0 to 7.
| v_low_g_durn_u8 | : The value of low_g duration @note Low_g duration trigger trigger delay according to "(v_low_g_durn_u8 * 2.5)ms" in a range from 2.5ms to 640ms. the default corresponds delay is 20ms @note When low_g data source of interrupt is unfiltered the sensor must not be in low power mode @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_0_INTR_LOW_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_low_g_thres | ( | u8 * | v_low_g_thres_u8 | ) |
This API is used to read Threshold definition for the low-g interrupt from the register 0x5B bit 0 to 7.
| v_low_g_thres_u8 | : The value of low_g threshold @note Low_g interrupt trigger threshold according to (v_low_g_thres_u8 * 7.81)mg for v_low_g_thres_u8 > 0 3.91 mg for v_low_g_thres_u8 = 0 The threshold range is form 3.91mg to 2.000mg @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_1_INTR_LOW_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_low_g_thres | ( | u8 | v_low_g_thres_u8 | ) |
This API is used to write Threshold definition for the low-g interrupt from the register 0x5B bit 0 to 7.
| v_low_g_thres_u8 | : The value of low_g threshold @note Low_g interrupt trigger threshold according to (v_low_g_thres_u8 * 7.81)mg for v_low_g_thres_u8 > 0 3.91 mg for v_low_g_thres_u8 = 0 The threshold range is form 3.91mg to 2.000mg @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_1_INTR_LOW_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_low_g_hyst | ( | u8 * | v_low_hyst_u8 | ) |
This API Reads Low-g interrupt hysteresis from the register 0x5C bit 0 to 1.
| v_low_hyst_u8 | :The value of low_g hysteresis @note Low_g hysteresis calculated by v_low_hyst_u8*125 mg @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_2_INTR_LOW_G_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_low_g_hyst | ( | u8 | v_low_hyst_u8 | ) |
This API write Low-g interrupt hysteresis from the register 0x5C bit 0 to 1.
| v_low_hyst_u8 | :The value of low_g hysteresis @note Low_g hysteresis calculated by v_low_hyst_u8*125 mg @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_LOWHIGH_2_INTR_LOW_G_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_low_g_mode | ( | u8 * | v_low_g_mode_u8 | ) |
This API reads Low-g interrupt mode from the register 0x5C bit 2.
| v_low_g_mode_u8 | : The value of low_g mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_2_INTR_LOW_G_MODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_low_g_mode | ( | u8 | v_low_g_mode_u8 | ) |
This API write Low-g interrupt mode from the register 0x5C bit 2.
| v_low_g_mode_u8 | : The value of low_g mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_LOW_G_MODE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_LOWHIGH_2_INTR_LOW_G_MODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_high_g_hyst | ( | u8 * | v_high_g_hyst_u8 | ) |
This API reads High-g interrupt hysteresis from the register 0x5C bit 6 and 7.
| v_high_g_hyst_u8 | : The value of high hysteresis @note High_g hysteresis changes according to accel g range accel g range can be set by the function ""
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_2_INTR_HIGH_G_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_high_g_hyst | ( | u8 | v_high_g_hyst_u8 | ) |
This API write High-g interrupt hysteresis from the register 0x5C bit 6 and 7.
| v_high_g_hyst_u8 | : The value of high hysteresis @note High_g hysteresis changes according to accel g range accel g range can be set by the function ""
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_LOWHIGH_2_INTR_HIGH_G_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_high_g_durn | ( | u8 * | v_high_g_durn_u8 | ) |
This API is used to read Delay time definition for the high-g interrupt from the register 0x5D bit 0 to 7.
| v_high_g_durn_u8 | : The value of high duration @note High_g interrupt delay triggered according to v_high_g_durn_u8 * 2.5ms in a range from 2.5ms to 640ms @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_3_INTR_HIGH_G_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_high_g_durn | ( | u8 | v_high_g_durn_u8 | ) |
This API is used to write Delay time definition for the high-g interrupt from the register 0x5D bit 0 to 7.
| v_high_g_durn_u8 | : The value of high duration @note High_g interrupt delay triggered according to v_high_g_durn_u8 * 2.5ms in a range from 2.5ms to 640ms @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_3_INTR_HIGH_G_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_high_g_thres | ( | u8 * | v_high_g_thres_u8 | ) |
This API is used to read Threshold definition for the high-g interrupt from the register 0x5E 0 to 7.
| v_high_g_thres_u8 | : Pointer holding the value of Threshold |
| accel_range | high_g threshold |
|---|---|
| 2g | v_high_g_thres_u8*7.81 mg |
| 4g | v_high_g_thres_u8*15.63 mg |
| 8g | v_high_g_thres_u8*31.25 mg |
| 16g | v_high_g_thres_u8*62.5 mg |
| accel_range | high_g threshold |
|---|---|
| 2g | 3.91 mg |
| 4g | 7.81 mg |
| 8g | 15.63 mg |
| 16g | 31.25 mg |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_4_INTR_HIGH_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_high_g_thres | ( | u8 | v_high_g_thres_u8 | ) |
This API is used to write Threshold definition for the high-g interrupt from the register 0x5E 0 to 7.
| v_high_g_thres_u8 | : Pointer holding the value of Threshold |
| accel_range | high_g threshold |
|---|---|
| 2g | v_high_g_thres_u8*7.81 mg |
| 4g | v_high_g_thres_u8*15.63 mg |
| 8g | v_high_g_thres_u8*31.25 mg |
| 16g | v_high_g_thres_u8*62.5 mg |
| accel_range | high_g threshold |
|---|---|
| 2g | 3.91 mg |
| 4g | 7.81 mg |
| 8g | 15.63 mg |
| 16g | 31.25 mg |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_LOWHIGH_4_INTR_HIGH_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_any_motion_durn | ( | u8 * | v_any_motion_durn_u8 | ) |
This API reads any motion duration from the register 0x5F bit 0 and 1.
| v_any_motion_durn_u8 | : The value of any motion duration @note Any motion duration can be calculated by "v_any_motion_durn_u8 + 1" @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_0_INTR_ANY_MOTION_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_any_motion_durn | ( | u8 | v_any_motion_durn_u8 | ) |
This API write any motion duration from the register 0x5F bit 0 and 1.
| v_any_motion_durn_u8 | : The value of any motion duration @note Any motion duration can be calculated by "v_any_motion_durn_u8 + 1" @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MOTION_0_INTR_ANY_MOTION_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_slow_no_motion_durn | ( | u8 * | v_slow_no_motion_u8 | ) |
This API read Slow/no-motion interrupt trigger delay duration from the register 0x5F bit 2 to 7.
| v_slow_no_motion_u8 | :The value of slow no motion duration |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error @note @note v_slow_no_motion_u8(5:4)=0b00 -> [v_slow_no_motion_u8(3:0) + 1] * 1.28s (1.28s-20.48s) @note v_slow_no_motion_u8(5:4)=1 -> [v_slow_no_motion_u8(3:0)+5] * 5.12s (25.6s-102.4s) @note v_slow_no_motion_u8(5)='1' -> [(v_slow_no_motion_u8:0)+11] * 10.24s (112.64s-430.08s);
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_0_INTR_SLOW_NO_MOTION_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_slow_no_motion_durn | ( | u8 | v_slow_no_motion_u8 | ) |
This API write Slow/no-motion interrupt trigger delay duration from the register 0x5F bit 2 to 7.
| v_slow_no_motion_u8 | :The value of slow no motion duration |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error @note @note v_slow_no_motion_u8(5:4)=0b00 -> [v_slow_no_motion_u8(3:0) + 1] * 1.28s (1.28s-20.48s) @note v_slow_no_motion_u8(5:4)=1 -> [v_slow_no_motion_u8(3:0)+5] * 5.12s (25.6s-102.4s) @note v_slow_no_motion_u8(5)='1' -> [(v_slow_no_motion_u8:0)+11] * 10.24s (112.64s-430.08s);
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MOTION_0_INTR_SLOW_NO_MOTION_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_any_motion_thres | ( | u8 * | v_any_motion_thres_u8 | ) |
This API is used to read threshold definition for the any-motion interrupt from the register 0x60 bit 0 to 7.
| v_any_motion_thres_u8 | : The value of any motion threshold @note any motion threshold changes according to accel g range accel g range can be set by the function ""
|
| accel_range | any motion threshold |
|---|---|
| 2g | 1.95 mg |
| 4g | 3.91 mg |
| 8g | 7.81 mg |
| 16g | 15.63 mg |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_1_INTR_ANY_MOTION_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_any_motion_thres | ( | u8 | v_any_motion_thres_u8 | ) |
This API is used to write threshold definition for the any-motion interrupt from the register 0x60 bit 0 to 7.
| v_any_motion_thres_u8 | : The value of any motion threshold @note any motion threshold changes according to accel g range accel g range can be set by the function ""
|
| accel_range | any motion threshold |
|---|---|
| 2g | 1.95 mg |
| 4g | 3.91 mg |
| 8g | 7.81 mg |
| 16g | 15.63 mg |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_1_INTR_ANY_MOTION_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_slow_no_motion_thres | ( | u8 * | v_slow_no_motion_thres_u8 | ) |
This API is used to read threshold for the slow/no-motion interrupt from the register 0x61 bit 0 to 7.
| v_slow_no_motion_thres_u8 | : The value of slow no motion threshold |
| accel_range | slow no motion threshold |
|---|---|
| 2g | v_slow_no_motion_thres_u8*3.91 mg |
| 4g | v_slow_no_motion_thres_u8*7.81 mg |
| 8g | v_slow_no_motion_thres_u8*15.63 mg |
| 16g | v_slow_no_motion_thres_u8*31.25 mg |
| accel_range | slow no motion threshold |
|---|---|
| 2g | 1.95 mg |
| 4g | 3.91 mg |
| 8g | 7.81 mg |
| 16g | 15.63 mg |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_2_INTR_SLOW_NO_MOTION_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_slow_no_motion_thres | ( | u8 | v_slow_no_motion_thres_u8 | ) |
This API is used to write threshold for the slow/no-motion interrupt from the register 0x61 bit 0 to 7.
| v_slow_no_motion_thres_u8 | : The value of slow no motion threshold |
| accel_range | slow no motion threshold |
|---|---|
| 2g | v_slow_no_motion_thres_u8*3.91 mg |
| 4g | v_slow_no_motion_thres_u8*7.81 mg |
| 8g | v_slow_no_motion_thres_u8*15.63 mg |
| 16g | v_slow_no_motion_thres_u8*31.25 mg |
| accel_range | slow no motion threshold |
|---|---|
| 2g | 1.95 mg |
| 4g | 3.91 mg |
| 8g | 7.81 mg |
| 16g | 15.63 mg |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_2_INTR_SLOW_NO_MOTION_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_slow_no_motion_select | ( | u8 * | v_intr_slow_no_motion_select_u8 | ) |
This API is used to read the slow/no-motion selection from the register 0x62 bit 0.
| v_intr_slow_no_motion_select_u8 | : The value of slow/no-motion select
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_MOTION_3_INTR_SLOW_NO_MOTION_SELECT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_slow_no_motion_select | ( | u8 | v_intr_slow_no_motion_select_u8 | ) |
This API is used to write the slow/no-motion selection from the register 0x62 bit 0.
| v_intr_slow_no_motion_select_u8 | : The value of slow/no-motion select
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_NO_MOTION, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_MOTION_3_INTR_SLOW_NO_MOTION_SELECT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_significant_motion_select | ( | u8 * | v_intr_significant_motion_select_u8 | ) |
This API is used to select the significant or any motion interrupt from the register 0x62 bit 1.
| v_intr_significant_motion_select_u8 | : the value of significant or any motion interrupt selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_SIGNIFICATION_MOTION_SELECT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_map_significant_motion_intr(), and bmi160_set_intr_any_motion().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_significant_motion_select | ( | u8 | v_intr_significant_motion_select_u8 | ) |
This API is used to write, select the significant or any motion interrupt from the register 0x62 bit 1.
| v_intr_significant_motion_select_u8 | : the value of significant or any motion interrupt selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SIGNIFICANT_MOTION, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_SIGNIFICATION_MOTION_SELECT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_map_significant_motion_intr(), and bmi160_set_intr_any_motion().
| BMI160_RETURN_FUNCTION_TYPE bmi160_unmap_significant_motion_intr | ( | u8 | v_significant_u8 | ) |
This API used to unmap the signification motion interrupt.
brief This API used to unmap the signification motion interrupt
| v_significant_u8 | : The value of interrupt selection BMI160_MAP_INTR1 0 BMI160_MAP_INTR2 1 |
References BMI160_ASSIGN_DATA, BMI160_INIT_VALUE, BMI160_MAP_INTR1, BMI160_MAP_INTR2, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ENABLE_0_ADDR, BMI160_USER_INTR_MAP_0_INTR1_ANY_MOTION__REG, BMI160_USER_INTR_MAP_2_INTR2_ANY_MOTION__REG, bmi160_write_reg(), bmi160_t::delay_msec, E_BMI160_COMM_RES, E_BMI160_OUT_OF_RANGE, V_ANY_MOTION_AXIS_STAT, and V_ANY_MOTION_INTR_STAT.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_significant_motion_skip | ( | u8 * | v_int_sig_mot_skip_u8 | ) |
This API is used to read the significant skip time from the register 0x62 bit 2 and 3.
| v_int_sig_mot_skip_u8 | : the value of significant skip time
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_SIGNIFICANT_MOTION_SKIP__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_significant_motion_skip | ( | u8 | v_int_sig_mot_skip_u8 | ) |
This API is used to write the significant skip time from the register 0x62 bit 2 and 3.
| v_int_sig_mot_skip_u8 | : the value of significant skip time
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_UNDER_SIG_MOTION, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_SIGNIFICANT_MOTION_SKIP__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_significant_motion_proof | ( | u8 * | v_significant_motion_proof_u8 | ) |
This API is used to read the significant proof time from the register 0x62 bit 4 and 5.
| v_significant_motion_proof_u8 | : the value of significant proof time
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_SIGNIFICANT_MOTION_PROOF__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_significant_motion_proof | ( | u8 | v_significant_motion_proof_u8 | ) |
This API is used to write the significant proof time from the register 0x62 bit 4 and 5.
| v_significant_motion_proof_u8 | : the value of significant proof time
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_UNDER_SIG_MOTION, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_SIGNIFICANT_MOTION_PROOF__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_tap_durn | ( | u8 * | v_tap_durn_u8 | ) |
This API is used to get the tap duration from the register 0x63 bit 0 to 2.
| v_tap_durn_u8 | : The value of tap duration
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_TAP_0_INTR_TAP_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_tap_durn | ( | u8 | v_tap_durn_u8 | ) |
This API is used to write the tap duration from the register 0x63 bit 0 to 2.
| v_tap_durn_u8 | : The value of tap duration
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_TAP_TURN, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_TAP_DURN_100MS, BMI160_TAP_DURN_150MS, BMI160_TAP_DURN_200MS, BMI160_TAP_DURN_250MS, BMI160_TAP_DURN_375MS, BMI160_TAP_DURN_500MS, BMI160_TAP_DURN_50MS, BMI160_TAP_DURN_700MS, BMI160_USER_INTR_TAP_0_INTR_TAP_DURN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_tap_shock | ( | u8 * | v_tap_shock_u8 | ) |
This API read the tap shock duration from the register 0x63 bit 2.
| v_tap_shock_u8 | :The value of tap shock
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_TAP_0_INTR_TAP_SHOCK__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_tap_shock | ( | u8 | v_tap_shock_u8 | ) |
This API write the tap shock duration from the register 0x63 bit 2.
| v_tap_shock_u8 | :The value of tap shock
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_TAP_SHOCK, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_TAP_0_INTR_TAP_SHOCK__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_tap_quiet | ( | u8 * | v_tap_quiet_u8 | ) |
This API read tap quiet duration from the register 0x63 bit 7.
| v_tap_quiet_u8 | : The value of tap quiet
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_TAP_0_INTR_TAP_QUIET__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_tap_quiet | ( | u8 | v_tap_quiet_u8 | ) |
This API write tap quiet duration from the register 0x63 bit 7.
| v_tap_quiet_u8 | : The value of tap quiet
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_TAP_QUIET, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_TAP_0_INTR_TAP_QUIET__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_tap_thres | ( | u8 * | v_tap_thres_u8 | ) |
This API read Threshold of the single/double tap interrupt from the register 0x64 bit 0 to 4.
| v_tap_thres_u8 | : The value of single/double tap threshold |
| accel_range | single/double tap threshold |
|---|---|
| 2g | ((v_tap_thres_u8 + 1) * 62.5)mg |
| 4g | ((v_tap_thres_u8 + 1) * 125)mg |
| 8g | ((v_tap_thres_u8 + 1) * 250)mg |
| 16g | ((v_tap_thres_u8 + 1) * 500)mg |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_TAP_1_INTR_TAP_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_tap_thres | ( | u8 | v_tap_thres_u8 | ) |
This API write Threshold of the single/double tap interrupt from the register 0x64 bit 0 to 4.
| v_tap_thres_u8 | : The value of single/double tap threshold |
| accel_range | single/double tap threshold |
|---|---|
| 2g | ((v_tap_thres_u8 + 1) * 62.5)mg |
| 4g | ((v_tap_thres_u8 + 1) * 125)mg |
| 8g | ((v_tap_thres_u8 + 1) * 250)mg |
| 16g | ((v_tap_thres_u8 + 1) * 500)mg |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_TAP_1_INTR_TAP_THRES__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient_mode | ( | u8 * | v_orient_mode_u8 | ) |
This API read the threshold for orientation interrupt from the register 0x65 bit 0 and 1.
| v_orient_mode_u8 | : The value of threshold for orientation
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ORIENT_0_INTR_ORIENT_MODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient_mode | ( | u8 | v_orient_mode_u8 | ) |
This API write the threshold for orientation interrupt from the register 0x65 bit 0 and 1.
| v_orient_mode_u8 | : The value of threshold for orientation
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ORIENT_MODE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ORIENT_0_INTR_ORIENT_MODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient_blocking | ( | u8 * | v_orient_blocking_u8 | ) |
This API read the orient blocking mode that is used for the generation of the orientation interrupt. from the register 0x65 bit 2 and 3.
| v_orient_blocking_u8 | : The value of orient blocking mode
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ORIENT_0_INTR_ORIENT_BLOCKING__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient_blocking | ( | u8 | v_orient_blocking_u8 | ) |
This API write the orient blocking mode that is used for the generation of the orientation interrupt. from the register 0x65 bit 2 and 3.
| v_orient_blocking_u8 | : The value of orient blocking mode
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ORIENT_BLOCKING, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ORIENT_0_INTR_ORIENT_BLOCKING__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient_hyst | ( | u8 * | v_orient_hyst_u8 | ) |
This API read Orient interrupt hysteresis, from the register 0x64 bit 4 to 7.
| v_orient_hyst_u8 | : The value of orient hysteresis @note 1 LSB corresponds to 62.5 mg, irrespective of the selected accel range @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ORIENT_0_INTR_ORIENT_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient_hyst | ( | u8 | v_orient_hyst_u8 | ) |
This API write Orient interrupt hysteresis, from the register 0x64 bit 4 to 7.
| v_orient_hyst_u8 | : The value of orient hysteresis @note 1 LSB corresponds to 62.5 mg, irrespective of the selected accel range @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ORIENT_0_INTR_ORIENT_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient_theta | ( | u8 * | v_orient_theta_u8 | ) |
This API read Orient blocking angle (0 to 44.8) from the register 0x66 bit 0 to 5.
| v_orient_theta_u8 | : The value of Orient blocking angle |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ORIENT_1_INTR_ORIENT_THETA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient_theta | ( | u8 | v_orient_theta_u8 | ) |
This API write Orient blocking angle (0 to 44.8) from the register 0x66 bit 0 to 5.
| v_orient_theta_u8 | : The value of Orient blocking angle |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ORIENT_THETA, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ORIENT_1_INTR_ORIENT_THETA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient_ud_enable | ( | u8 * | v_orient_ud_u8 | ) |
This API read orient change of up/down bit from the register 0x66 bit 6.
| v_orient_ud_u8 | : The value of orient change of up/down
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ORIENT_1_INTR_ORIENT_UD_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient_ud_enable | ( | u8 | v_orient_ud_u8 | ) |
This API write orient change of up/down bit from the register 0x66 bit 6.
| v_orient_ud_u8 | : The value of orient change of up/down
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_ORIENT_UD, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ORIENT_1_INTR_ORIENT_UD_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_orient_axes_enable | ( | u8 * | v_orient_axes_u8 | ) |
This API read orientation axes changes from the register 0x66 bit 7.
| v_orient_axes_u8 | : The value of orient axes assignment
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_ORIENT_1_INTR_ORIENT_AXES_EX__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_orient_axes_enable | ( | u8 | v_orient_axes_u8 | ) |
This API write orientation axes changes from the register 0x66 bit 7.
| v_orient_axes_u8 | : The value of orient axes assignment
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_ORIENT_AXES, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_ORIENT_1_INTR_ORIENT_AXES_EX__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_flat_theta | ( | u8 * | v_flat_theta_u8 | ) |
This API read Flat angle (0 to 44.8) for flat interrupt from the register 0x67 bit 0 to 5.
| v_flat_theta_u8 | : The value of flat angle |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_FLAT_0_INTR_FLAT_THETA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_flat_theta | ( | u8 | v_flat_theta_u8 | ) |
This API write Flat angle (0 to 44.8) for flat interrupt from the register 0x67 bit 0 to 5.
| v_flat_theta_u8 | : The value of flat angle |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_FLAT_THETA, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_FLAT_0_INTR_FLAT_THETA__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_flat_hold | ( | u8 * | v_flat_hold_u8 | ) |
This API read Flat interrupt hold time; from the register 0x68 bit 4 and 5.
| v_flat_hold_u8 | : The value of flat hold time
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_FLAT_1_INTR_FLAT_HOLD__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_flat_hold | ( | u8 | v_flat_hold_u8 | ) |
This API write Flat interrupt hold time; from the register 0x68 bit 4 and 5.
| v_flat_hold_u8 | : The value of flat hold time
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_FLAT_HOLD, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_FLAT_1_INTR_FLAT_HOLD__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_intr_flat_hyst | ( | u8 * | v_flat_hyst_u8 | ) |
This API read flat interrupt hysteresis from the register 0x68 bit 0 to 3.
| v_flat_hyst_u8 | : The value of flat hysteresis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_INTR_FLAT_1_INTR_FLAT_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_intr_flat_hyst | ( | u8 | v_flat_hyst_u8 | ) |
This API write flat interrupt hysteresis from the register 0x68 bit 0 to 3.
| v_flat_hyst_u8 | : The value of flat hysteresis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_FLAT_HYST, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_INTR_FLAT_1_INTR_FLAT_HYST__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_foc_accel_z | ( | u8 * | v_foc_accel_z_u8 | ) |
This API read accel offset compensation target value for z-axis from the register 0x69 bit 0 and 1.
| v_foc_accel_z_u8 | : the value of accel offset compensation z axis
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FOC_ACCEL_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_foc_accel_z | ( | u8 | v_foc_accel_z_u8 | ) |
This API write accel offset compensation target value for z-axis from the register 0x69 bit 0 and 1.
| v_foc_accel_z_u8 | : the value of accel offset compensation z axis
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FOC_ACCEL_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_foc_accel_y | ( | u8 * | v_foc_accel_y_u8 | ) |
This API read accel offset compensation target value for y-axis from the register 0x69 bit 2 and 3.
| v_foc_accel_y_u8 | : the value of accel offset compensation y axis
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FOC_ACCEL_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_foc_accel_y | ( | u8 | v_foc_accel_y_u8 | ) |
This API write accel offset compensation target value for y-axis from the register 0x69 bit 2 and 3.
| v_foc_accel_y_u8 | : the value of accel offset compensation y axis
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ACCEL_FOC, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FOC_ACCEL_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_foc_accel_x | ( | u8 * | v_foc_accel_x_u8 | ) |
This API read accel offset compensation target value for x-axis is from the register 0x69 bit 4 and 5.
| v_foc_accel_x_u8 | : the value of accel offset compensation x axis
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FOC_ACCEL_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_foc_accel_x | ( | u8 | v_foc_accel_x_u8 | ) |
This API write accel offset compensation target value for x-axis is from the register 0x69 bit 4 and 5.
| v_foc_accel_x_u8 | : the value of accel offset compensation x axis
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ACCEL_FOC, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_FOC_ACCEL_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_foc_trigger | ( | u8 | v_axis_u8, |
| u8 | v_foc_accel_u8, | ||
| s8 * | v_accel_offset_s8 | ||
| ) |
This API writes accel fast offset compensation from the register 0x69 bit 0 to 5.
This API writes each axis individually FOC_X_AXIS - bit 4 and 5 FOC_Y_AXIS - bit 2 and 3 FOC_Z_AXIS - bit 0 and 1
| v_foc_accel_u8 | The value of accel offset compensation
| ||||||||||
| v_axis_u8 | The value of accel offset axis selection
@param v_accel_offset_s8: The accel offset value @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References ACCEL_OFFSET_ENABLE, BMI160_DELAY_SETTLING_TIME, BMI160_FOC_STAT_HIGH, BMI160_GEN_READ_WRITE_DATA_LENGTH, bmi160_get_accel_offset_compensation_xaxis(), bmi160_get_accel_offset_compensation_yaxis(), bmi160_get_accel_offset_compensation_zaxis(), bmi160_get_foc_rdy(), BMI160_INIT_VALUE, BMI160_MAXIMUM_TIMEOUT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_accel_offset_enable(), BMI160_SET_BITSLICE, bmi160_set_command_register(), BMI160_USER_FOC_ACCEL_X__REG, BMI160_USER_FOC_ACCEL_Y__REG, BMI160_USER_FOC_ACCEL_Z__REG, bmi160_t::delay_msec, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, FOC_X_AXIS, FOC_Y_AXIS, FOC_Z_AXIS, START_FOC_ACCEL_GYRO, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_accel_foc_trigger_xyz | ( | u8 | v_foc_accel_x_u8, |
| u8 | v_foc_accel_y_u8, | ||
| u8 | v_foc_accel_z_u8, | ||
| s8 * | v_accel_off_x_s8, | ||
| s8 * | v_accel_off_y_s8, | ||
| s8 * | v_accel_off_z_s8 | ||
| ) |
This API write fast accel offset compensation it writes all axis together.To the register 0x69 bit 0 to 5 FOC_X_AXIS - bit 4 and 5 FOC_Y_AXIS - bit 2 and 3 FOC_Z_AXIS - bit 0 and 1.
| v_foc_accel_x_u8 | The value of accel offset x compensation
| ||||||||||
| v_foc_accel_y_u8 | The value of accel offset y compensation
| ||||||||||
| v_foc_accel_z_u8 | The value of accel offset z compensation
| ||||||||||
| v_accel_off_x_s8 | The value of accel offset x axis | ||||||||||
| v_accel_off_y_s8 | The value of accel offset y axis | ||||||||||
| v_accel_off_z_s8 | The value of accel offset z axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References ACCEL_OFFSET_ENABLE, BMI160_DELAY_SETTLING_TIME, BMI160_FOC_STAT_HIGH, BMI160_GEN_READ_WRITE_DATA_LENGTH, bmi160_get_accel_offset_compensation_xaxis(), bmi160_get_accel_offset_compensation_yaxis(), bmi160_get_accel_offset_compensation_zaxis(), bmi160_get_foc_rdy(), BMI160_INIT_VALUE, BMI160_MAXIMUM_TIMEOUT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_accel_offset_enable(), BMI160_SET_BITSLICE, bmi160_set_command_register(), BMI160_USER_FOC_ACCEL_X__REG, BMI160_USER_FOC_ACCEL_Y__REG, BMI160_USER_FOC_ACCEL_Z__REG, bmi160_t::delay_msec, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, START_FOC_ACCEL_GYRO, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_foc_gyro_enable | ( | u8 * | v_foc_gyro_u8 | ) |
This API read gyro fast offset enable from the register 0x69 bit 6.
| v_foc_gyro_u8 | : The value of gyro fast offset enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_FOC_GYRO_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_foc_gyro_enable | ( | u8 | v_foc_gyro_u8, |
| s16 * | v_gyro_off_x_s16, | ||
| s16 * | v_gyro_off_y_s16, | ||
| s16 * | v_gyro_off_z_s16 | ||
| ) |
This API write gyro fast offset enable from the register 0x69 bit 6.
| v_foc_gyro_u8 | : The value of gyro fast offset enable
| ||||||
| v_gyro_off_x_s16 | : The value of gyro fast offset x axis data | ||||||
| v_gyro_off_y_s16 | : The value of gyro fast offset y axis data | ||||||
| v_gyro_off_z_s16 | : The value of gyro fast offset z axis data |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_DELAY_SETTLING_TIME, BMI160_FOC_STAT_HIGH, BMI160_GEN_READ_WRITE_DATA_LENGTH, bmi160_get_foc_rdy(), bmi160_get_gyro_offset_compensation_xaxis(), bmi160_get_gyro_offset_compensation_yaxis(), bmi160_get_gyro_offset_compensation_zaxis(), BMI160_INIT_VALUE, BMI160_MAXIMUM_TIMEOUT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_command_register(), bmi160_set_gyro_offset_enable(), BMI160_USER_FOC_GYRO_ENABLE__REG, bmi160_t::delay_msec, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, GYRO_OFFSET_ENABLE, START_FOC_ACCEL_GYRO, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_nvm_prog_enable | ( | u8 * | v_nvm_prog_u8 | ) |
This API read NVM program enable from the register 0x6A bit 1.
| v_nvm_prog_u8 | : The value of NVM program enable
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_CONFIG_NVM_PROG_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_nvm_prog_enable | ( | u8 | v_nvm_prog_u8 | ) |
This API write NVM program enable from the register 0x6A bit 1.
| v_nvm_prog_u8 | : The value of NVM program enable
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_NVM_PROG, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_CONFIG_NVM_PROG_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_spi3 | ( | u8 * | v_spi3_u8 | ) |
This API read to configure SPI Interface Mode for primary and OIS interface from the register 0x6B bit 0.
| v_spi3_u8 | : The value of SPI mode selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_IF_CONFIG_SPI3__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_spi3 | ( | u8 | v_spi3_u8 | ) |
This API write to configure SPI Interface Mode for primary and OIS interface from the register 0x6B bit 0.
| v_spi3_u8 | : The value of SPI mode selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SPI3, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_IF_CONFIG_SPI3__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_i2c_wdt_select | ( | u8 * | v_i2c_wdt_u8 | ) |
This API read I2C Watchdog timer from the register 0x70 bit 1.
| v_i2c_wdt_u8 | : The value of I2C watch dog timer
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_IF_CONFIG_I2C_WDT_SELECT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_i2c_wdt_select | ( | u8 | v_i2c_wdt_u8 | ) |
This API write I2C Watchdog timer from the register 0x70 bit 1.
| v_i2c_wdt_u8 | : The value of I2C watch dog timer
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_I2C_WDT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_IF_CONFIG_I2C_WDT_SELECT__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_i2c_wdt_enable | ( | u8 * | v_i2c_wdt_u8 | ) |
This API read I2C watchdog enable from the register 0x70 bit 2.
| v_i2c_wdt_u8 | : The value of I2C watchdog enable
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_IF_CONFIG_I2C_WDT_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_i2c_wdt_enable | ( | u8 | v_i2c_wdt_u8 | ) |
This API write I2C watchdog enable from the register 0x70 bit 2.
| v_i2c_wdt_u8 | : The value of I2C watchdog enable
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_I2C_WDT, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_IF_CONFIG_I2C_WDT_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_if_mode | ( | u8 * | v_if_mode_u8 | ) |
This API read I2C interface configuration(if) moe from the register 0x6B bit 4 and 5.
| v_if_mode_u8 | : The value of interface configuration mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_IF_CONFIG_IF_MODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_if_mode | ( | u8 | v_if_mode_u8 | ) |
This API write I2C interface configuration(if) moe from the register 0x6B bit 4 and 5.
| v_if_mode_u8 | : The value of interface configuration mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_IF_MODE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_IF_CONFIG_IF_MODE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_sleep_trigger | ( | u8 * | v_gyro_sleep_trigger_u8 | ) |
This API read gyro sleep trigger from the register 0x6C bit 0 to 2.
| v_gyro_sleep_trigger_u8 | : The value of gyro sleep trigger
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_SLEEP_TRIGGER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_sleep_trigger | ( | u8 | v_gyro_sleep_trigger_u8 | ) |
This API write gyro sleep trigger from the register 0x6C bit 0 to 2.
| v_gyro_sleep_trigger_u8 | : The value of gyro sleep trigger
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_GYRO_SLEEP_TIGGER, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_SLEEP_TRIGGER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_wakeup_trigger | ( | u8 * | v_gyro_wakeup_trigger_u8 | ) |
This API read gyro wakeup trigger from the register 0x6C bit 3 and 4.
| v_gyro_wakeup_trigger_u8 | : The value of gyro wakeup trigger
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_WAKEUP_TRIGGER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_wakeup_trigger | ( | u8 | v_gyro_wakeup_trigger_u8 | ) |
This API write gyro wakeup trigger from the register 0x6C bit 3 and 4.
| v_gyro_wakeup_trigger_u8 | : The value of gyro wakeup trigger
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_GYRO_WAKEUP_TRIGGER, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_WAKEUP_TRIGGER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_sleep_state | ( | u8 * | v_gyro_sleep_state_u8 | ) |
This API read Target state for gyro sleep mode from the register 0x6C bit 5.
| v_gyro_sleep_state_u8 | : The value of gyro sleep mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_SLEEP_STATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_sleep_state | ( | u8 | v_gyro_sleep_state_u8 | ) |
This API write Target state for gyro sleep mode from the register 0x6C bit 5.
| v_gyro_sleep_state_u8 | : The value of gyro sleep mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SLEEP_STATE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_SLEEP_STATE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_wakeup_intr | ( | u8 * | v_gyro_wakeup_intr_u8 | ) |
This API read gyro wakeup interrupt from the register 0x6C bit 6.
| v_gyro_wakeup_intr_u8 | : The valeu of gyro wakeup interrupt
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_WAKEUP_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_wakeup_intr | ( | u8 | v_gyro_wakeup_intr_u8 | ) |
This API write gyro wakeup interrupt from the register 0x6C bit 6.
| v_gyro_wakeup_intr_u8 | : The valeu of gyro wakeup interrupt
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_WAKEUP_INTR, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_WAKEUP_INTR__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_selftest_axis | ( | u8 * | v_accel_selftest_axis_u8 | ) |
This API read accel select axis to be self-test.
| v_accel_selftest_axis_u8 | : The value of accel self test axis selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_SELFTEST_AXIS__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_selftest_axis | ( | u8 | v_accel_selftest_axis_u8 | ) |
This API write accel select axis to be self-test.
| v_accel_selftest_axis_u8 | : The value of accel self test axis selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_ACCEL_SELFTEST_AXIS, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_ACCEL_SELFTEST_AXIS__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_selftest_sign | ( | u8 * | v_accel_selftest_sign_u8 | ) |
This API read accel self test axis sign from the register 0x6D bit 2.
| v_accel_selftest_sign_u8 | The value of accel self test axis sign
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_ACCEL_SELFTEST_SIGN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_selftest_sign | ( | u8 | v_accel_selftest_sign_u8 | ) |
This API write accel self test axis sign from the register 0x6D bit 2.
| v_accel_selftest_sign_u8 | The value of accel self test axis sign
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SELFTEST_SIGN, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_ACCEL_SELFTEST_SIGN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_selftest_amp | ( | u8 * | v_accel_selftest_amp_u8 | ) |
This API read accel self test amplitude from the register 0x6D bit 3 select amplitude of the selftest deflection:
| v_accel_selftest_amp_u8 | : The value of accel self test amplitude
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_SELFTEST_AMP__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_selftest_amp | ( | u8 | v_accel_selftest_amp_u8 | ) |
This API write accel self test amplitude from the register 0x6D bit 3 select amplitude of the selftest deflection:
| v_accel_selftest_amp_u8 | : The value of accel self test amplitude
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SELFTEST_AMP, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_SELFTEST_AMP__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_selftest_start | ( | u8 * | v_gyro_selftest_start_u8 | ) |
This API read gyro self test trigger.
| v_gyro_selftest_start_u8 | The value of gyro self test start |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_GYRO_SELFTEST_START__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_selftest_start | ( | u8 | v_gyro_selftest_start_u8 | ) |
This API write gyro self test trigger.
| v_gyro_selftest_start_u8 | The value of gyro self test start |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_SELFTEST_START, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_GYRO_SELFTEST_START__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_spi_enable | ( | u8 * | v_spi_enable_u8 | ) |
This API read primary interface selection I2C or SPI from the register 0x70 bit 0.
| v_spi_enable_u8 | The value of Interface selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_NV_CONFIG_SPI_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_spi_enable | ( | u8 | v_spi_enable_u8 | ) |
This API write primary interface selection I2C or SPI from the register 0x70 bit 0.
| v_spi_enable_u8 | The value of Interface selection
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_NV_CONFIG_SPI_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_spare0_trim | ( | u8 * | v_spare0_trim_u8 | ) |
This API read the spare zero form register 0x70 bit 3.
| v_spare0_trim_u8 | The value of spare zero |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_NV_CONFIG_SPARE0__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_spare0_trim | ( | u8 | v_spare0_trim_u8 | ) |
This API write the spare zero form register 0x70 bit 3.
| v_spare0_trim_u8 | The value of spare zero |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_NV_CONFIG_SPARE0__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_nvm_counter | ( | u8 * | v_nvm_counter_u8 | ) |
This API read the NVM counter form register 0x70 bit 4 to 7.
| v_nvm_counter_u8 | The value of NVM counter |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_NV_CONFIG_NVM_COUNTER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_nvm_counter | ( | u8 | v_nvm_counter_u8 | ) |
This API write the NVM counter form register 0x70 bit 4 to 7.
| v_nvm_counter_u8 | The value of NVM counter |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_NV_CONFIG_NVM_COUNTER__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_offset_compensation_xaxis | ( | s8 * | v_accel_off_x_s8 | ) |
This API read accel manual offset compensation of x axis from the register 0x71 bit 0 to 7.
| v_accel_off_x_s8 | The value of accel manual offset compensation of x axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_OFFSET_0_ACCEL_OFF_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_accel_foc_trigger_xyz(), and bmi160_set_accel_foc_trigger().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_offset_compensation_xaxis | ( | s8 | v_accel_off_x_s8 | ) |
This API write accel manual offset compensation of x axis from the register 0x71 bit 0 to 7.
| v_accel_off_x_s8 | The value of accel manual offset compensation of x axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References ACCEL_OFFSET_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_accel_offset_enable(), BMI160_SET_BITSLICE, BMI160_USER_OFFSET_0_ACCEL_OFF_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_offset_compensation_yaxis | ( | s8 * | v_accel_off_y_s8 | ) |
This API read accel manual offset compensation of y axis from the register 0x72 bit 0 to 7.
| v_accel_off_y_s8 | The value of accel manual offset compensation of y axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_OFFSET_1_ACCEL_OFF_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_accel_foc_trigger_xyz(), and bmi160_set_accel_foc_trigger().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_offset_compensation_yaxis | ( | s8 | v_accel_off_y_s8 | ) |
This API write accel manual offset compensation of y axis from the register 0x72 bit 0 to 7.
| v_accel_off_y_s8 | The value of accel manual offset compensation of y axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References ACCEL_OFFSET_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_accel_offset_enable(), BMI160_SET_BITSLICE, BMI160_USER_OFFSET_1_ACCEL_OFF_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_offset_compensation_zaxis | ( | s8 * | v_accel_off_z_s8 | ) |
This API read accel manual offset compensation of z axis from the register 0x73 bit 0 to 7.
| v_accel_off_z_s8 | The value of accel manual offset compensation of z axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_OFFSET_2_ACCEL_OFF_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_accel_foc_trigger_xyz(), and bmi160_set_accel_foc_trigger().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_offset_compensation_zaxis | ( | s8 | v_accel_off_z_s8 | ) |
This API write accel manual offset compensation of z axis from the register 0x73 bit 0 to 7.
| v_accel_off_z_s8 | The value of accel manual offset compensation of z axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References ACCEL_OFFSET_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_accel_offset_enable(), BMI160_SET_BITSLICE, BMI160_USER_OFFSET_2_ACCEL_OFF_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_offset_compensation_xaxis | ( | s16 * | v_gyro_off_x_s16 | ) |
This API read gyro manual offset compensation of x axis from the register 0x74 bit 0 to 7 and 0x77 bit 0 and 1.
| v_gyro_off_x_s16 | The value of gyro manual offset compensation of x axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_14_BITS, BMI160_USER_OFFSET_3_GYRO_OFF_X__REG, BMI160_USER_OFFSET_6_GYRO_OFF_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_set_foc_gyro_enable().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_offset_compensation_xaxis | ( | s16 | v_gyro_off_x_s16 | ) |
This API write gyro manual offset compensation of x axis from the register 0x74 bit 0 to 7 and 0x77 bit 0 and 1.
| v_gyro_off_x_s16 | The value of gyro manual offset compensation of x axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GYRO_MANUAL_OFFSET_0_7, BMI160_GYRO_MANUAL_OFFSET_8_9, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_gyro_offset_enable(), BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_OFFSET_3_GYRO_OFF_X__REG, BMI160_USER_OFFSET_6_GYRO_OFF_X__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, GYRO_OFFSET_ENABLE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_offset_compensation_yaxis | ( | s16 * | v_gyro_off_y_s16 | ) |
This API read gyro manual offset compensation of y axis from the register 0x75 bit 0 to 7 and 0x77 bit 2 and 3.
| v_gyro_off_y_s16 | The value of gyro manual offset compensation of y axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_14_BITS, BMI160_USER_OFFSET_4_GYRO_OFF_Y__REG, BMI160_USER_OFFSET_6_GYRO_OFF_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_set_foc_gyro_enable().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_offset_compensation_yaxis | ( | s16 | v_gyro_off_y_s16 | ) |
This API write gyro manual offset compensation of y axis from the register 0x75 bit 0 to 7 and 0x77 bit 2 and 3.
| v_gyro_off_y_s16 | The value of gyro manual offset compensation of y axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GYRO_MANUAL_OFFSET_0_7, BMI160_GYRO_MANUAL_OFFSET_8_9, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_gyro_offset_enable(), BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_OFFSET_4_GYRO_OFF_Y__REG, BMI160_USER_OFFSET_6_GYRO_OFF_Y__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, GYRO_OFFSET_ENABLE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_offset_compensation_zaxis | ( | s16 * | v_gyro_off_z_s16 | ) |
This API read gyro manual offset compensation of z axis from the register 0x76 bit 0 to 7 and 0x77 bit 4 and 5.
| v_gyro_off_z_s16 | The value of gyro manual offset compensation of z axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_14_BITS, BMI160_USER_OFFSET_5_GYRO_OFF_Z__REG, BMI160_USER_OFFSET_6_GYRO_OFF_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_set_foc_gyro_enable().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_offset_compensation_zaxis | ( | s16 | v_gyro_off_z_s16 | ) |
This API write gyro manual offset compensation of z axis from the register 0x76 bit 0 to 7 and 0x77 bit 4 and 5.
| v_gyro_off_z_s16 | The value of gyro manual offset compensation of z axis |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GYRO_MANUAL_OFFSET_0_7, BMI160_GYRO_MANUAL_OFFSET_8_9, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_set_gyro_offset_enable(), BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_OFFSET_5_GYRO_OFF_Z__REG, BMI160_USER_OFFSET_6_GYRO_OFF_Z__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, ERROR, GYRO_OFFSET_ENABLE, and SUCCESS.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_accel_offset_enable | ( | u8 * | v_accel_off_enable_u8 | ) |
This API read the accel offset enable bit from the register 0x77 bit 6.
| v_accel_off_enable_u8 | The value of accel offset enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_OFFSET_6_ACCEL_OFF_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_accel_offset_enable | ( | u8 | v_accel_off_enable_u8 | ) |
This API write the accel offset enable bit from the register 0x77 bit 6.
| v_accel_off_enable_u8 | The value of accel offset enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_OFFSET_6_ACCEL_OFF_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
Referenced by bmi160_accel_foc_trigger_xyz(), bmi160_set_accel_foc_trigger(), bmi160_set_accel_offset_compensation_xaxis(), bmi160_set_accel_offset_compensation_yaxis(), and bmi160_set_accel_offset_compensation_zaxis().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_gyro_offset_enable | ( | u8 * | v_gyro_off_enable_u8 | ) |
This API read the accel offset enable bit from the register 0x77 bit 7.
| v_gyro_off_enable_u8 | The value of gyro offset enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_OFFSET_6_GYRO_OFF_EN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_gyro_offset_enable | ( | u8 | v_gyro_off_enable_u8 | ) |
This API write the accel offset enable bit from the register 0x77 bit 7.
| v_gyro_off_enable_u8 | The value of gyro offset enable
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_OFFSET_6_GYRO_OFF_EN__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
Referenced by bmi160_set_foc_gyro_enable(), bmi160_set_gyro_offset_compensation_xaxis(), bmi160_set_gyro_offset_compensation_yaxis(), and bmi160_set_gyro_offset_compensation_zaxis().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_step_count | ( | s16 * | v_step_cnt_s16 | ) |
This API reads step counter value form the register 0x78 and 0x79.
| v_step_cnt_s16 | : The value of step counter |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_STEP_COUNT_DATA_SIZE, BMI160_STEP_COUNT_LSB_BYTE, BMI160_STEP_COUNT_MSB_BYTE, BMI160_STEP_COUNTER_LENGTH, BMI160_USER_STEP_COUNT_LSB__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_step_config | ( | u16 * | v_step_config_u16 | ) |
This API Reads step counter configuration from the register 0x7A bit 0 to 7 and from the register 0x7B bit 0 to 2 and 4 to 7.
| v_step_config_u16 | : The value of step configuration @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_STEP_CONFIG_ONE_CNF1__REG, BMI160_USER_STEP_CONFIG_ONE_CNF2__REG, BMI160_USER_STEP_CONFIG_ZERO__REG, bmi160_t::dev_addr, and E_BMI160_COMM_RES.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_step_config | ( | u16 | v_step_config_u16 | ) |
This API write step counter configuration from the register 0x7A bit 0 to 7 and from the register 0x7B bit 0 to 2 and 4 to 7.
| v_step_config_u16 | : the value of Enable step configuration |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_SHIFT_BIT_POSITION_BY_12_BITS, BMI160_STEP_CONFIG_0_7, BMI160_STEP_CONFIG_11_14, BMI160_STEP_CONFIG_8_10, BMI160_USER_STEP_CONFIG_ONE_CNF1__REG, BMI160_USER_STEP_CONFIG_ONE_CNF2__REG, BMI160_USER_STEP_CONFIG_ZERO__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and SUCCESS.
Referenced by bmi160_set_step_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_step_counter_enable | ( | u8 * | v_step_counter_u8 | ) |
This API read enable step counter from the register 0x7B bit 3.
| v_step_counter_u8 | : The value of step counter enable @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_USER_STEP_CONFIG_1_STEP_COUNT_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_set_intr_low_g().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_step_counter_enable | ( | u8 | v_step_counter_u8 | ) |
This API write enable step counter from the register 0x7B bit 3.
| v_step_counter_u8 | : The value of step counter enable @return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_GYRO_STEP_COUNTER, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, BMI160_USER_STEP_CONFIG_1_STEP_COUNT_ENABLE__REG, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_set_intr_low_g().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_step_mode | ( | u8 | v_step_mode_u8 | ) |
This API set Step counter modes.
| v_step_mode_u8 | : The value of step counter mode
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DELAY, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_step_config(), BMI160_STEP_NORMAL_MODE, BMI160_STEP_ROBUST_MODE, BMI160_STEP_SENSITIVE_MODE, bmi160_t::delay_msec, E_BMI160_COMM_RES, E_BMI160_OUT_OF_RANGE, STEP_CONFIG_NORMAL, STEP_CONFIG_ROBUST, and STEP_CONFIG_SENSITIVE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_map_significant_motion_intr | ( | u8 | v_significant_u8 | ) |
This API used to trigger the signification motion interrupt.
| v_significant_u8 | : The value of interrupt selection
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_ENABLE_ANY_MOTION_AXIS, BMI160_ENABLE_ANY_MOTION_INTR1, BMI160_ENABLE_ANY_MOTION_INTR2, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, bmi160_get_intr_significant_motion_select(), BMI160_INIT_VALUE, BMI160_MAP_INTR1, BMI160_MAP_INTR2, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, bmi160_set_intr_significant_motion_select(), BMI160_SIG_MOTION_INTR_ENABLE, BMI160_SIG_MOTION_STAT_HIGH, BMI160_USER_INTR_ENABLE_0_ADDR, BMI160_USER_INTR_MAP_0_INTR1_ANY_MOTION__REG, BMI160_USER_INTR_MAP_2_INTR2_ANY_MOTION__REG, bmi160_write_reg(), bmi160_t::delay_msec, E_BMI160_COMM_RES, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_map_step_detector_intr | ( | u8 | v_step_detector_u8 | ) |
This API used to trigger the step detector interrupt.
| v_step_detector_u8 | : The value of interrupt selection
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, bmi160_get_step_detector_enable(), BMI160_INIT_VALUE, BMI160_LOW_G_INTR_STAT, BMI160_MAP_INTR1, BMI160_MAP_INTR2, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, bmi160_set_step_detector_enable(), BMI160_STEP_DET_STAT_HIGH, BMI160_STEP_DETECT_INTR_ENABLE, BMI160_USER_INTR_MAP_0_INTR1_LOW_G__REG, BMI160_USER_INTR_MAP_2_INTR2_LOW_G__REG, bmi160_write_reg(), bmi160_t::delay_msec, E_BMI160_COMM_RES, and E_BMI160_OUT_OF_RANGE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_clear_step_counter | ( | void | ) |
This API used to clear the step counter interrupt interrupt.
| None |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_command_register(), bmi160_t::delay_msec, E_BMI160_COMM_RES, and RESET_STEP_COUNTER.
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_command_register | ( | u8 | v_command_reg_u8 | ) |
This API writes value to the register 0x7E bit 0 to 7.
| v_command_reg_u8 | : The value to write command register
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_CMD_COMMANDS__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_accel_foc_trigger_xyz(), bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), bmi160_clear_step_counter(), bmi160_read_bmm150_mag_trim(), bmi160_set_accel_foc_trigger(), bmi160_set_bmm150_mag_and_secondary_if_power_mode(), bmi160_set_foc_gyro_enable(), and bmi160_set_mag_interface_normal().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_target_page | ( | u8 * | v_target_page_u8 | ) |
This API read target page from the register 0x7F bit 4 and 5.
| v_target_page_u8 | The value of target page
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_CMD_TARGET_PAGE__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_target_page | ( | u8 | v_target_page_u8 | ) |
This API write target page from the register 0x7F bit 4 and 5.
| v_target_page_u8 | The value of target page
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_CMD_TARGET_PAGE__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_TARGET_PAGE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_paging_enable | ( | u8 * | v_page_enable_u8 | ) |
This API read page enable from the register 0x7F bit 7.
| v_page_enable_u8 | The value of page enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_CMD_PAGING_EN__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_paging_enable | ( | u8 | v_page_enable_u8 | ) |
This API write page enable from the register 0x7F bit 7.
| v_page_enable_u8 | The value of page enable
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_CMD_PAGING_EN__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_MAX_VALUE_PAGE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, E_BMI160_OUT_OF_RANGE, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_get_pullup_configuration | ( | u8 * | v_control_pullup_u8 | ) |
This API read pull up configuration from the register 0X85 bit 4 an 5.
| v_control_pullup_u8 | The value of pull up register |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_COM_C_TRIM_FIVE__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GET_BITSLICE, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, bmi160_t::dev_addr, E_BMI160_COMM_RES, and E_BMI160_NULL_PTR.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_pullup_configuration | ( | u8 | v_control_pullup_u8 | ) |
This API write pull up configuration from the register 0X85 bit 4 an 5.
| v_control_pullup_u8 | The value of pull up register |
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_COM_C_TRIM_FIVE__REG, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, BMI160_NULL, BMI160_RETURN_FUNCTION_TYPE, BMI160_SET_BITSLICE, bmi160_t::dev_addr, E_BMI160_COMM_RES, E_BMI160_NULL_PTR, and SUCCESS.
Referenced by bmi160_bmm150_mag_interface_init(), bmi160_bst_yamaha_yas537_mag_interface_init(), and bmi160_read_bmm150_mag_trim().
| BMI160_RETURN_FUNCTION_TYPE bmi160_second_if_mag_compensate_xyz | ( | struct bmi160_mag_fifo_data_t | mag_fifo_data, |
| u8 | v_mag_second_if_u8 | ||
| ) |
This function used for reading the compensated data of mag secondary interface xyz data.
| v_mag_second_if_u8 | The value of mag selection |
| value | v_mag_second_if_u8 |
|---|---|
| 0 | BMM150 |
| 1 | AKM09911 |
| 2 | AKM09912 |
| 3 | YAS532 |
| 4 | YAS537 |
| mag_fifo_data | The value of compensated mag xyz data |
References bst_yas537_calib_data_t::a2, bst_yas537_calib_data_t::a3, bst_yas537_calib_data_t::a4, bst_yas537_calib_data_t::a5, bst_yas537_calib_data_t::a6, bst_yas537_calib_data_t::a7, bst_yas537_calib_data_t::a8, bst_yas537_calib_data_t::a9, bmi160_bmm150_mag_compensate_X(), bmi160_bmm150_mag_compensate_Y(), bmi160_bmm150_mag_compensate_Z(), bmi160_bst_yamaha_yas537_fifo_xyz_data(), BMI160_INIT_VALUE, BMI160_SEC_IF_AKM09911, BMI160_SEC_IF_AKM09912, BMI160_SEC_IF_BMM150, BMI160_SEC_IF_YAS532, BMI160_SEC_IF_YAS537, BMI160_SHIFT_BIT_POSITION_BY_01_BIT, BMI160_SHIFT_BIT_POSITION_BY_02_BITS, BMI160_SHIFT_BIT_POSITION_BY_03_BITS, BMI160_SHIFT_BIT_POSITION_BY_05_BITS, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_YAS_H_DATA_SIZE, BMI160_YAS_S_DATA_SIZE, yas537_t::calib_yas537, E_BMI160_OUT_OF_RANGE, fifo_vector_xyz, bst_yas537_calib_data_t::k, yas537_t::last_raw, bmi160_mag_fifo_data_t::mag_r_y2_lsb, bmi160_mag_fifo_data_t::mag_r_y2_msb, bmi160_mag_fifo_data_t::mag_x_lsb, bmi160_mag_fifo_data_t::mag_x_msb, bmi160_mag_fifo_data_t::mag_y_lsb, bmi160_mag_fifo_data_t::mag_y_msb, bmi160_mag_fifo_data_t::mag_z_lsb, bmi160_mag_fifo_data_t::mag_z_msb, processed_data, bst_yas537_calib_data_t::ver, bmi160_mag_xyz_s32_t::x, bmi160_mag_xyz_s32_t::y, YAS532_DATA_OVERFLOW, YAS532_DATA_UNDERFLOW, yas537_data, YAS537_DATA_OVERFLOW, YAS537_DATA_UNDERFLOW, yas_vector::yas537_vector_xyz, and bmi160_mag_xyz_s32_t::z.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_fifo_header_data | ( | u8 | v_mag_if_u8, |
| struct bmi160_fifo_data_header_t * | header_data | ||
| ) |
This function used for reading the fifo data of header mode.
| 0 | -> Success |
| -1 | -> Error |
References bmi160_read_fifo_header_data_user_defined_length(), BMI160_RETURN_FUNCTION_TYPE, E_BMI160_COMM_RES, and FIFO_FRAME.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_fifo_header_data_user_defined_length | ( | u16 | v_fifo_user_length_u16, |
| u8 | v_mag_if_mag_u8, | ||
| struct bmi160_fifo_data_header_t * | fifo_header_data | ||
| ) |
This function used for reading the fifo data of header mode for using user defined length.
| 0 | -> Success |
| -1 | -> Error |
References bmi160_fifo_data_header_t::accel_frame_count, bmi160_fifo_data(), BMI160_INIT_VALUE, BMI160_RETURN_FUNCTION_TYPE, E_BMI160_COMM_RES, bmi160_fifo_data_header_t::gyro_frame_count, and bmi160_fifo_data_header_t::mag_frame_count.
Referenced by bmi160_read_fifo_header_data().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_fifo_headerless_mode | ( | u8 | v_mag_if_u8, |
| struct bmi160_fifo_data_header_less_t * | headerless_data | ||
| ) |
This function used for reading the fifo data of header less mode.
| 0 | -> Success |
| -1 | -> Error |
References bmi160_read_fifo_headerless_mode_user_defined_length(), BMI160_RETURN_FUNCTION_TYPE, E_BMI160_COMM_RES, and FIFO_FRAME.
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_fifo_headerless_mode_user_defined_length | ( | u16 | v_fifo_user_length_u16, |
| struct bmi160_fifo_data_header_less_t * | fifo_data, | ||
| u8 | v_mag_if_mag_u8 | ||
| ) |
This function used for reading the fifo data of header less mode for using user defined length.
| v_fifo_user_length_u16 | The value of length of fifo read data |
| v_mag_if_mag_u8 | : the mag interface data |
| fifo_data | : the pointer to fifo_data_header_less_t structure |
| 0 | -> Success |
| -1 | -> Error |
References bmi160_fifo_data_header_less_t::accel_frame_count, bmi160_fifo_data(), BMI160_FIFO_M_G_A_ENABLE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, bmi160_set_fifo_header_enable(), BMI160_USER_FIFO_CONFIG_1_ADDR, E_BMI160_COMM_RES, bmi160_fifo_data_header_less_t::gyro_frame_count, and bmi160_fifo_data_header_less_t::mag_frame_count.
Referenced by bmi160_read_fifo_headerless_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_bmm150_mag_compensate_xyz | ( | struct bmi160_mag_xyz_s32_t * | mag_comp_xyz | ) |
This function used for read the compensated value of mag Before start reading the mag compensated data's make sure the following two points are addressed.
| 0 | -> Success |
| -1 | -> Error |
References bmi160_bmm150_mag_compensate_X(), bmi160_bmm150_mag_compensate_Y(), bmi160_bmm150_mag_compensate_Z(), bmi160_read_mag_xyzr(), BMI160_RETURN_FUNCTION_TYPE, E_BMI160_COMM_RES, bmi160_mag_xyzr_t::r, bmi160_mag_xyzr_t::x, bmi160_mag_xyz_s32_t::x, bmi160_mag_xyzr_t::y, bmi160_mag_xyz_s32_t::y, bmi160_mag_xyzr_t::z, and bmi160_mag_xyz_s32_t::z.
This API used to get the compensated BMM150-X data the out put of X as s32 Before start reading the mag compensated X data make sure the following two points are addressed.
| v_mag_data_x_s16 | : The value of mag raw X data |
| v_data_r_u16 | : The value of mag R data @return results of compensated X data value output as s32 |
References BMI160_INIT_VALUE, BMI160_MAG_FLIP_OVERFLOW_ADCVAL, BMI160_MAG_OVERFLOW_OUTPUT, BMI160_MAG_OVERFLOW_OUTPUT_S32, BMI160_SHIFT_BIT_POSITION_BY_03_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_SHIFT_BIT_POSITION_BY_09_BITS, BMI160_SHIFT_BIT_POSITION_BY_12_BITS, BMI160_SHIFT_BIT_POSITION_BY_13_BITS, BMI160_SHIFT_BIT_POSITION_BY_14_BITS, trim_data_t::dig_x1, trim_data_t::dig_x2, trim_data_t::dig_xy1, trim_data_t::dig_xy2, trim_data_t::dig_xyz1, and mag_trim.
Referenced by bmi160_bmm150_mag_compensate_xyz(), and bmi160_second_if_mag_compensate_xyz().
This API used to get the compensated BMM150-Y data the out put of Y as s32 Before start reading the mag compensated Y data make sure the following two points are addressed.
| v_mag_data_y_s16 | : The value of mag raw Y data |
| v_data_r_u16 | : The value of mag R data @return results of compensated Y data value output as s32 |
References BMI160_INIT_VALUE, BMI160_MAG_FLIP_OVERFLOW_ADCVAL, BMI160_MAG_OVERFLOW_OUTPUT, BMI160_MAG_OVERFLOW_OUTPUT_S32, BMI160_SHIFT_BIT_POSITION_BY_03_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_SHIFT_BIT_POSITION_BY_09_BITS, BMI160_SHIFT_BIT_POSITION_BY_12_BITS, BMI160_SHIFT_BIT_POSITION_BY_13_BITS, BMI160_SHIFT_BIT_POSITION_BY_14_BITS, trim_data_t::dig_xy1, trim_data_t::dig_xy2, trim_data_t::dig_xyz1, trim_data_t::dig_y1, trim_data_t::dig_y2, and mag_trim.
Referenced by bmi160_bmm150_mag_compensate_xyz(), and bmi160_second_if_mag_compensate_xyz().
This API used to get the compensated BMM150-Z data the out put of Z as s32 Before start reading the mag compensated Z data make sure the following two points are addressed.
| v_mag_data_z_s16 | : The value of mag raw Z data |
| v_data_r_u16 | : The value of mag R data @return results of compensated Z data value output as s32 |
References BMI160_INIT_VALUE, BMI160_MAG_HALL_OVERFLOW_ADCVAL, BMI160_MAG_OVERFLOW_OUTPUT, BMI160_SHIFT_BIT_POSITION_BY_01_BIT, BMI160_SHIFT_BIT_POSITION_BY_02_BITS, BMI160_SHIFT_BIT_POSITION_BY_15_BITS, BMI160_SHIFT_BIT_POSITION_BY_16_BITS, trim_data_t::dig_xyz1, trim_data_t::dig_z1, trim_data_t::dig_z2, trim_data_t::dig_z3, trim_data_t::dig_z4, and mag_trim.
Referenced by bmi160_bmm150_mag_compensate_xyz(), and bmi160_second_if_mag_compensate_xyz().
| BMI160_RETURN_FUNCTION_TYPE bmi160_bmm150_mag_interface_init | ( | u8 * | v_chip_id_u8 | ) |
This function used for initialize the bmm150 sensor.
| 0 | -> Success |
| -1 | -> Error |
References ACCEL_LOWPOWER, ACCEL_MODE_NORMAL, ACCEL_SUSPEND, BMI160_ACCEL_LOW_POWER, BMI160_ACCEL_NORMAL_MODE, BMI160_ACCEL_SUSPEND, BMI160_AUX_BMM150_I2C_ADDRESS, BMI160_BMM150_CHIP_ID, BMI160_BMM150_DATA_REG, BMI160_BMM150_FORCE_MODE, bmi160_bmm150_mag_wakeup(), BMI160_BMM150_POWE_MODE_REG, BMI160_BMM_POWER_MODE_REG, BMI160_COMMAND_REG_ONE, BMI160_COMMAND_REG_THREE, BMI160_COMMAND_REG_TWO, BMI160_ENABLE_MAG_IF_MODE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, bmi160_get_accel_power_mode_stat(), bmi160_get_if_mode(), bmi160_get_mag_manual_enable(), bmi160_get_paging_enable(), bmi160_get_pullup_configuration(), bmi160_get_target_page(), BMI160_INIT_VALUE, BMI160_MAG_DATA_READ_REG, BMI160_MAG_OUTPUT_DATA_RATE_25HZ, BMI160_MAG_PRESETMODE_REGULAR, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_PULL_UP_DATA, bmi160_read_bmm150_mag_trim(), bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, bmi160_set_bmm150_mag_presetmode(), bmi160_set_command_register(), bmi160_set_i2c_device_addr(), bmi160_set_if_mode(), bmi160_set_mag_interface_normal(), bmi160_set_mag_manual_enable(), bmi160_set_mag_output_data_rate(), bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), bmi160_set_paging_enable(), bmi160_set_pullup_configuration(), bmi160_set_target_page(), BMI160_WRITE_ENABLE_PAGE1, BMI160_WRITE_TARGET_PAGE0, BMI160_WRITE_TARGET_PAGE1, bmi160_t::delay_msec, and V_bmm150_maual_auto_condition_u8.
| BMI160_RETURN_FUNCTION_TYPE bmi160_bmm150_mag_wakeup | ( | void | ) |
This function used for set the mag power control bit enable.
| 0 | -> Success |
| -1 | -> Error |
References BMI160_BMM150_MAX_RETRY_WAKEUP, BMI160_BMM150_POWE_CONTROL_REG, BMI160_BMM150_POWER_ON, BMI160_BMM150_POWER_ON_FAIL, BMI160_BMM150_POWER_ON_SUCCESS, BMI160_BMM150_SET_POWER_CONTROL, BMI160_BMM150_WAKEUP_DELAY1, BMI160_BMM150_WAKEUP_DELAY2, BMI160_BMM150_WAKEUP_DELAY3, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_INIT_VALUE, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), BMI160_USER_DATA_0_ADDR, and bmi160_t::delay_msec.
Referenced by bmi160_bmm150_mag_interface_init(), and bmi160_bmm150_mag_set_power_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_bmm150_mag_and_secondary_if_power_mode | ( | u8 | v_mag_sec_if_pow_mode_u8 | ) |
This function used for set the magnetometer power mode.
| v_mag_sec_if_pow_mode_u8 | : The value of mag power mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References ACCEL_LOWPOWER, ACCEL_MODE_NORMAL, ACCEL_SUSPEND, BMI160_ACCEL_LOW_POWER, BMI160_ACCEL_NORMAL_MODE, BMI160_ACCEL_SUSPEND, bmi160_bmm150_mag_set_power_mode(), BMI160_GEN_READ_WRITE_DELAY, bmi160_get_accel_power_mode_stat(), BMI160_INIT_VALUE, BMI160_MAG_FORCE_MODE, BMI160_MAG_SUSPEND_MODE, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_command_register(), bmi160_set_mag_interface_normal(), bmi160_set_mag_manual_enable(), bmi160_t::delay_msec, E_BMI160_OUT_OF_RANGE, FORCE_MODE, bmi160_t::mag_manual_enable, MAG_MODE_SUSPEND, and SUSPEND_MODE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_bmm150_mag_set_power_mode | ( | u8 | v_mag_pow_mode_u8 | ) |
This function used for set the magnetometer power mode.
| v_mag_pow_mode_u8 | : The value of mag power mode
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error |
References BMI160_BMM150_DATA_REG, BMI160_BMM150_FORCE_MODE, bmi160_bmm150_mag_wakeup(), BMI160_BMM150_POWE_CONTROL_REG, BMI160_BMM150_POWE_MODE_REG, BMI160_BMM150_POWER_OFF, BMI160_GEN_READ_WRITE_DELAY, BMI160_MAG_PRESETMODE_REGULAR, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_bmm150_mag_presetmode(), bmi160_set_mag_manual_enable(), bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), bmi160_t::delay_msec, E_BMI160_COMM_RES, E_BMI160_OUT_OF_RANGE, FORCE_MODE, bmi160_t::mag_manual_enable, SUCCESS, SUSPEND_MODE, and V_bmm150_maual_auto_condition_u8.
Referenced by bmi160_set_bmm150_mag_and_secondary_if_power_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_set_bmm150_mag_presetmode | ( | u8 | v_mode_u8 | ) |
This API used to set the pre-set modes of bmm150 The pre-set mode setting is depend on data rate and xy and z repetitions.
| v_mode_u8 | The value of pre-set mode selection value
|
| 0 | -> Success |
| -1 | -> Error |
References BMI160_BMM150_DATA_REG, BMI160_BMM150_FORCE_MODE, BMI160_BMM150_POWE_MODE_REG, BMI160_BMM150_XY_REP, BMI160_BMM150_Z_REP, BMI160_GEN_READ_WRITE_DELAY, BMI160_MAG_ENHANCED_DR, BMI160_MAG_ENHANCED_REPXY, BMI160_MAG_ENHANCED_REPZ, BMI160_MAG_HIGHACCURACY_DR, BMI160_MAG_HIGHACCURACY_REPXY, BMI160_MAG_HIGHACCURACY_REPZ, BMI160_MAG_LOWPOWER_DR, BMI160_MAG_LOWPOWER_REPXY, BMI160_MAG_LOWPOWER_REPZ, BMI160_MAG_PRESETMODE_ENHANCED, BMI160_MAG_PRESETMODE_HIGHACCURACY, BMI160_MAG_PRESETMODE_LOWPOWER, BMI160_MAG_PRESETMODE_REGULAR, BMI160_MAG_REGULAR_DR, BMI160_MAG_REGULAR_REPXY, BMI160_MAG_REGULAR_REPZ, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_mag_manual_enable(), bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), bmi160_t::delay_msec, E_BMI160_COMM_RES, E_BMI160_OUT_OF_RANGE, bmi160_t::mag_manual_enable, and V_bmm150_maual_auto_condition_u8.
Referenced by bmi160_bmm150_mag_interface_init(), and bmi160_bmm150_mag_set_power_mode().
| BMI160_RETURN_FUNCTION_TYPE bmi160_read_bmm150_mag_trim | ( | void | ) |
This function used for read the trim values of magnetometer.
| 0 | -> Success |
| -1 | -> Error |
References ACCEL_LOWPOWER, ACCEL_MODE_NORMAL, ACCEL_SUSPEND, AKM09911_SENSITIVITY_DIV, AKM09912_SENSITIVITY, AKM09912_SENSITIVITY_DIV, AKM_ASAX, AKM_ASAY, AKM_ASAZ, AKM_CHIP_ID_REG, AKM_DATA_REGISTER, AKM_FUSE_ROM_MODE, AKM_POWER_DOWN_MODE, AKM_POWER_DOWN_MODE_DATA, AKM_POWER_MODE_REG, AKM_SINGLE_MEAS_MODE, AKM_SINGLE_MEASUREMENT_MODE, BMI160_ACCEL_LOW_POWER, BMI160_ACCEL_NORMAL_MODE, BMI160_ACCEL_SUSPEND, BMI160_AKM_INIT_DELAY, BMI160_AKM_SENSITIVITY_DATA_SIZE, BMI160_AUX_YAS532_I2C_ADDRESS, BMI160_BMM150_DIG_DIG_XYZ1_LSB, BMI160_BMM150_DIG_DIG_XYZ1_MSB, BMI160_BMM150_DIG_DIG_Z3_LSB, BMI160_BMM150_DIG_DIG_Z3_MSB, BMI160_BMM150_DIG_DIG_Z4_LSB, BMI160_BMM150_DIG_DIG_Z4_MSB, BMI160_BMM150_DIG_X1, BMI160_BMM150_DIG_X2, BMI160_BMM150_DIG_XY1, BMI160_BMM150_DIG_XY2, BMI160_BMM150_DIG_Y1, BMI160_BMM150_DIG_Y3, BMI160_BMM150_DIG_Z1_LSB, BMI160_BMM150_DIG_Z1_MSB, BMI160_BMM150_DIG_Z2_LSB, BMI160_BMM150_DIG_Z2_MSB, BMI160_BST_AKM_ASAX, BMI160_BST_AKM_ASAY, BMI160_BST_AKM_ASAZ, BMI160_COMMAND_REG_ONE, BMI160_COMMAND_REG_THREE, BMI160_COMMAND_REG_TWO, BMI160_ENABLE_MAG_IF_MODE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, bmi160_get_accel_power_mode_stat(), bmi160_get_if_mode(), bmi160_get_mag_manual_enable(), bmi160_get_mag_power_mode_stat(), bmi160_get_paging_enable(), bmi160_get_pullup_configuration(), bmi160_get_target_page(), BMI160_INIT_VALUE, BMI160_MAG_DATA_READ_REG, BMI160_MAG_DIG_X1, BMI160_MAG_DIG_X2, BMI160_MAG_DIG_XY1, BMI160_MAG_DIG_XY2, BMI160_MAG_DIG_XYZ1_LSB, BMI160_MAG_DIG_XYZ1_MSB, BMI160_MAG_DIG_Y1, BMI160_MAG_DIG_Y2, BMI160_MAG_DIG_Z1_LSB, BMI160_MAG_DIG_Z1_MSB, BMI160_MAG_DIG_Z2_LSB, BMI160_MAG_DIG_Z2_MSB, BMI160_MAG_DIG_Z3_LSB, BMI160_MAG_DIG_Z3_MSB, BMI160_MAG_DIG_Z4_LSB, BMI160_MAG_DIG_Z4_MSB, BMI160_MAG_FORCE_MODE, BMI160_MAG_OUTPUT_DATA_RATE_25HZ, BMI160_MAG_SUSPEND_MODE, BMI160_MAG_TRIM_DATA_SIZE, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_PULL_UP_DATA, bmi160_read_mag_xyz(), bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_command_register(), bmi160_set_i2c_device_addr(), bmi160_set_if_mode(), bmi160_set_mag_interface_normal(), bmi160_set_mag_manual_enable(), bmi160_set_mag_output_data_rate(), bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), bmi160_set_paging_enable(), bmi160_set_pullup_configuration(), bmi160_set_target_page(), BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_WRITE_ENABLE_PAGE1, BMI160_WRITE_TARGET_PAGE0, BMI160_WRITE_TARGET_PAGE1, BMI160_YAS_DEVICE_ID_REG, BST_AKM, bmi160_t::delay_msec, trim_data_t::dig_x1, trim_data_t::dig_x2, trim_data_t::dig_xy1, trim_data_t::dig_xy2, trim_data_t::dig_xyz1, trim_data_t::dig_y1, trim_data_t::dig_y2, trim_data_t::dig_z1, trim_data_t::dig_z2, trim_data_t::dig_z3, trim_data_t::dig_z4, E_BMI160_COMM_RES, E_BMI160_OUT_OF_RANGE, FUSE_ROM_MODE, bmi160_t::mag_manual_enable, MAG_MODE_NORMAL, MAG_MODE_SUSPEND, mag_trim, set_vector, bmi160_mag_t::x, bmi160_mag_t::y, YAS532_MAG_STATE_INIT_COIL, and bmi160_mag_t::z.
Referenced by bmi160_bmm150_mag_interface_init().
| BMI160_RETURN_FUNCTION_TYPE bmi160_bst_yamaha_yas537_mag_interface_init | ( | void | ) |
This function used to init the YAMAH-YAS537.
| 0 | -> Success |
| -1 | -> Error |
References ACCEL_LOWPOWER, ACCEL_MODE_NORMAL, ACCEL_SUSPEND, yas537_t::average, BMI160_ACCEL_LOW_POWER, BMI160_ACCEL_NORMAL_MODE, BMI160_ACCEL_SUSPEND, bmi160_bst_yamaha_yas537_calib_values(), BMI160_COMMAND_REG_ONE, BMI160_COMMAND_REG_THREE, BMI160_COMMAND_REG_TWO, BMI160_ENABLE_MAG_IF_MODE, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, bmi160_get_accel_power_mode_stat(), bmi160_get_if_mode(), bmi160_get_mag_manual_enable(), bmi160_get_paging_enable(), bmi160_get_pullup_configuration(), bmi160_get_target_page(), BMI160_INIT_VALUE, BMI160_MAG_DATA_READ_REG, BMI160_MAG_OUTPUT_DATA_RATE_25HZ, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_NULL, BMI160_PULL_UP_DATA, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_command_register(), bmi160_set_i2c_device_addr(), bmi160_set_if_mode(), bmi160_set_mag_interface_normal(), bmi160_set_mag_manual_enable(), bmi160_set_mag_output_data_rate(), bmi160_set_mag_read_addr(), bmi160_set_paging_enable(), bmi160_set_pullup_configuration(), bmi160_set_target_page(), BMI160_WRITE_ENABLE_PAGE1, BMI160_WRITE_TARGET_PAGE0, BMI160_WRITE_TARGET_PAGE1, BMI160_YAS537_I2C_ADDRESS, BMI160_YAS_DEVICE_ID_REG, bmi160_t::delay_msec, yas537_t::dev_id, E_BMI160_COMM_RES, yas537_t::hard_offset, yas537_t::last_after_rcoil, yas537_t::last_raw, yas537_t::measure_state, yas537_t::transform, yas537_data, and YAS537_MAG_STATE_NORMAL.
| BMI160_RETURN_FUNCTION_TYPE bmi160_bst_yamaha_yas537_calib_values | ( | u8 | v_rcoil_u8 | ) |
This function used for read the YAMAHA YAS537 calibration data.
| v_rcoil_u8 | : The value of r coil |
| 0 | -> Success |
| -1 | -> Error |
References bst_yas537_calib_data_t::a2, bst_yas537_calib_data_t::a3, bst_yas537_calib_data_t::a4, bst_yas537_calib_data_t::a5, bst_yas537_calib_data_t::a6, bst_yas537_calib_data_t::a7, bst_yas537_calib_data_t::a8, bst_yas537_calib_data_t::a9, yas537_t::average, BMI160_GEN_READ_WRITE_DATA_LENGTH, BMI160_GEN_READ_WRITE_DELAY, BMI160_INIT_VALUE, BMI160_MAG_DATA_READ_REG, bmi160_read_reg(), BMI160_RETURN_FUNCTION_TYPE, BMI160_SEC_INTERFACE_GEN_READ_WRITE_DELAY, bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), BMI160_SHIFT_BIT_POSITION_BY_01_BIT, BMI160_SHIFT_BIT_POSITION_BY_02_BITS, BMI160_SHIFT_BIT_POSITION_BY_03_BITS, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_YAS537_CALIB_DATA_SIZE, yas537_t::calib_yas537, bmi160_t::delay_msec, E_BMI160_COMM_RES, ERROR, yas537_t::hard_offset, bst_yas537_calib_data_t::k, SUCCESS, bst_yas537_calib_data_t::ver, yas537_data, YAS537_REG_ADCCALR, YAS537_REG_ADCCALR_ONE, YAS537_REG_AVRR, YAS537_REG_CALR_C0, YAS537_REG_CALR_C1, YAS537_REG_CALR_C2, YAS537_REG_CALR_C3, YAS537_REG_CALR_C4, YAS537_REG_CALR_C5, YAS537_REG_CALR_C6, YAS537_REG_CALR_C7, YAS537_REG_CALR_C8, YAS537_REG_CALR_C9, YAS537_REG_CALR_CA, YAS537_REG_CALR_CB, YAS537_REG_CALR_CC, YAS537_REG_CALR_CD, YAS537_REG_CALR_CE, YAS537_REG_CALR_CF, YAS537_REG_CALR_DO, YAS537_REG_CONFR, YAS537_REG_HCKR, YAS537_REG_LCKR, YAS537_REG_MTCR, YAS537_REG_OCR, YAS537_REG_OXR, YAS537_REG_SRSTR, YAS537_REG_TRMR, YAS537_SRSTR_DATA, YAS537_WRITE_A_D_CONVERTER, YAS537_WRITE_A_D_CONVERTER2, YAS537_WRITE_FILTER, and YAS537_WRITE_TEMP_CALIB.
Referenced by bmi160_bst_yamaha_yas537_mag_interface_init().
| BMI160_RETURN_FUNCTION_TYPE bmi160_bst_yas537_acquisition_command_register | ( | u8 | v_command_reg_data_u8 | ) |
This function used for YAS537 write data acquisition command register write.
| v_command_reg_data_u8 | : the value of data acquisition
|
@return results of bus communication function @retval 0 -> Success @retval -1 -> Error
References BMI160_GEN_READ_WRITE_DELAY, BMI160_MANUAL_DISABLE, BMI160_MANUAL_ENABLE, BMI160_REG_YAS537_CMDR, BMI160_RETURN_FUNCTION_TYPE, bmi160_set_mag_manual_enable(), bmi160_set_mag_read_addr(), bmi160_set_mag_write_addr(), bmi160_set_mag_write_data(), BMI160_YAS_ACQ_COMMAND_DELAY, bmi160_t::delay_msec, E_BMI160_COMM_RES, bmi160_t::mag_manual_enable, yas537_t::measure_state, yas537_data, YAS537_MAG_STATE_RECORD_DATA, and YAS537_REG_TEMPERATURE_0.
Referenced by bmi160_bst_yamaha_yas537_read_xy1y2_data().
| BMI160_RETURN_FUNCTION_TYPE bmi160_bst_yamaha_yas537_read_xy1y2_data | ( | u8 * | v_coil_stat_u8, |
| u8 * | v_busy_u8, | ||
| u16 * | v_temperature_u16, | ||
| u16 * | xy1y2, | ||
| u8 * | v_ouflow_u8 | ||
| ) |
This function used for read the YAMAHA YAS537 xy1y2 data.
| v_coil_stat_u8 | The value of R coil status |
| v_busy_u8 | The value of busy status |
| v_temperature_u16 | The value of temperature |
| xy1y2 | The value of raw xy1y2 data |
| v_ouflow_u8 | The value of overflow |
| 0 | -> Success |
| -1 | -> Error |
References bst_yas537_calib_data_t::a2, bst_yas537_calib_data_t::a3, bst_yas537_calib_data_t::a4, bst_yas537_calib_data_t::a5, bst_yas537_calib_data_t::a6, bst_yas537_calib_data_t::a7, bst_yas537_calib_data_t::a8, bst_yas537_calib_data_t::a9, bmi160_bst_yas537_acquisition_command_register(), BMI160_INIT_VALUE, BMI160_MAG_YAS_DATA_LENGTH, BMI160_RETURN_FUNCTION_TYPE, BMI160_SHIFT_BIT_POSITION_BY_06_BITS, BMI160_SHIFT_BIT_POSITION_BY_07_BITS, BMI160_SHIFT_BIT_POSITION_BY_08_BITS, BMI160_USER_DATA_MAG_X_LSB__REG, BMI160_YAS_H_DATA_SIZE, BMI160_YAS_S_DATA_SIZE, BMI160_YAS_XY1Y2T_DATA_SIZE, yas537_t::calib_yas537, bmi160_t::dev_addr, E_BMI160_COMM_RES, bst_yas537_calib_data_t::k, yas537_t::last_raw, bst_yas537_calib_data_t::ver, yas537_data, YAS537_DATA_OVERFLOW, YAS537_DATA_UNDERFLOW, and YAS537_SET_COMMAND_REGISTER.
Referenced by bmi160_bst_yamaha_yas537_measure_xyz_data().
| BMI160_RETURN_FUNCTION_TYPE bmi160_bst_yamaha_yas537_measure_xyz_data | ( | u8 * | v_ouflow_u8, |
| struct yas_vector * | vector_xyz | ||
| ) |
This function used for read the YAMAHA YAS537 xy1y2 data.
| v_ouflow_u8 | The value of overflow |
| *vector_xyz | : yas vector structure pointer |
| 0 | -> Success |
| -1 | -> Error |
References bmi160_bst_yamaha_yas537_read_xy1y2_data(), BMI160_INIT_VALUE, BMI160_YAS_TEMP_DATA_SIZE, and BMI160_YAS_XY1Y2_DATA_SIZE.
| BMI160_RETURN_FUNCTION_TYPE bmi160_bst_yamaha_yas537_fifo_xyz_data | ( | u16 * | a_xy1y2_u16, |
| u8 | v_over_flow_u8, | ||
| u8 | v_rcoil_u8, | ||
| u8 | v_busy_u8 | ||
| ) |
This function used for read the YAMAHA YAS537 xy1y2 data of fifo.
| a_xy1y2_u16 | The value of xyy1 data |
| v_over_flow_u8 | The value of overflow |
| v_rcoil_u8 | The value of rcoil |
| v_busy_u8 | The value of busy flag |
| 0 | -> Success |
| -1 | -> Error |
References BMI160_INIT_VALUE, and BMI160_YAS_TEMP_DATA_SIZE.
Referenced by bmi160_second_if_mag_compensate_xyz().
| struct bmi160_t* bmi160_get_ptr | ( | void | ) |
| struct bmi160_t* p_bmi160 |
file BMI160 brief Sensor driver for BMI160
Referenced by bmi160_get_ptr().
| struct trim_data_t mag_trim |
| u8 V_bmm150_maual_auto_condition_u8 = BMI160_INIT_VALUE |
| struct bmi160_mag_fifo_data_t mag_data |
| struct yas537_t yas537_data |
| struct yas_vector fifo_vector_xyz |
Referenced by bmi160_second_if_mag_compensate_xyz().
| struct bmi160_mag_xyz_s32_t processed_data |
Referenced by bmi160_second_if_mag_compensate_xyz().