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

This section groups all the functions concerning auxiliary interface. More...

Collaboration diagram for Auxiliary_interface:

Functions

int32_t ism330dhcx_aux_sdo_ocs_mode_set (stmdev_ctx_t *ctx, ism330dhcx_ois_pu_dis_t val)
 On auxiliary interface connect/disconnect SDO and OCS internal pull-up.
int32_t ism330dhcx_aux_sdo_ocs_mode_get (stmdev_ctx_t *ctx, ism330dhcx_ois_pu_dis_t *val)
 On auxiliary interface connect/disconnect SDO and OCS internal pull-up.
int32_t ism330dhcx_aux_pw_on_ctrl_set (stmdev_ctx_t *ctx, ism330dhcx_ois_on_t val)
 OIS chain on aux interface power on mode.
int32_t ism330dhcx_aux_pw_on_ctrl_get (stmdev_ctx_t *ctx, ism330dhcx_ois_on_t *val)
 OIS chain on aux interface power on mode[get].
int32_t ism330dhcx_aux_status_reg_get (stmdev_ctx_t *ctx, ism330dhcx_status_spiaux_t *val)
 The STATUS_SPIAux register is read by the auxiliary SPI.
int32_t ism330dhcx_aux_xl_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val)
 AUX accelerometer data available.
int32_t ism330dhcx_aux_gy_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val)
 AUX gyroscope data available.
int32_t ism330dhcx_aux_gy_flag_settling_get (stmdev_ctx_t *ctx, uint8_t *val)
 High when the gyroscope output is in the settling phase.
int32_t ism330dhcx_aux_xl_self_test_set (stmdev_ctx_t *ctx, ism330dhcx_st_xl_ois_t val)
 Selects accelerometer self-test.
int32_t ism330dhcx_aux_xl_self_test_get (stmdev_ctx_t *ctx, ism330dhcx_st_xl_ois_t *val)
 Selects accelerometer self-test.
int32_t ism330dhcx_aux_den_polarity_set (stmdev_ctx_t *ctx, ism330dhcx_den_lh_ois_t val)
 Indicates polarity of DEN signal on OIS chain.
int32_t ism330dhcx_aux_den_polarity_get (stmdev_ctx_t *ctx, ism330dhcx_den_lh_ois_t *val)
 Indicates polarity of DEN signal on OIS chain.
int32_t ism330dhcx_aux_den_mode_set (stmdev_ctx_t *ctx, ism330dhcx_lvl2_ois_t val)
 Configure DEN mode on the OIS chain.
int32_t ism330dhcx_aux_den_mode_get (stmdev_ctx_t *ctx, ism330dhcx_lvl2_ois_t *val)
 Configure DEN mode on the OIS chain.
int32_t ism330dhcx_aux_drdy_on_int2_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables/Disable OIS chain DRDY on INT2 pin.
int32_t ism330dhcx_aux_drdy_on_int2_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables/Disable OIS chain DRDY on INT2 pin.
int32_t ism330dhcx_aux_mode_set (stmdev_ctx_t *ctx, ism330dhcx_ois_en_spi2_t val)
 Enables OIS chain data processing for gyro in Mode 3 and Mode 4 (mode4_en = 1) and accelerometer data in and Mode 4 (mode4_en = 1).
int32_t ism330dhcx_aux_mode_get (stmdev_ctx_t *ctx, ism330dhcx_ois_en_spi2_t *val)
 Enables OIS chain data processing for gyro in Mode 3 and Mode 4 (mode4_en = 1) and accelerometer data in and Mode 4 (mode4_en = 1).
int32_t ism330dhcx_aux_gy_full_scale_set (stmdev_ctx_t *ctx, ism330dhcx_fs_g_ois_t val)
 Selects gyroscope OIS chain full-scale.
int32_t ism330dhcx_aux_gy_full_scale_get (stmdev_ctx_t *ctx, ism330dhcx_fs_g_ois_t *val)
 Selects gyroscope OIS chain full-scale.
int32_t ism330dhcx_aux_spi_mode_set (stmdev_ctx_t *ctx, ism330dhcx_sim_ois_t val)
 SPI2 3- or 4-wire interface.
int32_t ism330dhcx_aux_spi_mode_get (stmdev_ctx_t *ctx, ism330dhcx_sim_ois_t *val)
 SPI2 3- or 4-wire interface.
int32_t ism330dhcx_aux_gy_lp1_bandwidth_set (stmdev_ctx_t *ctx, ism330dhcx_ftype_ois_t val)
 Selects gyroscope digital LPF1 filter bandwidth.
int32_t ism330dhcx_aux_gy_lp1_bandwidth_get (stmdev_ctx_t *ctx, ism330dhcx_ftype_ois_t *val)
 Selects gyroscope digital LPF1 filter bandwidth.
int32_t ism330dhcx_aux_gy_hp_bandwidth_set (stmdev_ctx_t *ctx, ism330dhcx_hpm_ois_t val)
 Selects gyroscope OIS chain digital high-pass filter cutoff.
int32_t ism330dhcx_aux_gy_hp_bandwidth_get (stmdev_ctx_t *ctx, ism330dhcx_hpm_ois_t *val)
 Selects gyroscope OIS chain digital high-pass filter cutoff.
int32_t ism330dhcx_aux_gy_clamp_set (stmdev_ctx_t *ctx, ism330dhcx_st_ois_clampdis_t val)
 Enable / Disables OIS chain clamp.
int32_t ism330dhcx_aux_gy_clamp_get (stmdev_ctx_t *ctx, ism330dhcx_st_ois_clampdis_t *val)
 Enable / Disables OIS chain clamp.
