|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
This section groups all the functions concerning data generation. More...
Functions | |
| int32_t | ism330dhcx_xl_full_scale_set (stmdev_ctx_t *ctx, ism330dhcx_fs_xl_t val) |
| Accelerometer full-scale selection[set]. | |
| int32_t | ism330dhcx_xl_full_scale_get (stmdev_ctx_t *ctx, ism330dhcx_fs_xl_t *val) |
| Accelerometer full-scale selection. | |
| int32_t | ism330dhcx_xl_data_rate_set (stmdev_ctx_t *ctx, ism330dhcx_odr_xl_t val) |
| Accelerometer UI data rate selection. | |
| int32_t | ism330dhcx_xl_data_rate_get (stmdev_ctx_t *ctx, ism330dhcx_odr_xl_t *val) |
| Accelerometer UI data rate selection. | |
| int32_t | ism330dhcx_gy_full_scale_set (stmdev_ctx_t *ctx, ism330dhcx_fs_g_t val) |
| Gyroscope UI chain full-scale selection. | |
| int32_t | ism330dhcx_gy_full_scale_get (stmdev_ctx_t *ctx, ism330dhcx_fs_g_t *val) |
| Gyroscope UI chain full-scale selection. | |
| int32_t | ism330dhcx_gy_data_rate_set (stmdev_ctx_t *ctx, ism330dhcx_odr_g_t val) |
| Gyroscope data rate. | |
| int32_t | ism330dhcx_gy_data_rate_get (stmdev_ctx_t *ctx, ism330dhcx_odr_g_t *val) |
| Gyroscope data rate. | |
| int32_t | ism330dhcx_block_data_update_set (stmdev_ctx_t *ctx, uint8_t val) |
| Block data update. | |
| int32_t | ism330dhcx_block_data_update_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Block data update. | |
| int32_t | ism330dhcx_xl_offset_weight_set (stmdev_ctx_t *ctx, ism330dhcx_usr_off_w_t val) |
| Weight of XL user offset bits of registers X_OFS_USR (73h), Y_OFS_USR (74h), Z_OFS_USR (75h). | |
| int32_t | ism330dhcx_xl_offset_weight_get (stmdev_ctx_t *ctx, ism330dhcx_usr_off_w_t *val) |
| Weight of XL user offset bits of registers X_OFS_USR (73h), Y_OFS_USR (74h), Z_OFS_USR (75h). | |
| int32_t | ism330dhcx_xl_power_mode_set (stmdev_ctx_t *ctx, ism330dhcx_xl_hm_mode_t val) |
| Accelerometer power mode. | |
| int32_t | ism330dhcx_xl_power_mode_get (stmdev_ctx_t *ctx, ism330dhcx_xl_hm_mode_t *val) |
| Accelerometer power mode[get]. | |
| int32_t | ism330dhcx_gy_power_mode_set (stmdev_ctx_t *ctx, ism330dhcx_g_hm_mode_t val) |
| Operating mode for gyroscope. | |
| int32_t | ism330dhcx_gy_power_mode_get (stmdev_ctx_t *ctx, ism330dhcx_g_hm_mode_t *val) |
| gy_power_mode: [get] Operating mode for gyroscope. | |
| int32_t | ism330dhcx_all_sources_get (stmdev_ctx_t *ctx, ism330dhcx_all_sources_t *val) |
| Read all the interrupt flag of the device. | |
| int32_t | ism330dhcx_status_reg_get (stmdev_ctx_t *ctx, ism330dhcx_status_reg_t *val) |
| The STATUS_REG register is read by the primary interface. | |
| int32_t | ism330dhcx_xl_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Accelerometer new data available. | |
| int32_t | ism330dhcx_gy_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Gyroscope new data available. | |
| int32_t | ism330dhcx_temp_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Temperature new data available. | |
| int32_t | ism330dhcx_xl_usr_offset_x_set (stmdev_ctx_t *ctx, uint8_t *buff) |
| Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). | |
| int32_t | ism330dhcx_xl_usr_offset_x_get (stmdev_ctx_t *ctx, uint8_t *buff) |
| Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). | |
| int32_t | ism330dhcx_xl_usr_offset_y_set (stmdev_ctx_t *ctx, uint8_t *buff) |
| Accelerometer Y-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). | |
| int32_t | ism330dhcx_xl_usr_offset_y_get (stmdev_ctx_t *ctx, uint8_t *buff) |
| Accelerometer Y-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). | |
| int32_t | ism330dhcx_xl_usr_offset_z_set (stmdev_ctx_t *ctx, uint8_t *buff) |
| Accelerometer Z-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). | |
| int32_t | ism330dhcx_xl_usr_offset_z_get (stmdev_ctx_t *ctx, uint8_t *buff) |
| Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h). | |
| int32_t | ism330dhcx_xl_usr_offset_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enables user offset on out. | |
| int32_t | ism330dhcx_xl_usr_offset_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Get user offset on out flag. | |
This section groups all the functions concerning data generation.
| int32_t ism330dhcx_all_sources_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_all_sources_t * | val ) |
Read all the interrupt flag of the device.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get registers ALL_INT_SRC; WAKE_UP_SRC; TAP_SRC; D6D_SRC; STATUS_REG; EMB_FUNC_STATUS; FSM_STATUS_A/B |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1204 of file ism330dhcx_reg.c.
References ism330dhcx_all_sources_t::all_int_src, ism330dhcx_all_sources_t::d6d_src, ism330dhcx_all_sources_t::emb_func_status, ism330dhcx_all_sources_t::fsm_status_a, ism330dhcx_all_sources_t::fsm_status_b, ISM330DHCX_ALL_INT_SRC, ISM330DHCX_D6D_SRC, ISM330DHCX_EMB_FUNC_STATUS, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_STATUS_A, ISM330DHCX_FSM_STATUS_B, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_STATUS_REG, ISM330DHCX_TAP_SRC, ISM330DHCX_USER_BANK, ISM330DHCX_WAKE_UP_SRC, ism330dhcx_all_sources_t::status_reg, ism330dhcx_all_sources_t::tap_src, and ism330dhcx_all_sources_t::wake_up_src.
| int32_t ism330dhcx_block_data_update_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Block data update.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of bdu in reg CTRL3_C |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1000 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl3_c_t::bdu, ISM330DHCX_CTRL3_C, and ism330dhcx_read_reg().
Referenced by QwDevISM330DHCX::getBlockDataUpdate().
| int32_t ism330dhcx_block_data_update_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Block data update.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of bdu in reg CTRL3_C |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 974 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl3_c_t::bdu, ISM330DHCX_CTRL3_C, ism330dhcx_read_reg(), and ism330dhcx_write_reg().
Referenced by QwDevISM330DHCX::setBlockDataUpdate().
| int32_t ism330dhcx_gy_data_rate_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_odr_g_t * | val ) |
Gyroscope data rate.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of odr_g in reg CTRL2_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 904 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL2_G, ISM330DHCX_GY_ODR_104Hz, ISM330DHCX_GY_ODR_12Hz5, ISM330DHCX_GY_ODR_1666Hz, ISM330DHCX_GY_ODR_208Hz, ISM330DHCX_GY_ODR_26Hz, ISM330DHCX_GY_ODR_3332Hz, ISM330DHCX_GY_ODR_416Hz, ISM330DHCX_GY_ODR_52Hz, ISM330DHCX_GY_ODR_6667Hz, ISM330DHCX_GY_ODR_833Hz, ISM330DHCX_GY_ODR_OFF, ism330dhcx_read_reg(), and ism330dhcx_ctrl2_g_t::odr_g.
| int32_t ism330dhcx_gy_data_rate_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_odr_g_t | val ) |
Gyroscope data rate.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of odr_g in reg CTRL2_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 647 of file ism330dhcx_reg.c.
References ism330dhcx_fsm_enable_b_t::fsm10_en, ism330dhcx_fsm_enable_b_t::fsm11_en, ism330dhcx_fsm_enable_b_t::fsm12_en, ism330dhcx_fsm_enable_b_t::fsm13_en, ism330dhcx_fsm_enable_b_t::fsm14_en, ism330dhcx_fsm_enable_b_t::fsm15_en, ism330dhcx_fsm_enable_b_t::fsm16_en, ism330dhcx_fsm_enable_a_t::fsm1_en, ism330dhcx_fsm_enable_a_t::fsm2_en, ism330dhcx_fsm_enable_a_t::fsm3_en, ism330dhcx_fsm_enable_a_t::fsm4_en, ism330dhcx_fsm_enable_a_t::fsm5_en, ism330dhcx_fsm_enable_a_t::fsm6_en, ism330dhcx_fsm_enable_a_t::fsm7_en, ism330dhcx_fsm_enable_a_t::fsm8_en, ism330dhcx_fsm_enable_b_t::fsm9_en, ism330dhcx_emb_fsm_enable_t::fsm_enable_a, ism330dhcx_emb_fsm_enable_t::fsm_enable_b, ISM330DHCX_CTRL2_G, ism330dhcx_fsm_data_rate_get(), ism330dhcx_fsm_enable_get(), ISM330DHCX_GY_ODR_104Hz, ISM330DHCX_GY_ODR_12Hz5, ISM330DHCX_GY_ODR_26Hz, ISM330DHCX_GY_ODR_52Hz, ISM330DHCX_GY_ODR_OFF, ism330dhcx_mlc_data_rate_get(), ism330dhcx_mlc_get(), ISM330DHCX_ODR_FSM_104Hz, ISM330DHCX_ODR_FSM_12Hz5, ISM330DHCX_ODR_FSM_26Hz, ISM330DHCX_ODR_FSM_52Hz, ISM330DHCX_ODR_PRGS_104Hz, ISM330DHCX_ODR_PRGS_12Hz5, ISM330DHCX_ODR_PRGS_26Hz, ISM330DHCX_ODR_PRGS_52Hz, ism330dhcx_read_reg(), ism330dhcx_write_reg(), ism330dhcx_ctrl2_g_t::odr_g, PROPERTY_DISABLE, and PROPERTY_ENABLE.
Referenced by QwDevISM330DHCX::setGyroDataRate().
| int32_t ism330dhcx_gy_flag_data_ready_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Gyroscope new data available.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of gda in reg STATUS_REG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1311 of file ism330dhcx_reg.c.
References ism330dhcx_status_reg_t::gda, ism330dhcx_read_reg(), and ISM330DHCX_STATUS_REG.
| int32_t ism330dhcx_gy_full_scale_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fs_g_t * | val ) |
Gyroscope UI chain full-scale selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fs_g in reg CTRL2_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 597 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl2_g_t::fs_g, ISM330DHCX_1000dps, ISM330DHCX_125dps, ISM330DHCX_2000dps, ISM330DHCX_250dps, ISM330DHCX_4000dps, ISM330DHCX_500dps, ISM330DHCX_CTRL2_G, and ism330dhcx_read_reg().
| int32_t ism330dhcx_gy_full_scale_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fs_g_t | val ) |
Gyroscope UI chain full-scale selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fs_g in reg CTRL2_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 571 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl2_g_t::fs_g, ISM330DHCX_CTRL2_G, ism330dhcx_read_reg(), and ism330dhcx_write_reg().
Referenced by QwDevISM330DHCX::setGyroFullScale().
| int32_t ism330dhcx_gy_power_mode_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_g_hm_mode_t * | val ) |
gy_power_mode: [get] Operating mode for gyroscope.
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of g_hm_mode in reg CTRL7_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1168 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl7_g_t::g_hm_mode, ISM330DHCX_CTRL7_G, ISM330DHCX_GY_HIGH_PERFORMANCE, ISM330DHCX_GY_NORMAL, and ism330dhcx_read_reg().
| int32_t ism330dhcx_gy_power_mode_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_g_hm_mode_t | val ) |
Operating mode for gyroscope.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of g_hm_mode in reg CTRL7_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1142 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl7_g_t::g_hm_mode, ISM330DHCX_CTRL7_G, ism330dhcx_read_reg(), and ism330dhcx_write_reg().
| int32_t ism330dhcx_status_reg_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_status_reg_t * | val ) |
The STATUS_REG register is read by the primary interface.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get register STATUS_REG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1274 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), and ISM330DHCX_STATUS_REG.
Referenced by QwDevISM330DHCX::checkAccelStatus(), QwDevISM330DHCX::checkGyroStatus(), QwDevISM330DHCX::checkStatus(), and QwDevISM330DHCX::checkTempStatus().
| int32_t ism330dhcx_temp_flag_data_ready_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Temperature new data available.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of tda in reg STATUS_REG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1331 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_STATUS_REG, and ism330dhcx_status_reg_t::tda.
| int32_t ism330dhcx_xl_data_rate_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_odr_xl_t * | val ) |
Accelerometer UI data rate selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of odr_xl in reg CTRL1_XL |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 497 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL1_XL, ism330dhcx_read_reg(), ISM330DHCX_XL_ODR_104Hz, ISM330DHCX_XL_ODR_12Hz5, ISM330DHCX_XL_ODR_1666Hz, ISM330DHCX_XL_ODR_1Hz6, ISM330DHCX_XL_ODR_208Hz, ISM330DHCX_XL_ODR_26Hz, ISM330DHCX_XL_ODR_3332Hz, ISM330DHCX_XL_ODR_416Hz, ISM330DHCX_XL_ODR_52Hz, ISM330DHCX_XL_ODR_6667Hz, ISM330DHCX_XL_ODR_833Hz, ISM330DHCX_XL_ODR_OFF, and ism330dhcx_ctrl1_xl_t::odr_xl.
| int32_t ism330dhcx_xl_data_rate_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_odr_xl_t | val ) |
Accelerometer UI data rate selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of odr_xl in reg CTRL1_XL |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 240 of file ism330dhcx_reg.c.
References ism330dhcx_fsm_enable_b_t::fsm10_en, ism330dhcx_fsm_enable_b_t::fsm11_en, ism330dhcx_fsm_enable_b_t::fsm12_en, ism330dhcx_fsm_enable_b_t::fsm13_en, ism330dhcx_fsm_enable_b_t::fsm14_en, ism330dhcx_fsm_enable_b_t::fsm15_en, ism330dhcx_fsm_enable_b_t::fsm16_en, ism330dhcx_fsm_enable_a_t::fsm1_en, ism330dhcx_fsm_enable_a_t::fsm2_en, ism330dhcx_fsm_enable_a_t::fsm3_en, ism330dhcx_fsm_enable_a_t::fsm4_en, ism330dhcx_fsm_enable_a_t::fsm5_en, ism330dhcx_fsm_enable_a_t::fsm6_en, ism330dhcx_fsm_enable_a_t::fsm7_en, ism330dhcx_fsm_enable_a_t::fsm8_en, ism330dhcx_fsm_enable_b_t::fsm9_en, ism330dhcx_emb_fsm_enable_t::fsm_enable_a, ism330dhcx_emb_fsm_enable_t::fsm_enable_b, ISM330DHCX_CTRL1_XL, ism330dhcx_fsm_data_rate_get(), ism330dhcx_fsm_enable_get(), ism330dhcx_mlc_data_rate_get(), ism330dhcx_mlc_get(), ISM330DHCX_ODR_FSM_104Hz, ISM330DHCX_ODR_FSM_12Hz5, ISM330DHCX_ODR_FSM_26Hz, ISM330DHCX_ODR_FSM_52Hz, ISM330DHCX_ODR_PRGS_104Hz, ISM330DHCX_ODR_PRGS_12Hz5, ISM330DHCX_ODR_PRGS_26Hz, ISM330DHCX_ODR_PRGS_52Hz, ism330dhcx_read_reg(), ism330dhcx_write_reg(), ISM330DHCX_XL_ODR_104Hz, ISM330DHCX_XL_ODR_12Hz5, ISM330DHCX_XL_ODR_26Hz, ISM330DHCX_XL_ODR_52Hz, ISM330DHCX_XL_ODR_OFF, ism330dhcx_ctrl1_xl_t::odr_xl, PROPERTY_DISABLE, and PROPERTY_ENABLE.
Referenced by QwDevISM330DHCX::setAccelDataRate().
| int32_t ism330dhcx_xl_flag_data_ready_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Accelerometer new data available.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of xlda in reg STATUS_REG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1291 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), ISM330DHCX_STATUS_REG, and ism330dhcx_status_reg_t::xlda.
| int32_t ism330dhcx_xl_full_scale_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fs_xl_t * | val ) |
Accelerometer full-scale selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fs_xl in reg CTRL1_XL |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 198 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl1_xl_t::fs_xl, ISM330DHCX_16g, ISM330DHCX_2g, ISM330DHCX_4g, ISM330DHCX_8g, ISM330DHCX_CTRL1_XL, and ism330dhcx_read_reg().
Referenced by QwDevISM330DHCX::getAccelFullScale().
| int32_t ism330dhcx_xl_full_scale_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fs_xl_t | val ) |
Accelerometer full-scale selection[set].
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fs_xl in reg CTRL1_XL |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 172 of file ism330dhcx_reg.c.
References ism330dhcx_ctrl1_xl_t::fs_xl, ISM330DHCX_CTRL1_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().
Referenced by QwDevISM330DHCX::setAccelFullScale().
| int32_t ism330dhcx_xl_offset_weight_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_usr_off_w_t * | val ) |
Weight of XL user offset bits of registers X_OFS_USR (73h), Y_OFS_USR (74h), Z_OFS_USR (75h).
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of usr_off_w in reg CTRL6_C |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1048 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL6_C, ISM330DHCX_LSb_16mg, ISM330DHCX_LSb_1mg, ism330dhcx_read_reg(), and ism330dhcx_ctrl6_c_t::usr_off_w.
| int32_t ism330dhcx_xl_offset_weight_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_usr_off_w_t | val ) |
Weight of XL user offset bits of registers X_OFS_USR (73h), Y_OFS_USR (74h), Z_OFS_USR (75h).
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of usr_off_w in reg CTRL6_C |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1021 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL6_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl6_c_t::usr_off_w.
| int32_t ism330dhcx_xl_power_mode_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_xl_hm_mode_t * | val ) |
Accelerometer power mode[get].
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of xl_hm_mode in reg CTRL6_C |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1108 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL6_C, ISM330DHCX_HIGH_PERFORMANCE_MD, ISM330DHCX_LOW_NORMAL_POWER_MD, ism330dhcx_read_reg(), and ism330dhcx_ctrl6_c_t::xl_hm_mode.
| int32_t ism330dhcx_xl_power_mode_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_xl_hm_mode_t | val ) |
Accelerometer power mode.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of xl_hm_mode in reg CTRL6_C |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1082 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL6_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl6_c_t::xl_hm_mode.
| int32_t ism330dhcx_xl_usr_offset_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Get user offset on out flag.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get values of usr_off_on_out in reg CTRL7_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1490 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL7_G, ism330dhcx_read_reg(), and ism330dhcx_ctrl7_g_t::usr_off_on_out.
| int32_t ism330dhcx_xl_usr_offset_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enables user offset on out.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of usr_off_on_out in reg CTRL7_G |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1465 of file ism330dhcx_reg.c.
References ISM330DHCX_CTRL7_G, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl7_g_t::usr_off_on_out.
| int32_t ism330dhcx_xl_usr_offset_x_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h).
The value must be in the range [-127 127].[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1372 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), and ISM330DHCX_X_OFS_USR.
| int32_t ism330dhcx_xl_usr_offset_x_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h).
The value must be in the range [-127 127].[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that contains data to write |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1353 of file ism330dhcx_reg.c.
References ism330dhcx_write_reg(), and ISM330DHCX_X_OFS_USR.
| int32_t ism330dhcx_xl_usr_offset_y_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Accelerometer Y-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h).
The value must be in the range [-127 127].[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1410 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), and ISM330DHCX_Y_OFS_USR.
| int32_t ism330dhcx_xl_usr_offset_y_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Accelerometer Y-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h).
The value must be in the range [-127 127].[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that contains data to write |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1391 of file ism330dhcx_reg.c.
References ism330dhcx_write_reg(), and ISM330DHCX_Y_OFS_USR.
| int32_t ism330dhcx_xl_usr_offset_z_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h).
The value must be in the range [-127 127].[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1448 of file ism330dhcx_reg.c.
References ism330dhcx_read_reg(), and ISM330DHCX_Z_OFS_USR.
| int32_t ism330dhcx_xl_usr_offset_z_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
Accelerometer Z-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_W in CTRL6_C (15h).
The value must be in the range [-127 127].[set]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that contains data to write |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 1429 of file ism330dhcx_reg.c.
References ism330dhcx_write_reg(), and ISM330DHCX_Z_OFS_USR.