STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
LSM9DS1_Data_generation

This section groups all the functions concerning data generation. More...

Collaboration diagram for LSM9DS1_Data_generation:

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.

Detailed Description

This section groups all the functions concerning data generation.

Function Documentation

◆ ism330dhcx_all_sources_get()

int32_t ism330dhcx_all_sources_get ( stmdev_ctx_t * ctx,
ism330dhcx_all_sources_t * val )

◆ ism330dhcx_block_data_update_get()

int32_t ism330dhcx_block_data_update_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Block data update.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of bdu in reg CTRL3_C
Return values
Interfacestatus (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().

◆ ism330dhcx_block_data_update_set()

int32_t ism330dhcx_block_data_update_set ( stmdev_ctx_t * ctx,
uint8_t val )

Block data update.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of bdu in reg CTRL3_C
Return values
Interfacestatus (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().

◆ ism330dhcx_gy_data_rate_get()

int32_t ism330dhcx_gy_data_rate_get ( stmdev_ctx_t * ctx,
ism330dhcx_odr_g_t * val )

Gyroscope data rate.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of odr_g in reg CTRL2_G
Return values
Interfacestatus (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.

◆ ism330dhcx_gy_data_rate_set()

int32_t ism330dhcx_gy_data_rate_set ( stmdev_ctx_t * ctx,
ism330dhcx_odr_g_t val )

Gyroscope data rate.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of odr_g in reg CTRL2_G
Return values
Interfacestatus (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().

◆ ism330dhcx_gy_flag_data_ready_get()

int32_t ism330dhcx_gy_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Gyroscope new data available.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of gda in reg STATUS_REG
Return values
Interfacestatus (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.

◆ ism330dhcx_gy_full_scale_get()

int32_t ism330dhcx_gy_full_scale_get ( stmdev_ctx_t * ctx,
ism330dhcx_fs_g_t * val )

Gyroscope UI chain full-scale selection.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of fs_g in reg CTRL2_G
Return values
Interfacestatus (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().

◆ ism330dhcx_gy_full_scale_set()

int32_t ism330dhcx_gy_full_scale_set ( stmdev_ctx_t * ctx,
ism330dhcx_fs_g_t val )

Gyroscope UI chain full-scale selection.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of fs_g in reg CTRL2_G
Return values
Interfacestatus (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().

◆ ism330dhcx_gy_power_mode_get()

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.

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of g_hm_mode in reg CTRL7_G
Return values
Interfacestatus (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().

◆ ism330dhcx_gy_power_mode_set()

int32_t ism330dhcx_gy_power_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_g_hm_mode_t val )

Operating mode for gyroscope.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of g_hm_mode in reg CTRL7_G
Return values
Interfacestatus (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().

◆ ism330dhcx_status_reg_get()

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]

Parameters
ctxRead / write interface definitions.(ptr)
valGet register STATUS_REG
Return values
Interfacestatus (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().

◆ ism330dhcx_temp_flag_data_ready_get()

int32_t ism330dhcx_temp_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Temperature new data available.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of tda in reg STATUS_REG
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_data_rate_get()

int32_t ism330dhcx_xl_data_rate_get ( stmdev_ctx_t * ctx,
ism330dhcx_odr_xl_t * val )

Accelerometer UI data rate selection.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of odr_xl in reg CTRL1_XL
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_data_rate_set()

int32_t ism330dhcx_xl_data_rate_set ( stmdev_ctx_t * ctx,
ism330dhcx_odr_xl_t val )

Accelerometer UI data rate selection.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of odr_xl in reg CTRL1_XL
Return values
Interfacestatus (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().

◆ ism330dhcx_xl_flag_data_ready_get()

int32_t ism330dhcx_xl_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Accelerometer new data available.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of xlda in reg STATUS_REG
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_full_scale_get()

int32_t ism330dhcx_xl_full_scale_get ( stmdev_ctx_t * ctx,
ism330dhcx_fs_xl_t * val )

Accelerometer full-scale selection.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of fs_xl in reg CTRL1_XL
Return values
Interfacestatus (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().

◆ ism330dhcx_xl_full_scale_set()

int32_t ism330dhcx_xl_full_scale_set ( stmdev_ctx_t * ctx,
ism330dhcx_fs_xl_t val )

Accelerometer full-scale selection[set].

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of fs_xl in reg CTRL1_XL
Return values
Interfacestatus (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().

◆ ism330dhcx_xl_offset_weight_get()

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]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of usr_off_w in reg CTRL6_C
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_offset_weight_set()

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]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of usr_off_w in reg CTRL6_C
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_power_mode_get()

int32_t ism330dhcx_xl_power_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_xl_hm_mode_t * val )

Accelerometer power mode[get].

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of xl_hm_mode in reg CTRL6_C
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_power_mode_set()

int32_t ism330dhcx_xl_power_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_xl_hm_mode_t val )

Accelerometer power mode.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of xl_hm_mode in reg CTRL6_C
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_usr_offset_get()

int32_t ism330dhcx_xl_usr_offset_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Get user offset on out flag.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet values of usr_off_on_out in reg CTRL7_G
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_usr_offset_set()

int32_t ism330dhcx_xl_usr_offset_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables user offset on out.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of usr_off_on_out in reg CTRL7_G
Return values
Interfacestatus (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.

◆ ism330dhcx_xl_usr_offset_x_get()

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]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 1372 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_X_OFS_USR.

◆ ism330dhcx_xl_usr_offset_x_set()

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]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that contains data to write
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 1353 of file ism330dhcx_reg.c.

References ism330dhcx_write_reg(), and ISM330DHCX_X_OFS_USR.

◆ ism330dhcx_xl_usr_offset_y_get()

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]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 1410 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_Y_OFS_USR.

◆ ism330dhcx_xl_usr_offset_y_set()

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]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that contains data to write
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 1391 of file ism330dhcx_reg.c.

References ism330dhcx_write_reg(), and ISM330DHCX_Y_OFS_USR.

◆ ism330dhcx_xl_usr_offset_z_get()

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]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that stores data read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 1448 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_Z_OFS_USR.

◆ ism330dhcx_xl_usr_offset_z_set()

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]

Parameters
ctxRead / write interface definitions.(ptr)
buffBuffer that contains data to write
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 1429 of file ism330dhcx_reg.c.

References ism330dhcx_write_reg(), and ISM330DHCX_Z_OFS_USR.