int32_t ism330dhcx_aux_gy_self_test_set (stmdev_ctx_t *ctx, ism330dhcx_st_ois_t val)
 Selects gyroscope OIS chain self-test.
int32_t ism330dhcx_aux_gy_self_test_get (stmdev_ctx_t *ctx, ism330dhcx_st_ois_t *val)
 Selects gyroscope OIS chain self-test.
int32_t ism330dhcx_aux_xl_bandwidth_set (stmdev_ctx_t *ctx, ism330dhcx_filter_xl_conf_ois_t val)
 Selects accelerometer OIS channel bandwidth.
int32_t ism330dhcx_aux_xl_bandwidth_get (stmdev_ctx_t *ctx, ism330dhcx_filter_xl_conf_ois_t *val)
 Selects accelerometer OIS channel bandwidth.
int32_t ism330dhcx_aux_xl_full_scale_set (stmdev_ctx_t *ctx, ism330dhcx_fs_xl_ois_t val)
 Selects accelerometer OIS channel full-scale.
int32_t ism330dhcx_aux_xl_full_scale_get (stmdev_ctx_t *ctx, ism330dhcx_fs_xl_ois_t *val)
 Selects accelerometer OIS channel full-scale.
int32_t ism330dhcx_sdo_sa0_mode_set (stmdev_ctx_t *ctx, ism330dhcx_sdo_pu_en_t val)
 Connect/Disconnect SDO/SA0 internal pull-up.
int32_t ism330dhcx_sdo_sa0_mode_get (stmdev_ctx_t *ctx, ism330dhcx_sdo_pu_en_t *val)
 Connect/Disconnect SDO/SA0 internal pull-up.
int32_t ism330dhcx_spi_mode_set (stmdev_ctx_t *ctx, ism330dhcx_sim_t val)
 SPI Serial Interface Mode selection.
int32_t ism330dhcx_spi_mode_get (stmdev_ctx_t *ctx, ism330dhcx_sim_t *val)
 SPI Serial Interface Mode selection.
int32_t ism330dhcx_i2c_interface_set (stmdev_ctx_t *ctx, ism330dhcx_i2c_disable_t val)
 Disable / Enable I2C interface.
int32_t ism330dhcx_i2c_interface_get (stmdev_ctx_t *ctx, ism330dhcx_i2c_disable_t *val)
 Disable / Enable I2C interface.
int32_t ism330dhcx_gy_sleep_mode_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables gyroscope Sleep mode.
int32_t ism330dhcx_gy_sleep_mode_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables gyroscope Sleep mode.
int32_t ism330dhcx_act_pin_notification_set (stmdev_ctx_t *ctx, ism330dhcx_sleep_status_on_int_t val)
 Drives the sleep status instead of sleep change on INT pins (only if INT1_SLEEP_CHANGE or INT2_SLEEP_CHANGE bits are enabled).
int32_t ism330dhcx_act_pin_notification_get (stmdev_ctx_t *ctx, ism330dhcx_sleep_status_on_int_t *val)
 Drives the sleep status instead of sleep change on INT pins (only if INT1_SLEEP_CHANGE or INT2_SLEEP_CHANGE bits are enabled).
int32_t ism330dhcx_act_mode_set (stmdev_ctx_t *ctx, ism330dhcx_inact_en_t val)
 Enable inactivity function.
int32_t ism330dhcx_act_mode_get (stmdev_ctx_t *ctx, ism330dhcx_inact_en_t *val)
 Enable inactivity function.
int32_t ism330dhcx_act_sleep_dur_set (stmdev_ctx_t *ctx, uint8_t val)
 Duration to go in sleep mode (1 LSb = 512 / ODR).
int32_t ism330dhcx_act_sleep_dur_get (stmdev_ctx_t *ctx, uint8_t *val)
 Duration to go in sleep mode.
int32_t ism330dhcx_6d_threshold_set (stmdev_ctx_t *ctx, ism330dhcx_sixd_ths_t val)
 Threshold for 4D/6D function.
int32_t ism330dhcx_6d_threshold_get (stmdev_ctx_t *ctx, ism330dhcx_sixd_ths_t *val)
 Threshold for 4D/6D function.
int32_t ism330dhcx_4d_mode_set (stmdev_ctx_t *ctx, uint8_t val)
 4D orientation detection enable.
int32_t ism330dhcx_4d_mode_get (stmdev_ctx_t *ctx, uint8_t *val)
 4D orientation detection enable.
int32_t ism330dhcx_mag_sensitivity_set (stmdev_ctx_t *ctx, uint16_t val)
 External magnetometer sensitivity value register.
int32_t ism330dhcx_mag_sensitivity_get (stmdev_ctx_t *ctx, uint16_t *val)
 External magnetometer sensitivity value register.
int32_t ism330dhcx_mag_offset_set (stmdev_ctx_t *ctx, int16_t *val)
 Offset for hard-iron compensation register (r/w).
int32_t ism330dhcx_mag_offset_get (stmdev_ctx_t *ctx, int16_t *val)
 Offset for hard-iron compensation register (r/w).
int32_t ism330dhcx_mag_soft_iron_set (stmdev_ctx_t *ctx, uint16_t *val)
 Soft-iron (3x3 symmetric) matrix correction register (r/w).
int32_t ism330dhcx_mag_soft_iron_get (stmdev_ctx_t *ctx, uint16_t *val)
 Soft-iron (3x3 symmetric) matrix correction register (r/w).
int32_t ism330dhcx_mag_z_orient_set (stmdev_ctx_t *ctx, ism330dhcx_mag_z_axis_t val)
 Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).
int32_t ism330dhcx_mag_z_orient_get (stmdev_ctx_t *ctx, ism330dhcx_mag_z_axis_t *val)
 Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).
int32_t ism330dhcx_mag_y_orient_set (stmdev_ctx_t *ctx, ism330dhcx_mag_y_axis_t val)
 Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).
int32_t ism330dhcx_mag_y_orient_get (stmdev_ctx_t *ctx, ism330dhcx_mag_y_axis_t *val)
 Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).
int32_t ism330dhcx_mag_x_orient_set (stmdev_ctx_t *ctx, ism330dhcx_mag_x_axis_t val)
 Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).
int32_t ism330dhcx_mag_x_orient_get (stmdev_ctx_t *ctx, ism330dhcx_mag_x_axis_t *val)
 Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

Detailed Description

This section groups all the functions concerning auxiliary interface.

This section groups all the functions that manage additional magnetometer sensor.

This section groups all the functions concerning six position detection (6D).

This section groups all the functions concerning activity/inactivity detection.

This section groups all the functions concerning main serial interface management (not auxiliary).

Function Documentation

◆ ism330dhcx_4d_mode_get()

int32_t ism330dhcx_4d_mode_get ( stmdev_ctx_t * ctx,
uint8_t * val )

4D orientation detection enable.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of d4d_en in reg TAP_THS_6D
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 6356 of file ism330dhcx_reg.c.

References ism330dhcx_tap_ths_6d_t::d4d_en, ism330dhcx_read_reg(), and ISM330DHCX_TAP_THS_6D.

◆ ism330dhcx_4d_mode_set()

int32_t ism330dhcx_4d_mode_set ( stmdev_ctx_t * ctx,
uint8_t val )

4D orientation detection enable.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of d4d_en in reg TAP_THS_6D
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 6331 of file ism330dhcx_reg.c.

References ism330dhcx_tap_ths_6d_t::d4d_en, ism330dhcx_read_reg(), ISM330DHCX_TAP_THS_6D, and ism330dhcx_write_reg().

◆ ism330dhcx_6d_threshold_get()

int32_t ism330dhcx_6d_threshold_get ( stmdev_ctx_t * ctx,
ism330dhcx_sixd_ths_t * val )

Threshold for 4D/6D function.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of sixd_ths in reg TAP_THS_6D
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 6289 of file ism330dhcx_reg.c.

References ISM330DHCX_DEG_50, ISM330DHCX_DEG_60, ISM330DHCX_DEG_70, ISM330DHCX_DEG_80, ism330dhcx_read_reg(), ISM330DHCX_TAP_THS_6D, and ism330dhcx_tap_ths_6d_t::sixd_ths.

◆ ism330dhcx_6d_threshold_set()

int32_t ism330dhcx_6d_threshold_set ( stmdev_ctx_t * ctx,
ism330dhcx_sixd_ths_t val )

Threshold for 4D/6D function.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sixd_ths in reg TAP_THS_6D
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 6263 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_THS_6D, ism330dhcx_write_reg(), and ism330dhcx_tap_ths_6d_t::sixd_ths.

◆ ism330dhcx_act_mode_get()

int32_t ism330dhcx_act_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_inact_en_t * val )

Enable inactivity function.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of inact_en in reg TAP_CFG2
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5584 of file ism330dhcx_reg.c.

References ism330dhcx_tap_cfg2_t::inact_en, ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG2, ISM330DHCX_XL_12Hz5_GY_NOT_AFFECTED, ISM330DHCX_XL_12Hz5_GY_PD, ISM330DHCX_XL_12Hz5_GY_SLEEP, and ISM330DHCX_XL_AND_GY_NOT_AFFECTED.

◆ ism330dhcx_act_mode_set()

int32_t ism330dhcx_act_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_inact_en_t val )

Enable inactivity function.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of inact_en in reg TAP_CFG2
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5558 of file ism330dhcx_reg.c.

References ism330dhcx_tap_cfg2_t::inact_en, ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG2, and ism330dhcx_write_reg().

◆ ism330dhcx_act_pin_notification_get()

int32_t ism330dhcx_act_pin_notification_get ( stmdev_ctx_t * ctx,
ism330dhcx_sleep_status_on_int_t * val )

Drives the sleep status instead of sleep change on INT pins (only if INT1_SLEEP_CHANGE or INT2_SLEEP_CHANGE bits are enabled).

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of sleep_status_on_int in reg TAP_CFG0
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5524 of file ism330dhcx_reg.c.

References ISM330DHCX_DRIVE_SLEEP_CHG_EVENT, ISM330DHCX_DRIVE_SLEEP_STATUS, ism330dhcx_read_reg(), and ISM330DHCX_TAP_CFG0.

◆ ism330dhcx_act_pin_notification_set()

int32_t ism330dhcx_act_pin_notification_set ( stmdev_ctx_t * ctx,
ism330dhcx_sleep_status_on_int_t val )

Drives the sleep status instead of sleep change on INT pins (only if INT1_SLEEP_CHANGE or INT2_SLEEP_CHANGE bits are enabled).

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sleep_status_on_int in reg TAP_CFG0
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5496 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, and ism330dhcx_write_reg().

◆ ism330dhcx_act_sleep_dur_get()

int32_t ism330dhcx_act_sleep_dur_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Duration to go in sleep mode.

(1 LSb = 512 / ODR).[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sleep_dur in reg WAKE_UP_DUR
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5651 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_wake_up_dur_t::sleep_dur.

◆ ism330dhcx_act_sleep_dur_set()

int32_t ism330dhcx_act_sleep_dur_set ( stmdev_ctx_t * ctx,
uint8_t val )

Duration to go in sleep mode (1 LSb = 512 / ODR).

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sleep_dur in reg WAKE_UP_DUR
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5626 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, ism330dhcx_write_reg(), and ism330dhcx_wake_up_dur_t::sleep_dur.

◆ ism330dhcx_aux_den_mode_get()

int32_t ism330dhcx_aux_den_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_lvl2_ois_t * val )

Configure DEN mode on the OIS chain.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of lvl2_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3638 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_DEN_DISABLE, ISM330DHCX_AUX_DEN_LEVEL_LATCH, ISM330DHCX_AUX_DEN_LEVEL_TRIG, ISM330DHCX_CTRL1_OIS, ISM330DHCX_INT_OIS, ism330dhcx_read_reg(), ism330dhcx_ctrl1_ois_t::lvl1_ois, and ism330dhcx_int_ois_t::lvl2_ois.

◆ ism330dhcx_aux_den_mode_set()

int32_t ism330dhcx_aux_den_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_lvl2_ois_t val )

Configure DEN mode on the OIS chain.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of lvl2_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3598 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL1_OIS, ISM330DHCX_INT_OIS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), ism330dhcx_ctrl1_ois_t::lvl1_ois, and ism330dhcx_int_ois_t::lvl2_ois.

◆ ism330dhcx_aux_den_polarity_get()

int32_t ism330dhcx_aux_den_polarity_get ( stmdev_ctx_t * ctx,
ism330dhcx_den_lh_ois_t * val )

Indicates polarity of DEN signal on OIS chain.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of den_lh_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3564 of file ism330dhcx_reg.c.

References ism330dhcx_int_ois_t::den_lh_ois, ISM330DHCX_AUX_DEN_ACTIVE_HIGH, ISM330DHCX_AUX_DEN_ACTIVE_LOW, ISM330DHCX_INT_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_den_polarity_set()

int32_t ism330dhcx_aux_den_polarity_set ( stmdev_ctx_t * ctx,
ism330dhcx_den_lh_ois_t val )

Indicates polarity of DEN signal on OIS chain.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of den_lh_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3538 of file ism330dhcx_reg.c.

References ism330dhcx_int_ois_t::den_lh_ois, ISM330DHCX_INT_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_drdy_on_int2_get()

int32_t ism330dhcx_aux_drdy_on_int2_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables/Disable OIS chain DRDY on INT2 pin.

This setting has priority over all other INT2 settings.[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of int2_drdy_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3711 of file ism330dhcx_reg.c.

References ism330dhcx_int_ois_t::int2_drdy_ois, ISM330DHCX_INT_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_drdy_on_int2_set()

int32_t ism330dhcx_aux_drdy_on_int2_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables/Disable OIS chain DRDY on INT2 pin.

This setting has priority over all other INT2 settings.[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of int2_drdy_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3684 of file ism330dhcx_reg.c.

References ism330dhcx_int_ois_t::int2_drdy_ois, ISM330DHCX_INT_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_gy_clamp_get()

int32_t ism330dhcx_aux_gy_clamp_get ( stmdev_ctx_t * ctx,
ism330dhcx_st_ois_clampdis_t * val )

Enable / Disables OIS chain clamp.

Enable: All OIS chain outputs = 8000h during self-test; Disable: OIS chain self-test outputs dependent from the aux gyro full scale selected.[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of st_ois_clampdis in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4111 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_OIS, ISM330DHCX_DISABLE_CLAMP, ISM330DHCX_ENABLE_CLAMP, ism330dhcx_read_reg(), and ism330dhcx_ctrl3_ois_t::st_ois_clampdis.

◆ ism330dhcx_aux_gy_clamp_set()

int32_t ism330dhcx_aux_gy_clamp_set ( stmdev_ctx_t * ctx,
ism330dhcx_st_ois_clampdis_t val )

Enable / Disables OIS chain clamp.

Enable: All OIS chain outputs = 8000h during self-test; Disable: OIS chain self-test outputs dependent from the aux gyro full scale selected.[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of st_ois_clampdis in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4083 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_OIS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl3_ois_t::st_ois_clampdis.

◆ ism330dhcx_aux_gy_flag_data_ready_get()

int32_t ism330dhcx_aux_gy_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

AUX gyroscope data available.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of gda in reg STATUS_SPIAUX
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3432 of file ism330dhcx_reg.c.

References ism330dhcx_status_spiaux_t::gda, ism330dhcx_read_reg(), and ISM330DHCX_STATUS_SPIAUX.

◆ ism330dhcx_aux_gy_flag_settling_get()

int32_t ism330dhcx_aux_gy_flag_settling_get ( stmdev_ctx_t * ctx,
uint8_t * val )

High when the gyroscope output is in the settling phase.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of gyro_settling in reg STATUS_SPIAUX
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3452 of file ism330dhcx_reg.c.

References ism330dhcx_status_spiaux_t::gyro_settling, ism330dhcx_read_reg(), and ISM330DHCX_STATUS_SPIAUX.

◆ ism330dhcx_aux_gy_full_scale_get()

int32_t ism330dhcx_aux_gy_full_scale_get ( stmdev_ctx_t * ctx,
ism330dhcx_fs_g_ois_t * val )

Selects gyroscope OIS chain full-scale.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of fs_g_ois in reg CTRL1_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3834 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl1_ois_t::fs_125_ois, ism330dhcx_ctrl1_ois_t::fs_g_ois, ISM330DHCX_1000dps_AUX, ISM330DHCX_125dps_AUX, ISM330DHCX_2000dps_AUX, ISM330DHCX_250dps_AUX, ISM330DHCX_500dps_AUX, ISM330DHCX_CTRL1_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_gy_full_scale_set()

int32_t ism330dhcx_aux_gy_full_scale_set ( stmdev_ctx_t * ctx,
ism330dhcx_fs_g_ois_t val )

Selects gyroscope OIS chain full-scale.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of fs_g_ois in reg CTRL1_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3807 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl1_ois_t::fs_125_ois, ism330dhcx_ctrl1_ois_t::fs_g_ois, ISM330DHCX_CTRL1_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_gy_hp_bandwidth_get()

int32_t ism330dhcx_aux_gy_hp_bandwidth_get ( stmdev_ctx_t * ctx,
ism330dhcx_hpm_ois_t * val )

Selects gyroscope OIS chain digital high-pass filter cutoff.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of hpm_ois in reg CTRL2_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4035 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl2_ois_t::hp_en_ois, ism330dhcx_ctrl2_ois_t::hpm_ois, ISM330DHCX_AUX_HP_1Hz040, ISM330DHCX_AUX_HP_DISABLE, ISM330DHCX_AUX_HP_Hz016, ISM330DHCX_AUX_HP_Hz065, ISM330DHCX_AUX_HP_Hz260, ISM330DHCX_CTRL2_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_gy_hp_bandwidth_set()

int32_t ism330dhcx_aux_gy_hp_bandwidth_set ( stmdev_ctx_t * ctx,
ism330dhcx_hpm_ois_t val )

Selects gyroscope OIS chain digital high-pass filter cutoff.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of hpm_ois in reg CTRL2_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4008 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl2_ois_t::hp_en_ois, ism330dhcx_ctrl2_ois_t::hpm_ois, ISM330DHCX_CTRL2_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_gy_lp1_bandwidth_get()

int32_t ism330dhcx_aux_gy_lp1_bandwidth_get ( stmdev_ctx_t * ctx,
ism330dhcx_ftype_ois_t * val )

Selects gyroscope digital LPF1 filter bandwidth.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of ftype_ois in reg CTRL2_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3966 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl2_ois_t::ftype_ois, ISM330DHCX_172Hz70, ISM330DHCX_236Hz63, ISM330DHCX_351Hz39, ISM330DHCX_937Hz91, ISM330DHCX_CTRL2_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_gy_lp1_bandwidth_set()

int32_t ism330dhcx_aux_gy_lp1_bandwidth_set ( stmdev_ctx_t * ctx,
ism330dhcx_ftype_ois_t val )

Selects gyroscope digital LPF1 filter bandwidth.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of ftype_ois in reg CTRL2_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3940 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl2_ois_t::ftype_ois, ISM330DHCX_CTRL2_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_gy_self_test_get()

int32_t ism330dhcx_aux_gy_self_test_get ( stmdev_ctx_t * ctx,
ism330dhcx_st_ois_t * val )

Selects gyroscope OIS chain self-test.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of st_ois in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4171 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_GY_DISABLE, ISM330DHCX_AUX_GY_NEG, ISM330DHCX_AUX_GY_POS, ISM330DHCX_CTRL3_OIS, ism330dhcx_read_reg(), and ism330dhcx_ctrl3_ois_t::st_ois.

◆ ism330dhcx_aux_gy_self_test_set()

int32_t ism330dhcx_aux_gy_self_test_set ( stmdev_ctx_t * ctx,
ism330dhcx_st_ois_t val )

Selects gyroscope OIS chain self-test.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of st_ois in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4145 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_OIS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl3_ois_t::st_ois.

◆ ism330dhcx_aux_mode_get()

int32_t ism330dhcx_aux_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_ois_en_spi2_t * val )

Enables OIS chain data processing for gyro in Mode 3 and Mode 4 (mode4_en = 1) and accelerometer data in and Mode 4 (mode4_en = 1).

When the OIS chain is enabled, the OIS outputs are available through the SPI2 in registers OUTX_L_G (22h) through OUTZ_H_G(27h) and STATUS_REG (1Eh) / STATUS_SPIAux, and LPF1 is dedicated to this chain.[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of ois_en_spi2 in reg CTRL1_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3769 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_DISABLE, ISM330DHCX_CTRL1_OIS, ISM330DHCX_MODE_3_GY, ISM330DHCX_MODE_4_GY_XL, ism330dhcx_read_reg(), ism330dhcx_ctrl1_ois_t::mode4_en, and ism330dhcx_ctrl1_ois_t::ois_en_spi2.

◆ ism330dhcx_aux_mode_set()

int32_t ism330dhcx_aux_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_ois_en_spi2_t val )

Enables OIS chain data processing for gyro in Mode 3 and Mode 4 (mode4_en = 1) and accelerometer data in and Mode 4 (mode4_en = 1).

When the OIS chain is enabled, the OIS outputs are available through the SPI2 in registers OUTX_L_G (22h) through OUTZ_H_G(27h) and STATUS_REG (1Eh) / STATUS_SPIAux, and LPF1 is dedicated to this chain.[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of ois_en_spi2 in reg CTRL1_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3736 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL1_OIS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), ism330dhcx_ctrl1_ois_t::mode4_en, and ism330dhcx_ctrl1_ois_t::ois_en_spi2.

◆ ism330dhcx_aux_pw_on_ctrl_get()

int32_t ism330dhcx_aux_pw_on_ctrl_get ( stmdev_ctx_t * ctx,
ism330dhcx_ois_on_t * val )

OIS chain on aux interface power on mode[get].

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of ois_on in reg CTRL7_G
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3360 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_ON, ISM330DHCX_AUX_ON_BY_AUX_INTERFACE, ISM330DHCX_CTRL7_G, ism330dhcx_read_reg(), and ism330dhcx_ctrl7_g_t::ois_on.

◆ ism330dhcx_aux_pw_on_ctrl_set()

int32_t ism330dhcx_aux_pw_on_ctrl_set ( stmdev_ctx_t * ctx,
ism330dhcx_ois_on_t val )

OIS chain on aux interface power on mode.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of ois_on in reg CTRL7_G
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3333 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL7_G, ism330dhcx_read_reg(), ism330dhcx_write_reg(), ism330dhcx_ctrl7_g_t::ois_on, and ism330dhcx_ctrl7_g_t::ois_on_en.

◆ ism330dhcx_aux_sdo_ocs_mode_get()

int32_t ism330dhcx_aux_sdo_ocs_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_ois_pu_dis_t * val )

On auxiliary interface connect/disconnect SDO and OCS internal pull-up.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of ois_pu_dis in reg PIN_CTRL
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3299 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_PULL_UP_CONNECT, ISM330DHCX_AUX_PULL_UP_DISC, ISM330DHCX_PIN_CTRL, ism330dhcx_read_reg(), and ism330dhcx_pin_ctrl_t::ois_pu_dis.

◆ ism330dhcx_aux_sdo_ocs_mode_set()

int32_t ism330dhcx_aux_sdo_ocs_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_ois_pu_dis_t val )

On auxiliary interface connect/disconnect SDO and OCS internal pull-up.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of ois_pu_dis in reg PIN_CTRL
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3272 of file ism330dhcx_reg.c.

References ISM330DHCX_PIN_CTRL, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_pin_ctrl_t::ois_pu_dis.

◆ ism330dhcx_aux_spi_mode_get()

int32_t ism330dhcx_aux_spi_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_sim_ois_t * val )

SPI2 3- or 4-wire interface.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of sim_ois in reg CTRL1_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3906 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_SPI_3_WIRE, ISM330DHCX_AUX_SPI_4_WIRE, ISM330DHCX_CTRL1_OIS, ism330dhcx_read_reg(), and ism330dhcx_ctrl1_ois_t::sim_ois.

◆ ism330dhcx_aux_spi_mode_set()

int32_t ism330dhcx_aux_spi_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_sim_ois_t val )

SPI2 3- or 4-wire interface.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sim_ois in reg CTRL1_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3880 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL1_OIS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl1_ois_t::sim_ois.

◆ ism330dhcx_aux_status_reg_get()

int32_t ism330dhcx_aux_status_reg_get ( stmdev_ctx_t * ctx,
ism330dhcx_status_spiaux_t * val )

The STATUS_SPIAux register is read by the auxiliary SPI.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
ism330dhcx_status_spiaux_tregisters STATUS_SPIAUX
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3394 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_STATUS_SPIAUX.

◆ ism330dhcx_aux_xl_bandwidth_get()

int32_t ism330dhcx_aux_xl_bandwidth_get ( stmdev_ctx_t * ctx,
ism330dhcx_filter_xl_conf_ois_t * val )

Selects accelerometer OIS channel bandwidth.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of filter_xl_conf_ois in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4235 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_ois_t::filter_xl_conf_ois, ISM330DHCX_140Hz, ISM330DHCX_16Hz7, ISM330DHCX_295Hz, ISM330DHCX_33Hz6, ISM330DHCX_4Hz11, ISM330DHCX_631Hz, ISM330DHCX_68Hz2, ISM330DHCX_8Hz3, ISM330DHCX_CTRL3_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_xl_bandwidth_set()

int32_t ism330dhcx_aux_xl_bandwidth_set ( stmdev_ctx_t * ctx,
ism330dhcx_filter_xl_conf_ois_t val )

Selects accelerometer OIS channel bandwidth.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of filter_xl_conf_ois in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4209 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_ois_t::filter_xl_conf_ois, ISM330DHCX_CTRL3_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_xl_flag_data_ready_get()

int32_t ism330dhcx_aux_xl_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

AUX accelerometer data available.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of xlda in reg STATUS_SPIAUX
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3412 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_STATUS_SPIAUX, and ism330dhcx_status_spiaux_t::xlda.

◆ ism330dhcx_aux_xl_full_scale_get()

int32_t ism330dhcx_aux_xl_full_scale_get ( stmdev_ctx_t * ctx,
ism330dhcx_fs_xl_ois_t * val )

Selects accelerometer OIS channel full-scale.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of fs_xl_ois in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4319 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_ois_t::fs_xl_ois, ISM330DHCX_AUX_16g, ISM330DHCX_AUX_2g, ISM330DHCX_AUX_4g, ISM330DHCX_AUX_8g, ISM330DHCX_CTRL3_OIS, and ism330dhcx_read_reg().

◆ ism330dhcx_aux_xl_full_scale_set()

int32_t ism330dhcx_aux_xl_full_scale_set ( stmdev_ctx_t * ctx,
ism330dhcx_fs_xl_ois_t val )

Selects accelerometer OIS channel full-scale.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of fs_xl_ois in reg CTRL3_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4293 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_ois_t::fs_xl_ois, ISM330DHCX_CTRL3_OIS, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_aux_xl_self_test_get()

int32_t ism330dhcx_aux_xl_self_test_get ( stmdev_ctx_t * ctx,
ism330dhcx_st_xl_ois_t * val )

Selects accelerometer self-test.

Effective only if XL OIS chain is enabled.[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of st_xl_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3500 of file ism330dhcx_reg.c.

References ISM330DHCX_AUX_XL_DISABLE, ISM330DHCX_AUX_XL_NEG, ISM330DHCX_AUX_XL_POS, ISM330DHCX_INT_OIS, ism330dhcx_read_reg(), and ism330dhcx_int_ois_t::st_xl_ois.

◆ ism330dhcx_aux_xl_self_test_set()

int32_t ism330dhcx_aux_xl_self_test_set ( stmdev_ctx_t * ctx,
ism330dhcx_st_xl_ois_t val )

Selects accelerometer self-test.

Effective only if XL OIS chain is enabled.[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of st_xl_ois in reg INT_OIS
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 3473 of file ism330dhcx_reg.c.

References ISM330DHCX_INT_OIS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_int_ois_t::st_xl_ois.

◆ ism330dhcx_gy_sleep_mode_get()

int32_t ism330dhcx_gy_sleep_mode_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables gyroscope Sleep mode.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sleep_g in reg CTRL4_C
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5475 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL4_C, ism330dhcx_read_reg(), and ism330dhcx_ctrl4_c_t::sleep_g.

◆ ism330dhcx_gy_sleep_mode_set()

int32_t ism330dhcx_gy_sleep_mode_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables gyroscope Sleep mode.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sleep_g in reg CTRL4_C
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 5450 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL4_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl4_c_t::sleep_g.

◆ ism330dhcx_i2c_interface_get()

int32_t ism330dhcx_i2c_interface_get ( stmdev_ctx_t * ctx,
ism330dhcx_i2c_disable_t * val )

Disable / Enable I2C interface.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of i2c reg CTRL4_C
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4520 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl4_c_t::i2c_disable, ISM330DHCX_CTRL4_C, ISM330DHCX_I2C_DISABLE, ISM330DHCX_I2C_ENABLE, and ism330dhcx_read_reg().

◆ ism330dhcx_i2c_interface_set()

int32_t ism330dhcx_i2c_interface_set ( stmdev_ctx_t * ctx,
ism330dhcx_i2c_disable_t val )

Disable / Enable I2C interface.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of i2c_disable in reg CTRL4_C
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4494 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl4_c_t::i2c_disable, ISM330DHCX_CTRL4_C, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_mag_offset_get()

int32_t ism330dhcx_mag_offset_get ( stmdev_ctx_t * ctx,
int16_t * val )

Offset for hard-iron compensation register (r/w).

[get]

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

Definition at line 9023 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_MAG_OFFX_H, ISM330DHCX_MAG_OFFX_L, ISM330DHCX_MAG_OFFY_H, ISM330DHCX_MAG_OFFY_L, ISM330DHCX_MAG_OFFZ_H, and ISM330DHCX_MAG_OFFZ_L.

◆ ism330dhcx_mag_offset_set()

int32_t ism330dhcx_mag_offset_set ( stmdev_ctx_t * ctx,
int16_t * val )

Offset for hard-iron compensation register (r/w).

[set]

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

Definition at line 8962 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_write_byte(), ISM330DHCX_MAG_OFFX_H, ISM330DHCX_MAG_OFFX_L, ISM330DHCX_MAG_OFFY_H, ISM330DHCX_MAG_OFFY_L, ISM330DHCX_MAG_OFFZ_H, and ISM330DHCX_MAG_OFFZ_L.

◆ ism330dhcx_mag_sensitivity_get()

int32_t ism330dhcx_mag_sensitivity_get ( stmdev_ctx_t * ctx,
uint16_t * val )

External magnetometer sensitivity value register.

[get]

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

Definition at line 8935 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_MAG_SENSITIVITY_H, and ISM330DHCX_MAG_SENSITIVITY_L.

◆ ism330dhcx_mag_sensitivity_set()

int32_t ism330dhcx_mag_sensitivity_set ( stmdev_ctx_t * ctx,
uint16_t val )

External magnetometer sensitivity value register.

[set]

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

Definition at line 8908 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_write_byte(), ISM330DHCX_MAG_SENSITIVITY_H, and ISM330DHCX_MAG_SENSITIVITY_L.

◆ ism330dhcx_mag_soft_iron_get()

int32_t ism330dhcx_mag_soft_iron_get ( stmdev_ctx_t * ctx,
uint16_t * val )

Soft-iron (3x3 symmetric) matrix correction register (r/w).

The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).[get]

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

Definition at line 9204 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_MAG_SI_XX_H, ISM330DHCX_MAG_SI_XX_L, ISM330DHCX_MAG_SI_XY_H, ISM330DHCX_MAG_SI_XY_L, ISM330DHCX_MAG_SI_XZ_H, ISM330DHCX_MAG_SI_XZ_L, ISM330DHCX_MAG_SI_YY_H, ISM330DHCX_MAG_SI_YY_L, ISM330DHCX_MAG_SI_YZ_H, ISM330DHCX_MAG_SI_YZ_L, ISM330DHCX_MAG_SI_ZZ_H, and ISM330DHCX_MAG_SI_ZZ_L.

◆ ism330dhcx_mag_soft_iron_set()

int32_t ism330dhcx_mag_soft_iron_set ( stmdev_ctx_t * ctx,
uint16_t * val )

Soft-iron (3x3 symmetric) matrix correction register (r/w).

The value is expressed as half-precision floating-point format: SEEEEEFFFFFFFFFF S: 1 sign bit; E: 5 exponent bits; F: 10 fraction bits).[set]

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

Definition at line 9090 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_write_byte(), ISM330DHCX_MAG_SI_XX_H, ISM330DHCX_MAG_SI_XX_L, ISM330DHCX_MAG_SI_XY_H, ISM330DHCX_MAG_SI_XY_L, ISM330DHCX_MAG_SI_XZ_H, ISM330DHCX_MAG_SI_XZ_L, ISM330DHCX_MAG_SI_YY_H, ISM330DHCX_MAG_SI_YY_L, ISM330DHCX_MAG_SI_YZ_H, ISM330DHCX_MAG_SI_YZ_L, ISM330DHCX_MAG_SI_ZZ_H, and ISM330DHCX_MAG_SI_ZZ_L.

◆ ism330dhcx_mag_x_orient_get()

int32_t ism330dhcx_mag_x_orient_get ( stmdev_ctx_t * ctx,
ism330dhcx_mag_x_axis_t * val )

Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of mag_x_axis in reg MAG_CFG_B
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9499 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_MAG_CFG_B, ISM330DHCX_X_EQ_MIN_X, ISM330DHCX_X_EQ_MIN_Y, ISM330DHCX_X_EQ_MIN_Z, ISM330DHCX_X_EQ_X, ISM330DHCX_X_EQ_Y, ISM330DHCX_X_EQ_Z, and ism330dhcx_mag_cfg_b_t::mag_x_axis.

◆ ism330dhcx_mag_x_orient_set()

int32_t ism330dhcx_mag_x_orient_set ( stmdev_ctx_t * ctx,
ism330dhcx_mag_x_axis_t val )

Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of mag_x_axis in reg MAG_CFG_B
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9472 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write_byte(), ISM330DHCX_MAG_CFG_B, and ism330dhcx_mag_cfg_b_t::mag_x_axis.

◆ ism330dhcx_mag_y_orient_get()

int32_t ism330dhcx_mag_y_orient_get ( stmdev_ctx_t * ctx,
ism330dhcx_mag_y_axis_t * val )

Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of mag_y_axis in reg MAG_CFG_A
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9421 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_MAG_CFG_A, ISM330DHCX_Y_EQ_MIN_X, ISM330DHCX_Y_EQ_MIN_Y, ISM330DHCX_Y_EQ_MIN_Z, ISM330DHCX_Y_EQ_X, ISM330DHCX_Y_EQ_Y, ISM330DHCX_Y_EQ_Z, and ism330dhcx_mag_cfg_a_t::mag_y_axis.

◆ ism330dhcx_mag_y_orient_set()

int32_t ism330dhcx_mag_y_orient_set ( stmdev_ctx_t * ctx,
ism330dhcx_mag_y_axis_t val )

Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of mag_y_axis in reg MAG_CFG_A
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9394 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write_byte(), ISM330DHCX_MAG_CFG_A, and ism330dhcx_mag_cfg_a_t::mag_y_axis.

◆ ism330dhcx_mag_z_orient_get()

int32_t ism330dhcx_mag_z_orient_get ( stmdev_ctx_t * ctx,
ism330dhcx_mag_z_axis_t * val )

Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of mag_z_axis in reg MAG_CFG_A
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9342 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_MAG_CFG_A, ISM330DHCX_Z_EQ_MIN_X, ISM330DHCX_Z_EQ_MIN_Y, ISM330DHCX_Z_EQ_MIN_Z, ISM330DHCX_Z_EQ_X, ISM330DHCX_Z_EQ_Y, ISM330DHCX_Z_EQ_Z, and ism330dhcx_mag_cfg_a_t::mag_z_axis.

◆ ism330dhcx_mag_z_orient_set()

int32_t ism330dhcx_mag_z_orient_set ( stmdev_ctx_t * ctx,
ism330dhcx_mag_z_axis_t val )

Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation).

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of mag_z_axis in reg MAG_CFG_A
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9315 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write_byte(), ISM330DHCX_MAG_CFG_A, and ism330dhcx_mag_cfg_a_t::mag_z_axis.

◆ ism330dhcx_sdo_sa0_mode_get()

int32_t ism330dhcx_sdo_sa0_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_sdo_pu_en_t * val )

Connect/Disconnect SDO/SA0 internal pull-up.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of sdo_pu_en in reg PIN_CTRL
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4400 of file ism330dhcx_reg.c.

References ISM330DHCX_PIN_CTRL, ISM330DHCX_PULL_UP_CONNECT, ISM330DHCX_PULL_UP_DISC, ism330dhcx_read_reg(), and ism330dhcx_pin_ctrl_t::sdo_pu_en.

◆ ism330dhcx_sdo_sa0_mode_set()

int32_t ism330dhcx_sdo_sa0_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_sdo_pu_en_t val )

Connect/Disconnect SDO/SA0 internal pull-up.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sdo_pu_en in reg PIN_CTRL
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4374 of file ism330dhcx_reg.c.

References ISM330DHCX_PIN_CTRL, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_pin_ctrl_t::sdo_pu_en.

◆ ism330dhcx_spi_mode_get()

int32_t ism330dhcx_spi_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_sim_t * val )

SPI Serial Interface Mode selection.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valGet the values of sim in reg CTRL3_C
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4460 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_C, ism330dhcx_read_reg(), ISM330DHCX_SPI_3_WIRE, ISM330DHCX_SPI_4_WIRE, and ism330dhcx_ctrl3_c_t::sim.

◆ ism330dhcx_spi_mode_set()

int32_t ism330dhcx_spi_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_sim_t val )

SPI Serial Interface Mode selection.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valChange the values of sim in reg CTRL3_C
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4434 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl3_c_t::sim.