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

This file provides a set of functions needed to drive the ism330dhcx enhanced inertial module. More...

Collaboration diagram for Infos:

Topics

 ISM330DHCX_Interfaces_Functions
 This section provide a set of functions used to read and write a generic register of the device.
 ISM330DHCX_Sensitivity
 These functions convert raw-data into engineering units.
 LSM9DS1_Data_generation
 This section groups all the functions concerning data generation.
 ISM330DHCX_Timestamp
 This section groups all the functions that manage the timestamp generation.
 output
 This section groups all the data output functions.
 ISM330DHCX_common
 This section groups common useful functions.
 ISM330DHCX_filters
 This section group all the functions concerning the filters configuration.
 Auxiliary_interface
 This section groups all the functions concerning auxiliary interface.
 ISM330DHCX_interrupt_pins
 This section groups all the functions that manage interrupt pins.
 ISM330DHCX_Wake_Up_event
 This section groups all the functions that manage the Wake Up event generation.
 ISM330DHCX_tap_generator
 This section groups all the functions that manage the tap and double tap event generation.
 ISM330DHCX_free_fall
 This section group all the functions concerning the free fall detection.
 ISM330DHCX_fifo
 This section group all the functions concerning the fifo usage.
 ISM330DHCX_DEN_functionality
 This section groups all the functions concerning DEN functionality.
 ISM330DHCX_Pedometer
 This section groups all the functions that manage pedometer.
 ISM330DHCX_significant_motion
 This section groups all the functions that manage the significant motion detection.
 ISM330DHCX_tilt_detection
 This section groups all the functions that manage the tilt event detection.
 ISM330DHCX_finite_state_machine
 This section groups all the functions that manage the state_machine.
 ISM330DHCX_Sensor_hub
 This section groups all the functions that manage the sensor hub.
 definitions
 sensors common types
 ISM330DHCX_Register_Union
 This union group all the registers having a bit-field description.
 Learning Core
 This section group all the functions concerning the usage of Machine Learning Core

Classes

struct  ism330dhcx_func_cfg_access_t
struct  ism330dhcx_pin_ctrl_t
struct  ism330dhcx_fifo_ctrl1_t
struct  ism330dhcx_fifo_ctrl2_t
struct  ism330dhcx_fifo_ctrl3_t
struct  ism330dhcx_fifo_ctrl4_t
struct  ism330dhcx_counter_bdr_reg1_t
struct  ism330dhcx_counter_bdr_reg2_t
struct  ism330dhcx_int1_ctrl_t
struct  ism330dhcx_int2_ctrl_t
struct  ism330dhcx_ctrl1_xl_t
struct  ism330dhcx_ctrl2_g_t
struct  ism330dhcx_ctrl3_c_t
struct  ism330dhcx_ctrl4_c_t
struct  ism330dhcx_ctrl5_c_t
struct  ism330dhcx_ctrl6_c_t
struct  ism330dhcx_ctrl7_g_t
struct  ism330dhcx_ctrl8_xl_t
struct  ism330dhcx_ctrl9_xl_t
struct  ism330dhcx_ctrl10_c_t
struct  ism330dhcx_all_int_src_t
struct  ism330dhcx_wake_up_src_t
struct  ism330dhcx_tap_src_t
struct  ism330dhcx_d6d_src_t
struct  ism330dhcx_status_reg_t
struct  ism330dhcx_status_spiaux_t
struct  ism330dhcx_emb_func_status_mainpage_t
struct  ism330dhcx_fsm_status_a_mainpage_t
struct  ism330dhcx_fsm_status_b_mainpage_t
struct  ism330dhcx_mlc_status_mainpage_t
struct  ism330dhcx_status_master_mainpage_t
struct  ism330dhcx_fifo_status1_t
struct  ism330dhcx_fifo_status2_t
struct  ism330dhcx_tap_cfg0_t
struct  ism330dhcx_tap_cfg1_t
struct  ism330dhcx_tap_cfg2_t
struct  ism330dhcx_tap_ths_6d_t
struct  ism330dhcx_int_dur2_t
struct  ism330dhcx_wake_up_ths_t
struct  ism330dhcx_wake_up_dur_t
struct  ism330dhcx_free_fall_t
struct  ism330dhcx_md1_cfg_t
struct  ism330dhcx_md2_cfg_t
struct  ism330dhcx_internal_freq_fine_t
struct  ism330dhcx_int_ois_t
struct  ism330dhcx_ctrl1_ois_t
struct  ism330dhcx_ctrl2_ois_t
struct  ism330dhcx_ctrl3_ois_t
struct  ism330dhcx_fifo_data_out_tag_t
struct  ism330dhcx_page_sel_t
struct  ism330dhcx_emb_func_en_a_t
struct  ism330dhcx_emb_func_en_b_t
struct  ism330dhcx_page_address_t
struct  ism330dhcx_page_value_t
struct  ism330dhcx_emb_func_int1_t
struct  ism330dhcx_fsm_int1_a_t
struct  ism330dhcx_fsm_int1_b_t
struct  ism330dhcx_mlc_int1_t
struct  ism330dhcx_emb_func_int2_t
struct  ism330dhcx_fsm_int2_a_t
struct  ism330dhcx_fsm_int2_b_t
struct  ism330dhcx_mlc_int2_t
struct  ism330dhcx_emb_func_status_t
struct  ism330dhcx_fsm_status_a_t
struct  ism330dhcx_fsm_status_b_t
struct  ism330dhcx_mlc_status_t
struct  ism330dhcx_page_rw_t
struct  ism330dhcx_emb_func_fifo_cfg_t
struct  ism330dhcx_fsm_enable_a_t
struct  ism330dhcx_fsm_enable_b_t
struct  ism330dhcx_fsm_long_counter_clear_t
struct  ism330dhcx_fsm_outs1_t
struct  ism330dhcx_fsm_outs2_t
struct  ism330dhcx_fsm_outs3_t
struct  ism330dhcx_fsm_outs4_t
struct  ism330dhcx_fsm_outs5_t
struct  ism330dhcx_fsm_outs6_t
struct  ism330dhcx_fsm_outs7_t
struct  ism330dhcx_fsm_outs8_t
struct  ism330dhcx_fsm_outs9_t
struct  ism330dhcx_fsm_outs10_t
struct  ism330dhcx_fsm_outs11_t
struct  ism330dhcx_fsm_outs12_t
struct  ism330dhcx_fsm_outs13_t
struct  ism330dhcx_fsm_outs14_t
struct  ism330dhcx_fsm_outs15_t
struct  ism330dhcx_fsm_outs16_t
struct  ism330dhcx_emb_func_odr_cfg_b_t
struct  ism330dhcx_emb_func_odr_cfg_c_t
struct  ism330dhcx_emb_func_src_t
struct  ism330dhcx_emb_func_init_a_t
struct  ism330dhcx_emb_func_init_b_t
struct  ism330dhcx_mag_cfg_a_t
struct  ism330dhcx_mag_cfg_b_t
struct  ism330dhcx_pedo_cmd_reg_t
struct  ism330dhcx_sensor_hub_1_t
struct  ism330dhcx_sensor_hub_2_t
struct  ism330dhcx_sensor_hub_3_t
struct  ism330dhcx_sensor_hub_4_t
struct  ism330dhcx_sensor_hub_5_t
struct  ism330dhcx_sensor_hub_6_t
struct  ism330dhcx_sensor_hub_7_t
struct  ism330dhcx_sensor_hub_8_t
struct  ism330dhcx_sensor_hub_9_t
struct  ism330dhcx_sensor_hub_10_t
struct  ism330dhcx_sensor_hub_11_t
struct  ism330dhcx_sensor_hub_12_t
struct  ism330dhcx_sensor_hub_13_t
struct  ism330dhcx_sensor_hub_14_t
struct  ism330dhcx_sensor_hub_15_t
struct  ism330dhcx_sensor_hub_16_t
struct  ism330dhcx_sensor_hub_17_t
struct  ism330dhcx_sensor_hub_18_t
struct  ism330dhcx_master_config_t
struct  ism330dhcx_slv0_add_t
struct  ism330dhcx_slv0_subadd_t
struct  ism330dhcx_slv0_config_t
struct  ism330dhcx_slv1_add_t
struct  ism330dhcx_slv1_subadd_t
struct  ism330dhcx_slv1_config_t
struct  ism330dhcx_slv2_add_t
struct  ism330dhcx_slv2_subadd_t
struct  ism330dhcx_slv2_config_t
struct  ism330dhcx_slv3_add_t
struct  ism330dhcx_slv3_subadd_t
struct  ism330dhcx_slv3_config_t
struct  ism330dhcx_datawrite_slv0_t
struct  ism330dhcx_status_master_t
struct  ism330dhcx_all_sources_t
struct  ism330dhcx_pin_int1_route_t
struct  ism330dhcx_pin_int2_route_t
struct  ism330dhcx_emb_fsm_enable_t
struct  ism330dhcx_fsm_out_t
struct  ism330dhcx_emb_sh_read_t
struct  ism330dhcx_sh_cfg_write_t
struct  ism330dhcx_sh_cfg_read_t

Macros

#define ISM330DHCX_I2C_ADD_L   0xD5U
 I2C Device Address 8 bit format if SA0=0 -> D5 if SA0=1 -> D7.
#define ISM330DHCX_I2C_ADD_H   0xD7U
#define ISM330DHCX_ID   0x6BU
 Device Identification (Who am I).
#define ISM330DHCX_FUNC_CFG_ACCESS   0x01U
#define ISM330DHCX_PIN_CTRL   0x02U
#define ISM330DHCX_FIFO_CTRL1   0x07U
#define ISM330DHCX_FIFO_CTRL2   0x08U
#define ISM330DHCX_FIFO_CTRL3   0x09U
#define ISM330DHCX_FIFO_CTRL4   0x0AU
#define ISM330DHCX_COUNTER_BDR_REG1   0x0BU
#define ISM330DHCX_COUNTER_BDR_REG2   0x0CU
#define ISM330DHCX_INT1_CTRL   0x0DU
#define ISM330DHCX_INT2_CTRL   0x0EU
#define ISM330DHCX_WHO_AM_I   0x0FU
#define ISM330DHCX_CTRL1_XL   0x10U
#define ISM330DHCX_CTRL2_G   0x11U
#define ISM330DHCX_CTRL3_C   0x12U
#define ISM330DHCX_CTRL4_C   0x13U
#define ISM330DHCX_CTRL5_C   0x14U
#define ISM330DHCX_CTRL6_C   0x15U
#define ISM330DHCX_CTRL7_G   0x16U
#define ISM330DHCX_CTRL8_XL   0x17U
#define ISM330DHCX_CTRL9_XL   0x18U
#define ISM330DHCX_CTRL10_C   0x19U
#define ISM330DHCX_ALL_INT_SRC   0x1AU
#define ISM330DHCX_WAKE_UP_SRC   0x1BU
#define ISM330DHCX_TAP_SRC   0x1CU
#define ISM330DHCX_D6D_SRC   0x1DU
#define ISM330DHCX_STATUS_REG   0x1EU
#define ISM330DHCX_STATUS_SPIAUX   0x1EU
#define ISM330DHCX_OUT_TEMP_L   0x20U
#define ISM330DHCX_OUT_TEMP_H   0x21U
#define ISM330DHCX_OUTX_L_G   0x22U
#define ISM330DHCX_OUTX_H_G   0x23U
#define ISM330DHCX_OUTY_L_G   0x24U
#define ISM330DHCX_OUTY_H_G   0x25U
#define ISM330DHCX_OUTZ_L_G   0x26U
#define ISM330DHCX_OUTZ_H_G   0x27U
#define ISM330DHCX_OUTX_L_A   0x28U
#define ISM330DHCX_OUTX_H_A   0x29U
#define ISM330DHCX_OUTY_L_A   0x2AU
#define ISM330DHCX_OUTY_H_A   0x2BU
#define ISM330DHCX_OUTZ_L_A   0x2CU
#define ISM330DHCX_OUTZ_H_A   0x2DU
#define ISM330DHCX_EMB_FUNC_STATUS_MAINPAGE   0x35U
#define ISM330DHCX_FSM_STATUS_A_MAINPAGE   0x36U
#define ISM330DHCX_FSM_STATUS_B_MAINPAGE   0x37U
#define ISM330DHCX_MLC_STATUS_MAINPAGE   0x38U
#define ISM330DHCX_STATUS_MASTER_MAINPAGE   0x39U
#define ISM330DHCX_FIFO_STATUS1   0x3AU
#define ISM330DHCX_FIFO_STATUS2   0x3BU
#define ISM330DHCX_TIMESTAMP0   0x40U
#define ISM330DHCX_TIMESTAMP1   0x41U
#define ISM330DHCX_TIMESTAMP2   0x42U
#define ISM330DHCX_TIMESTAMP3   0x43U
#define ISM330DHCX_TAP_CFG0   0x56U
#define ISM330DHCX_TAP_CFG1   0x57U
#define ISM330DHCX_TAP_CFG2   0x58U
#define ISM330DHCX_TAP_THS_6D   0x59U
#define ISM330DHCX_INT_DUR2   0x5AU
#define ISM330DHCX_WAKE_UP_THS   0x5BU
#define ISM330DHCX_WAKE_UP_DUR   0x5CU
#define ISM330DHCX_FREE_FALL   0x5DU
#define ISM330DHCX_MD1_CFG   0x5EU
#define ISM330DHCX_MD2_CFG   0x5FU
#define ISM330DHCX_INTERNAL_FREQ_FINE   0x63U
#define ISM330DHCX_INT_OIS   0x6FU
#define ISM330DHCX_CTRL1_OIS   0x70U
#define ISM330DHCX_CTRL2_OIS   0x71U
#define ISM330DHCX_CTRL3_OIS   0x72U
#define ISM330DHCX_X_OFS_USR   0x73U
#define ISM330DHCX_Y_OFS_USR   0x74U
#define ISM330DHCX_Z_OFS_USR   0x75U
#define ISM330DHCX_FIFO_DATA_OUT_TAG   0x78U
#define ISM330DHCX_FIFO_DATA_OUT_X_L   0x79U
#define ISM330DHCX_FIFO_DATA_OUT_X_H   0x7AU
#define ISM330DHCX_FIFO_DATA_OUT_Y_L   0x7BU
#define ISM330DHCX_FIFO_DATA_OUT_Y_H   0x7CU
#define ISM330DHCX_FIFO_DATA_OUT_Z_L   0x7DU
#define ISM330DHCX_FIFO_DATA_OUT_Z_H   0x7EU
#define ISM330DHCX_PAGE_SEL   0x02U
#define ISM330DHCX_EMB_FUNC_EN_A   0x04U
#define ISM330DHCX_EMB_FUNC_EN_B   0x05U
#define ISM330DHCX_PAGE_ADDRESS   0x08U
#define ISM330DHCX_PAGE_VALUE   0x09U
#define ISM330DHCX_EMB_FUNC_INT1   0x0AU
#define ISM330DHCX_FSM_INT1_A   0x0BU
#define ISM330DHCX_FSM_INT1_B   0x0CU
#define ISM330DHCX_MLC_INT1   0x0DU
#define ISM330DHCX_EMB_FUNC_INT2   0x0EU
#define ISM330DHCX_FSM_INT2_A   0x0FU
#define ISM330DHCX_FSM_INT2_B   0x10U
#define ISM330DHCX_MLC_INT2   0x11U
#define ISM330DHCX_EMB_FUNC_STATUS   0x12U
#define ISM330DHCX_FSM_STATUS_A   0x13U
#define ISM330DHCX_FSM_STATUS_B   0x14U
#define ISM330DHCX_MLC_STATUS   0x15U
#define ISM330DHCX_PAGE_RW   0x17U
#define ISM330DHCX_EMB_FUNC_FIFO_CFG   0x44U
#define ISM330DHCX_FSM_ENABLE_A   0x46U
#define ISM330DHCX_FSM_ENABLE_B   0x47U
#define ISM330DHCX_FSM_LONG_COUNTER_L   0x48U
#define ISM330DHCX_FSM_LONG_COUNTER_H   0x49U
#define ISM330DHCX_FSM_LONG_COUNTER_CLEAR   0x4AU
#define ISM330DHCX_FSM_OUTS1   0x4CU
#define ISM330DHCX_FSM_OUTS2   0x4DU
#define ISM330DHCX_FSM_OUTS3   0x4EU
#define ISM330DHCX_FSM_OUTS4   0x4FU
#define ISM330DHCX_FSM_OUTS5   0x50U
#define ISM330DHCX_FSM_OUTS6   0x51U
#define ISM330DHCX_FSM_OUTS7   0x52U
#define ISM330DHCX_FSM_OUTS8   0x53U
#define ISM330DHCX_FSM_OUTS9   0x54U
#define ISM330DHCX_FSM_OUTS10   0x55U
#define ISM330DHCX_FSM_OUTS11   0x56U
#define ISM330DHCX_FSM_OUTS12   0x57U
#define ISM330DHCX_FSM_OUTS13   0x58U
#define ISM330DHCX_FSM_OUTS14   0x59U
#define ISM330DHCX_FSM_OUTS15   0x5AU
#define ISM330DHCX_FSM_OUTS16   0x5BU
#define ISM330DHCX_EMB_FUNC_ODR_CFG_B   0x5FU
#define ISM330DHCX_EMB_FUNC_ODR_CFG_C   0x60U
#define ISM330DHCX_STEP_COUNTER_L   0x62U
#define ISM330DHCX_STEP_COUNTER_H   0x63U
#define ISM330DHCX_EMB_FUNC_SRC   0x64U
#define ISM330DHCX_EMB_FUNC_INIT_A   0x66U
#define ISM330DHCX_EMB_FUNC_INIT_B   0x67U
#define ISM330DHCX_MLC0_SRC   0x70U
#define ISM330DHCX_MLC1_SRC   0x71U
#define ISM330DHCX_MLC2_SRC   0x72U
#define ISM330DHCX_MLC3_SRC   0x73U
#define ISM330DHCX_MLC4_SRC   0x74U
#define ISM330DHCX_MLC5_SRC   0x75U
#define ISM330DHCX_MLC6_SRC   0x76U
#define ISM330DHCX_MLC7_SRC   0x77U
#define ISM330DHCX_MAG_SENSITIVITY_L   0xBAU
#define ISM330DHCX_MAG_SENSITIVITY_H   0xBBU
#define ISM330DHCX_MAG_OFFX_L   0xC0U
#define ISM330DHCX_MAG_OFFX_H   0xC1U
#define ISM330DHCX_MAG_OFFY_L   0xC2U
#define ISM330DHCX_MAG_OFFY_H   0xC3U
#define ISM330DHCX_MAG_OFFZ_L   0xC4U
#define ISM330DHCX_MAG_OFFZ_H   0xC5U
#define ISM330DHCX_MAG_SI_XX_L   0xC6U
#define ISM330DHCX_MAG_SI_XX_H   0xC7U
#define ISM330DHCX_MAG_SI_XY_L   0xC8U
#define ISM330DHCX_MAG_SI_XY_H   0xC9U
#define ISM330DHCX_MAG_SI_XZ_L   0xCAU
#define ISM330DHCX_MAG_SI_XZ_H   0xCBU
#define ISM330DHCX_MAG_SI_YY_L   0xCCU
#define ISM330DHCX_MAG_SI_YY_H   0xCDU
#define ISM330DHCX_MAG_SI_YZ_L   0xCEU
#define ISM330DHCX_MAG_SI_YZ_H   0xCFU
#define ISM330DHCX_MAG_SI_ZZ_L   0xD0U
#define ISM330DHCX_MAG_SI_ZZ_H   0xD1U
#define ISM330DHCX_MAG_CFG_A   0xD4U
#define ISM330DHCX_MAG_CFG_B   0xD5U
#define ISM330DHCX_FSM_LC_TIMEOUT_L   0x17AU
#define ISM330DHCX_FSM_LC_TIMEOUT_H   0x17BU
#define ISM330DHCX_FSM_PROGRAMS   0x17CU
#define ISM330DHCX_FSM_START_ADD_L   0x17EU
#define ISM330DHCX_FSM_START_ADD_H   0x17FU
#define ISM330DHCX_PEDO_CMD_REG   0x183U
#define ISM330DHCX_PEDO_DEB_STEPS_CONF   0x184U
#define ISM330DHCX_PEDO_SC_DELTAT_L   0x1D0U
#define ISM330DHCX_PEDO_SC_DELTAT_H   0x1D1U
#define ISM330DHCX_MLC_MAG_SENSITIVITY_L   0x1E8U
#define ISM330DHCX_MLC_MAG_SENSITIVITY_H   0x1E9U
#define ISM330DHCX_SENSOR_HUB_1   0x02U
#define ISM330DHCX_SENSOR_HUB_2   0x03U
#define ISM330DHCX_SENSOR_HUB_3   0x04U
#define ISM330DHCX_SENSOR_HUB_4   0x05U
#define ISM330DHCX_SENSOR_HUB_5   0x06U
#define ISM330DHCX_SENSOR_HUB_6   0x07U
#define ISM330DHCX_SENSOR_HUB_7   0x08U
#define ISM330DHCX_SENSOR_HUB_8   0x09U
#define ISM330DHCX_SENSOR_HUB_9   0x0AU
#define ISM330DHCX_SENSOR_HUB_10   0x0BU
#define ISM330DHCX_SENSOR_HUB_11   0x0CU
#define ISM330DHCX_SENSOR_HUB_12   0x0DU
#define ISM330DHCX_SENSOR_HUB_13   0x0EU
#define ISM330DHCX_SENSOR_HUB_14   0x0FU
#define ISM330DHCX_SENSOR_HUB_15   0x10U
#define ISM330DHCX_SENSOR_HUB_16   0x11U
#define ISM330DHCX_SENSOR_HUB_17   0x12U
#define ISM330DHCX_SENSOR_HUB_18   0x13U
#define ISM330DHCX_MASTER_CONFIG   0x14U
#define ISM330DHCX_SLV0_ADD   0x15U
#define ISM330DHCX_SLV0_SUBADD   0x16U
#define ISM330DHCX_SLV0_CONFIG   0x17U
#define ISM330DHCX_SLV1_ADD   0x18U
#define ISM330DHCX_SLV1_SUBADD   0x19U
#define ISM330DHCX_SLV1_CONFIG   0x1AU
#define ISM330DHCX_SLV2_ADD   0x1BU
#define ISM330DHCX_SLV2_SUBADD   0x1CU
#define ISM330DHCX_SLV2_CONFIG   0x1DU
#define ISM330DHCX_SLV3_ADD   0x1EU
#define ISM330DHCX_SLV3_SUBADD   0x1FU
#define ISM330DHCX_SLV3_CONFIG   0x20U
#define ISM330DHCX_DATAWRITE_SLV0   0x21U
#define ISM330DHCX_STATUS_MASTER   0x22U

Enumerations

enum  ism330dhcx_fs_xl_t { ISM330DHCX_2g = 0 , ISM330DHCX_16g = 1 , ISM330DHCX_4g = 2 , ISM330DHCX_8g = 3 }
enum  ism330dhcx_odr_xl_t {
  ISM330DHCX_XL_ODR_OFF = 0 , ISM330DHCX_XL_ODR_12Hz5 = 1 , ISM330DHCX_XL_ODR_26Hz = 2 , ISM330DHCX_XL_ODR_52Hz = 3 ,
  ISM330DHCX_XL_ODR_104Hz = 4 , ISM330DHCX_XL_ODR_208Hz = 5 , ISM330DHCX_XL_ODR_416Hz = 6 , ISM330DHCX_XL_ODR_833Hz = 7 ,
  ISM330DHCX_XL_ODR_1666Hz = 8 , ISM330DHCX_XL_ODR_3332Hz = 9 , ISM330DHCX_XL_ODR_6667Hz = 10 , ISM330DHCX_XL_ODR_1Hz6 = 11
}
enum  ism330dhcx_fs_g_t {
  ISM330DHCX_125dps = 2 , ISM330DHCX_250dps = 0 , ISM330DHCX_500dps = 4 , ISM330DHCX_1000dps = 8 ,
  ISM330DHCX_2000dps = 12 , ISM330DHCX_4000dps = 1
}
enum  ism330dhcx_odr_g_t {
  ISM330DHCX_GY_ODR_OFF = 0 , ISM330DHCX_GY_ODR_12Hz5 = 1 , ISM330DHCX_GY_ODR_26Hz = 2 , ISM330DHCX_GY_ODR_52Hz = 3 ,
  ISM330DHCX_GY_ODR_104Hz = 4 , ISM330DHCX_GY_ODR_208Hz = 5 , ISM330DHCX_GY_ODR_416Hz = 6 , ISM330DHCX_GY_ODR_833Hz = 7 ,
  ISM330DHCX_GY_ODR_1666Hz = 8 , ISM330DHCX_GY_ODR_3332Hz = 9 , ISM330DHCX_GY_ODR_6667Hz = 10
}
enum  ism330dhcx_usr_off_w_t { ISM330DHCX_LSb_1mg = 0 , ISM330DHCX_LSb_16mg = 1 }
enum  ism330dhcx_xl_hm_mode_t { ISM330DHCX_HIGH_PERFORMANCE_MD = 0 , ISM330DHCX_LOW_NORMAL_POWER_MD = 1 }
enum  ism330dhcx_g_hm_mode_t { ISM330DHCX_GY_HIGH_PERFORMANCE = 0 , ISM330DHCX_GY_NORMAL = 1 }
enum  ism330dhcx_rounding_t { ISM330DHCX_NO_ROUND = 0 , ISM330DHCX_ROUND_XL = 1 , ISM330DHCX_ROUND_GY = 2 , ISM330DHCX_ROUND_GY_XL = 3 }
enum  ism330dhcx_reg_access_t { ISM330DHCX_USER_BANK = 0 , ISM330DHCX_SENSOR_HUB_BANK = 1 , ISM330DHCX_EMBEDDED_FUNC_BANK = 2 }
enum  ism330dhcx_dataready_pulsed_t { ISM330DHCX_DRDY_LATCHED = 0 , ISM330DHCX_DRDY_PULSED = 1 }
enum  ism330dhcx_st_xl_t { ISM330DHCX_XL_ST_DISABLE = 0 , ISM330DHCX_XL_ST_POSITIVE = 1 , ISM330DHCX_XL_ST_NEGATIVE = 2 }
enum  ism330dhcx_st_g_t { ISM330DHCX_GY_ST_DISABLE = 0 , ISM330DHCX_GY_ST_POSITIVE = 1 , ISM330DHCX_GY_ST_NEGATIVE = 3 }
enum  ism330dhcx_ftype_t {
  ISM330DHCX_ULTRA_LIGHT = 0 , ISM330DHCX_VERY_LIGHT = 1 , ISM330DHCX_LIGHT = 2 , ISM330DHCX_MEDIUM = 3 ,
  ISM330DHCX_STRONG = 4 , ISM330DHCX_VERY_STRONG = 5 , ISM330DHCX_AGGRESSIVE = 6 , ISM330DHCX_XTREME = 7
}
enum  ism330dhcx_hp_slope_xl_en_t {
  ISM330DHCX_HP_PATH_DISABLE_ON_OUT = 0x00 , ISM330DHCX_SLOPE_ODR_DIV_4 = 0x10 , ISM330DHCX_HP_ODR_DIV_10 = 0x11 , ISM330DHCX_HP_ODR_DIV_20 = 0x12 ,
  ISM330DHCX_HP_ODR_DIV_45 = 0x13 , ISM330DHCX_HP_ODR_DIV_100 = 0x14 , ISM330DHCX_HP_ODR_DIV_200 = 0x15 , ISM330DHCX_HP_ODR_DIV_400 = 0x16 ,
  ISM330DHCX_HP_ODR_DIV_800 = 0x17 , ISM330DHCX_HP_REF_MD_ODR_DIV_10 = 0x31 , ISM330DHCX_HP_REF_MD_ODR_DIV_20 = 0x32 , ISM330DHCX_HP_REF_MD_ODR_DIV_45 = 0x33 ,
  ISM330DHCX_HP_REF_MD_ODR_DIV_100 = 0x34 , ISM330DHCX_HP_REF_MD_ODR_DIV_200 = 0x35 , ISM330DHCX_HP_REF_MD_ODR_DIV_400 = 0x36 , ISM330DHCX_HP_REF_MD_ODR_DIV_800 = 0x37 ,
  ISM330DHCX_LP_ODR_DIV_10 = 0x01 , ISM330DHCX_LP_ODR_DIV_20 = 0x02 , ISM330DHCX_LP_ODR_DIV_45 = 0x03 , ISM330DHCX_LP_ODR_DIV_100 = 0x04 ,
  ISM330DHCX_LP_ODR_DIV_200 = 0x05 , ISM330DHCX_LP_ODR_DIV_400 = 0x06 , ISM330DHCX_LP_ODR_DIV_800 = 0x07
}
enum  ism330dhcx_slope_fds_t { ISM330DHCX_USE_SLOPE = 0 , ISM330DHCX_USE_HPF = 1 }
enum  ism330dhcx_hpm_g_t {
  ISM330DHCX_HP_FILTER_NONE = 0x00 , ISM330DHCX_HP_FILTER_16mHz = 0x80 , ISM330DHCX_HP_FILTER_65mHz = 0x81 , ISM330DHCX_HP_FILTER_260mHz = 0x82 ,
  ISM330DHCX_HP_FILTER_1Hz04 = 0x83
}
enum  ism330dhcx_ois_pu_dis_t { ISM330DHCX_AUX_PULL_UP_DISC = 0 , ISM330DHCX_AUX_PULL_UP_CONNECT = 1 }
enum  ism330dhcx_ois_on_t { ISM330DHCX_AUX_ON = 1 , ISM330DHCX_AUX_ON_BY_AUX_INTERFACE = 0 }
enum  ism330dhcx_st_xl_ois_t { ISM330DHCX_AUX_XL_DISABLE = 0 , ISM330DHCX_AUX_XL_POS = 1 , ISM330DHCX_AUX_XL_NEG = 2 }
enum  ism330dhcx_den_lh_ois_t { ISM330DHCX_AUX_DEN_ACTIVE_LOW = 0 , ISM330DHCX_AUX_DEN_ACTIVE_HIGH = 1 }
enum  ism330dhcx_lvl2_ois_t { ISM330DHCX_AUX_DEN_DISABLE = 0 , ISM330DHCX_AUX_DEN_LEVEL_LATCH = 3 , ISM330DHCX_AUX_DEN_LEVEL_TRIG = 2 }
enum  ism330dhcx_ois_en_spi2_t { ISM330DHCX_AUX_DISABLE = 0 , ISM330DHCX_MODE_3_GY = 1 , ISM330DHCX_MODE_4_GY_XL = 3 }
enum  ism330dhcx_fs_g_ois_t {
  ISM330DHCX_125dps_AUX = 0x04 , ISM330DHCX_250dps_AUX = 0x00 , ISM330DHCX_500dps_AUX = 0x01 , ISM330DHCX_1000dps_AUX = 0x02 ,
  ISM330DHCX_2000dps_AUX = 0x03
}
enum  ism330dhcx_sim_ois_t { ISM330DHCX_AUX_SPI_4_WIRE = 0 , ISM330DHCX_AUX_SPI_3_WIRE = 1 }
enum  ism330dhcx_ftype_ois_t { ISM330DHCX_351Hz39 = 0 , ISM330DHCX_236Hz63 = 1 , ISM330DHCX_172Hz70 = 2 , ISM330DHCX_937Hz91 = 3 }
enum  ism330dhcx_hpm_ois_t {
  ISM330DHCX_AUX_HP_DISABLE = 0x00 , ISM330DHCX_AUX_HP_Hz016 = 0x10 , ISM330DHCX_AUX_HP_Hz065 = 0x11 , ISM330DHCX_AUX_HP_Hz260 = 0x12 ,
  ISM330DHCX_AUX_HP_1Hz040 = 0x13
}
enum  ism330dhcx_st_ois_clampdis_t { ISM330DHCX_ENABLE_CLAMP = 0 , ISM330DHCX_DISABLE_CLAMP = 1 }
enum  ism330dhcx_st_ois_t { ISM330DHCX_AUX_GY_DISABLE = 0 , ISM330DHCX_AUX_GY_POS = 1 , ISM330DHCX_AUX_GY_NEG = 3 }
enum  ism330dhcx_filter_xl_conf_ois_t {
  ISM330DHCX_631Hz = 0 , ISM330DHCX_295Hz = 1 , ISM330DHCX_140Hz = 2 , ISM330DHCX_68Hz2 = 3 ,
  ISM330DHCX_33Hz6 = 4 , ISM330DHCX_16Hz7 = 5 , ISM330DHCX_8Hz3 = 6 , ISM330DHCX_4Hz11 = 7
}
enum  ism330dhcx_fs_xl_ois_t { ISM330DHCX_AUX_2g = 0 , ISM330DHCX_AUX_16g = 1 , ISM330DHCX_AUX_4g = 2 , ISM330DHCX_AUX_8g = 3 }
enum  ism330dhcx_sdo_pu_en_t { ISM330DHCX_PULL_UP_DISC = 0 , ISM330DHCX_PULL_UP_CONNECT = 1 }
enum  ism330dhcx_sim_t { ISM330DHCX_SPI_4_WIRE = 0 , ISM330DHCX_SPI_3_WIRE = 1 }
enum  ism330dhcx_i2c_disable_t { ISM330DHCX_I2C_ENABLE = 0 , ISM330DHCX_I2C_DISABLE = 1 }
enum  ism330dhcx_pp_od_t { ISM330DHCX_PUSH_PULL = 0 , ISM330DHCX_OPEN_DRAIN = 1 }
enum  ism330dhcx_h_lactive_t { ISM330DHCX_ACTIVE_HIGH = 0 , ISM330DHCX_ACTIVE_LOW = 1 }
enum  ism330dhcx_lir_t { ISM330DHCX_ALL_INT_PULSED = 0 , ISM330DHCX_BASE_LATCHED_EMB_PULSED = 1 , ISM330DHCX_BASE_PULSED_EMB_LATCHED = 2 , ISM330DHCX_ALL_INT_LATCHED = 3 }
enum  ism330dhcx_wake_ths_w_t { ISM330DHCX_LSb_FS_DIV_64 = 0 , ISM330DHCX_LSb_FS_DIV_256 = 1 }
enum  ism330dhcx_sleep_status_on_int_t { ISM330DHCX_DRIVE_SLEEP_CHG_EVENT = 0 , ISM330DHCX_DRIVE_SLEEP_STATUS = 1 }
enum  ism330dhcx_inact_en_t { ISM330DHCX_XL_AND_GY_NOT_AFFECTED = 0 , ISM330DHCX_XL_12Hz5_GY_NOT_AFFECTED = 1 , ISM330DHCX_XL_12Hz5_GY_SLEEP = 2 , ISM330DHCX_XL_12Hz5_GY_PD = 3 }
enum  ism330dhcx_tap_priority_t {
  ISM330DHCX_XYZ = 0 , ISM330DHCX_YXZ = 1 , ISM330DHCX_XZY = 2 , ISM330DHCX_ZYX = 3 ,
  ISM330DHCX_YZX = 5 , ISM330DHCX_ZXY = 6
}
enum  ism330dhcx_single_double_tap_t { ISM330DHCX_ONLY_SINGLE = 0 , ISM330DHCX_BOTH_SINGLE_DOUBLE = 1 }
enum  ism330dhcx_sixd_ths_t { ISM330DHCX_DEG_80 = 0 , ISM330DHCX_DEG_70 = 1 , ISM330DHCX_DEG_60 = 2 , ISM330DHCX_DEG_50 = 3 }
enum  ism330dhcx_ff_ths_t {
  ISM330DHCX_FF_TSH_156mg = 0 , ISM330DHCX_FF_TSH_219mg = 1 , ISM330DHCX_FF_TSH_250mg = 2 , ISM330DHCX_FF_TSH_312mg = 3 ,
  ISM330DHCX_FF_TSH_344mg = 4 , ISM330DHCX_FF_TSH_406mg = 5 , ISM330DHCX_FF_TSH_469mg = 6 , ISM330DHCX_FF_TSH_500mg = 7
}
enum  ism330dhcx_uncoptr_rate_t {
  ISM330DHCX_CMP_DISABLE = 0x00 , ISM330DHCX_CMP_ALWAYS = 0x04 , ISM330DHCX_CMP_8_TO_1 = 0x05 , ISM330DHCX_CMP_16_TO_1 = 0x06 ,
  ISM330DHCX_CMP_32_TO_1 = 0x07
}
enum  ism330dhcx_bdr_xl_t {
  ISM330DHCX_XL_NOT_BATCHED = 0 , ISM330DHCX_XL_BATCHED_AT_12Hz5 = 1 , ISM330DHCX_XL_BATCHED_AT_26Hz = 2 , ISM330DHCX_XL_BATCHED_AT_52Hz = 3 ,
  ISM330DHCX_XL_BATCHED_AT_104Hz = 4 , ISM330DHCX_XL_BATCHED_AT_208Hz = 5 , ISM330DHCX_XL_BATCHED_AT_417Hz = 6 , ISM330DHCX_XL_BATCHED_AT_833Hz = 7 ,
  ISM330DHCX_XL_BATCHED_AT_1667Hz = 8 , ISM330DHCX_XL_BATCHED_AT_3333Hz = 9 , ISM330DHCX_XL_BATCHED_AT_6667Hz = 10 , ISM330DHCX_XL_BATCHED_AT_6Hz5 = 11
}
enum  ism330dhcx_bdr_gy_t {
  ISM330DHCX_GY_NOT_BATCHED = 0 , ISM330DHCX_GY_BATCHED_AT_12Hz5 = 1 , ISM330DHCX_GY_BATCHED_AT_26Hz = 2 , ISM330DHCX_GY_BATCHED_AT_52Hz = 3 ,
  ISM330DHCX_GY_BATCHED_AT_104Hz = 4 , ISM330DHCX_GY_BATCHED_AT_208Hz = 5 , ISM330DHCX_GY_BATCHED_AT_417Hz = 6 , ISM330DHCX_GY_BATCHED_AT_833Hz = 7 ,
  ISM330DHCX_GY_BATCHED_AT_1667Hz = 8 , ISM330DHCX_GY_BATCHED_AT_3333Hz = 9 , ISM330DHCX_GY_BATCHED_AT_6667Hz = 10 , ISM330DHCX_GY_BATCHED_6Hz5 = 11
}
enum  ism330dhcx_fifo_mode_t {
  ISM330DHCX_BYPASS_MODE = 0 , ISM330DHCX_FIFO_MODE = 1 , ISM330DHCX_STREAM_TO_FIFO_MODE = 3 , ISM330DHCX_BYPASS_TO_STREAM_MODE = 4 ,
  ISM330DHCX_STREAM_MODE = 6 , ISM330DHCX_BYPASS_TO_FIFO_MODE = 7
}
enum  ism330dhcx_odr_t_batch_t { ISM330DHCX_TEMP_NOT_BATCHED = 0 , ISM330DHCX_TEMP_BATCHED_AT_52Hz = 1 , ISM330DHCX_TEMP_BATCHED_AT_12Hz5 = 2 , ISM330DHCX_TEMP_BATCHED_AT_1Hz6 = 3 }
enum  ism330dhcx_odr_ts_batch_t { ISM330DHCX_NO_DECIMATION = 0 , ISM330DHCX_DEC_1 = 1 , ISM330DHCX_DEC_8 = 2 , ISM330DHCX_DEC_32 = 3 }
enum  ism330dhcx_trig_counter_bdr_t { ISM330DHCX_XL_BATCH_EVENT = 0 , ISM330DHCX_GYRO_BATCH_EVENT = 1 }
enum  ism330dhcx_fifo_tag_t {
  ISM330DHCX_GYRO_NC_TAG = 1 , ISM330DHCX_XL_NC_TAG , ISM330DHCX_TEMPERATURE_TAG , ISM330DHCX_TIMESTAMP_TAG ,
  ISM330DHCX_CFG_CHANGE_TAG , ISM330DHCX_XL_NC_T_2_TAG , ISM330DHCX_XL_NC_T_1_TAG , ISM330DHCX_XL_2XC_TAG ,
  ISM330DHCX_XL_3XC_TAG , ISM330DHCX_GYRO_NC_T_2_TAG , ISM330DHCX_GYRO_NC_T_1_TAG , ISM330DHCX_GYRO_2XC_TAG ,
  ISM330DHCX_GYRO_3XC_TAG , ISM330DHCX_SENSORHUB_SLAVE0_TAG , ISM330DHCX_SENSORHUB_SLAVE1_TAG , ISM330DHCX_SENSORHUB_SLAVE2_TAG ,
  ISM330DHCX_SENSORHUB_SLAVE3_TAG , ISM330DHCX_STEP_CPUNTER_TAG , ISM330DHCX_GAME_ROTATION_TAG , ISM330DHCX_GEOMAG_ROTATION_TAG ,
  ISM330DHCX_ROTATION_TAG , ISM330DHCX_SENSORHUB_NACK_TAG = 0x19
}
enum  ism330dhcx_den_mode_t {
  ISM330DHCX_DEN_DISABLE = 0 , ISM330DHCX_LEVEL_FIFO = 6 , ISM330DHCX_LEVEL_LETCHED = 3 , ISM330DHCX_LEVEL_TRIGGER = 2 ,
  ISM330DHCX_EDGE_TRIGGER = 4
}
enum  ism330dhcx_den_lh_t { ISM330DHCX_DEN_ACT_LOW = 0 , ISM330DHCX_DEN_ACT_HIGH = 1 }
enum  ism330dhcx_den_xl_g_t { ISM330DHCX_STAMP_IN_GY_DATA = 0 , ISM330DHCX_STAMP_IN_XL_DATA = 1 , ISM330DHCX_STAMP_IN_GY_XL_DATA = 2 }
enum  ism330dhcx_carry_count_en_t { ISM330DHCX_EVERY_STEP = 0 , ISM330DHCX_COUNT_OVERFLOW = 1 }
enum  ism330dhcx_mag_z_axis_t {
  ISM330DHCX_Z_EQ_Y = 0 , ISM330DHCX_Z_EQ_MIN_Y = 1 , ISM330DHCX_Z_EQ_X = 2 , ISM330DHCX_Z_EQ_MIN_X = 3 ,
  ISM330DHCX_Z_EQ_MIN_Z = 4 , ISM330DHCX_Z_EQ_Z = 5
}
enum  ism330dhcx_mag_y_axis_t {
  ISM330DHCX_Y_EQ_Y = 0 , ISM330DHCX_Y_EQ_MIN_Y = 1 , ISM330DHCX_Y_EQ_X = 2 , ISM330DHCX_Y_EQ_MIN_X = 3 ,
  ISM330DHCX_Y_EQ_MIN_Z = 4 , ISM330DHCX_Y_EQ_Z = 5
}
enum  ism330dhcx_mag_x_axis_t {
  ISM330DHCX_X_EQ_Y = 0 , ISM330DHCX_X_EQ_MIN_Y = 1 , ISM330DHCX_X_EQ_X = 2 , ISM330DHCX_X_EQ_MIN_X = 3 ,
  ISM330DHCX_X_EQ_MIN_Z = 4 , ISM330DHCX_X_EQ_Z = 5
}
enum  ism330dhcx_fsm_lc_clr_t { ISM330DHCX_LC_NORMAL = 0 , ISM330DHCX_LC_CLEAR = 1 , ISM330DHCX_LC_CLEAR_DONE = 2 }
enum  ism330dhcx_fsm_odr_t { ISM330DHCX_ODR_FSM_12Hz5 = 0 , ISM330DHCX_ODR_FSM_26Hz = 1 , ISM330DHCX_ODR_FSM_52Hz = 2 , ISM330DHCX_ODR_FSM_104Hz = 3 }
enum  ism330dhcx_mlc_odr_t { ISM330DHCX_ODR_PRGS_12Hz5 = 0 , ISM330DHCX_ODR_PRGS_26Hz = 1 , ISM330DHCX_ODR_PRGS_52Hz = 2 , ISM330DHCX_ODR_PRGS_104Hz = 3 }
enum  ism330dhcx_aux_sens_on_t { ISM330DHCX_SLV_0 = 0 , ISM330DHCX_SLV_0_1 = 1 , ISM330DHCX_SLV_0_1_2 = 2 , ISM330DHCX_SLV_0_1_2_3 = 3 }
enum  ism330dhcx_shub_pu_en_t { ISM330DHCX_EXT_PULL_UP = 0 , ISM330DHCX_INTERNAL_PULL_UP = 1 }
enum  ism330dhcx_start_config_t { ISM330DHCX_EXT_ON_INT2_PIN = 1 , ISM330DHCX_XL_GY_DRDY = 0 }
enum  ism330dhcx_write_once_t { ISM330DHCX_EACH_SH_CYCLE = 0 , ISM330DHCX_ONLY_FIRST_CYCLE = 1 }
enum  ism330dhcx_shub_odr_t { ISM330DHCX_SH_ODR_104Hz = 0 , ISM330DHCX_SH_ODR_52Hz = 1 , ISM330DHCX_SH_ODR_26Hz = 2 , ISM330DHCX_SH_ODR_13Hz = 3 }

Functions

int32_t ism330dhcx_read_reg (stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
 Read generic device register.
int32_t ism330dhcx_write_reg (stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
 Write generic device register.
float ism330dhcx_from_fs2g_to_mg (int16_t lsb)
float ism330dhcx_from_fs4g_to_mg (int16_t lsb)
float ism330dhcx_from_fs8g_to_mg (int16_t lsb)
float ism330dhcx_from_fs16g_to_mg (int16_t lsb)
float ism330dhcx_from_fs125dps_to_mdps (int16_t lsb)
float ism330dhcx_from_fs250dps_to_mdps (int16_t lsb)
float ism330dhcx_from_fs500dps_to_mdps (int16_t lsb)
float ism330dhcx_from_fs1000dps_to_mdps (int16_t lsb)
float ism330dhcx_from_fs2000dps_to_mdps (int16_t lsb)
float ism330dhcx_from_fs4000dps_to_mdps (int16_t lsb)
float ism330dhcx_from_lsb_to_celsius (int16_t lsb)
float ism330dhcx_from_lsb_to_nsec (int32_t lsb)
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.
int32_t ism330dhcx_timestamp_rst (stmdev_ctx_t *ctx)
 Reset timestamp counter.
int32_t ism330dhcx_timestamp_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables timestamp counter.
int32_t ism330dhcx_timestamp_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables timestamp counter.
int32_t ism330dhcx_timestamp_raw_get (stmdev_ctx_t *ctx, uint32_t *val)
 Timestamp first data output register (r).
int32_t ism330dhcx_rounding_mode_set (stmdev_ctx_t *ctx, ism330dhcx_rounding_t val)
 Circular burst-mode (rounding) read of the output registers.
int32_t ism330dhcx_rounding_mode_get (stmdev_ctx_t *ctx, ism330dhcx_rounding_t *val)
 Gyroscope UI chain full-scale selection.
int32_t ism330dhcx_temperature_raw_get (stmdev_ctx_t *ctx, int16_t *val)
 Temperature data output register (r).
int32_t ism330dhcx_angular_rate_raw_get (stmdev_ctx_t *ctx, int16_t *val)
 Angular rate sensor.
int32_t ism330dhcx_acceleration_raw_get (stmdev_ctx_t *ctx, int16_t *val)
 Linear acceleration output register.
int32_t ism330dhcx_fifo_out_raw_get (stmdev_ctx_t *ctx, uint8_t *buff)
 FIFO data output.
int32_t ism330dhcx_mlc_out_get (stmdev_ctx_t *ctx, uint8_t *buff)
 prgsens_out: [get] Output value of all MLCx decision trees.
int32_t ism330dhcx_device_conf_set (stmdev_ctx_t *ctx, uint8_t val)
 DEVICE_CONF bit configuration[set].
int32_t ism330dhcx_device_conf_get (stmdev_ctx_t *ctx, uint8_t *val)
 DEVICE_CONF bit configuration[get].
int32_t ism330dhcx_odr_cal_reg_set (stmdev_ctx_t *ctx, uint8_t val)
 Difference in percentage of the effective ODR (and timestamp rate) with respect to the typical.
int32_t ism330dhcx_odr_cal_reg_get (stmdev_ctx_t *ctx, uint8_t *val)
 Difference in percentage of the effective ODR (and timestamp rate) with respect to the typical.
int32_t ism330dhcx_number_of_steps_get (stmdev_ctx_t *ctx, uint16_t *val)
 Step counter output register.
int32_t ism330dhcx_steps_reset (stmdev_ctx_t *ctx)
 Reset step counter register.
int32_t ism330dhcx_mem_bank_set (stmdev_ctx_t *ctx, ism330dhcx_reg_access_t val)
 Enable access to the embedded functions/sensor hub configuration registers.
int32_t ism330dhcx_mem_bank_get (stmdev_ctx_t *ctx, ism330dhcx_reg_access_t *val)
 Enable access to the embedded functions/sensor hub configuration registers.
int32_t ism330dhcx_ln_pg_write_byte (stmdev_ctx_t *ctx, uint16_t address, uint8_t *val)
 Write a line(byte) in a page.
int32_t ism330dhcx_ln_pg_write (stmdev_ctx_t *ctx, uint16_t address, uint8_t *buf, uint8_t len)
 Write buffer in a page.
int32_t ism330dhcx_ln_pg_read_byte (stmdev_ctx_t *ctx, uint16_t add, uint8_t *val)
 Read a line(byte) in a page.
int32_t ism330dhcx_ln_pg_read (stmdev_ctx_t *ctx, uint16_t address, uint8_t *val)
int32_t ism330dhcx_data_ready_mode_set (stmdev_ctx_t *ctx, ism330dhcx_dataready_pulsed_t val)
 Data-ready pulsed / letched mode.
int32_t ism330dhcx_data_ready_mode_get (stmdev_ctx_t *ctx, ism330dhcx_dataready_pulsed_t *val)
 Data-ready pulsed / letched mode.
int32_t ism330dhcx_device_id_get (stmdev_ctx_t *ctx, uint8_t *buff)
 Device Who am I.
int32_t ism330dhcx_reset_set (stmdev_ctx_t *ctx, uint8_t val)
 Software reset.
int32_t ism330dhcx_reset_get (stmdev_ctx_t *ctx, uint8_t *val)
 Software reset.
int32_t ism330dhcx_auto_increment_set (stmdev_ctx_t *ctx, uint8_t val)
 Register address automatically incremented during a multiple byte access with a serial interface.
int32_t ism330dhcx_auto_increment_get (stmdev_ctx_t *ctx, uint8_t *val)
 Register address automatically incremented during a multiple byte access with a serial interface.
int32_t ism330dhcx_boot_set (stmdev_ctx_t *ctx, uint8_t val)
 Reboot memory content.
int32_t ism330dhcx_boot_get (stmdev_ctx_t *ctx, uint8_t *val)
 Reboot memory content.
int32_t ism330dhcx_xl_self_test_set (stmdev_ctx_t *ctx, ism330dhcx_st_xl_t val)
 Linear acceleration sensor self-test enable.
int32_t ism330dhcx_xl_self_test_get (stmdev_ctx_t *ctx, ism330dhcx_st_xl_t *val)
 Linear acceleration sensor self-test enable.
int32_t ism330dhcx_gy_self_test_set (stmdev_ctx_t *ctx, ism330dhcx_st_g_t val)
 Angular rate sensor self-test enable.
int32_t ism330dhcx_gy_self_test_get (stmdev_ctx_t *ctx, ism330dhcx_st_g_t *val)
 Angular rate sensor self-test enable.
int32_t ism330dhcx_xl_filter_lp2_set (stmdev_ctx_t *ctx, uint8_t val)
 Accelerometer output from LPF2 filtering stage selection.
int32_t ism330dhcx_xl_filter_lp2_get (stmdev_ctx_t *ctx, uint8_t *val)
 Accelerometer output from LPF2 filtering stage selection.
int32_t ism330dhcx_gy_filter_lp1_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables gyroscope digital LPF1 if auxiliary SPI is disabled; the bandwidth can be selected through FTYPE [2:0] in CTRL6_C.
int32_t ism330dhcx_gy_filter_lp1_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables gyroscope digital LPF1 if auxiliary SPI is disabled; the bandwidth can be selected through FTYPE [2:0] in CTRL6_C.
int32_t ism330dhcx_filter_settling_mask_set (stmdev_ctx_t *ctx, uint8_t val)
 Mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked).
int32_t ism330dhcx_filter_settling_mask_get (stmdev_ctx_t *ctx, uint8_t *val)
 Mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked).
int32_t ism330dhcx_gy_lp1_bandwidth_set (stmdev_ctx_t *ctx, ism330dhcx_ftype_t val)
 Gyroscope low pass filter 1 bandwidth.
int32_t ism330dhcx_gy_lp1_bandwidth_get (stmdev_ctx_t *ctx, ism330dhcx_ftype_t *val)
 Gyroscope low pass filter 1 bandwidth.
int32_t ism330dhcx_xl_lp2_on_6d_set (stmdev_ctx_t *ctx, uint8_t val)
 Low pass filter 2 on 6D function selection.
int32_t ism330dhcx_xl_lp2_on_6d_get (stmdev_ctx_t *ctx, uint8_t *val)
 Low pass filter 2 on 6D function selection.
int32_t ism330dhcx_xl_hp_path_on_out_set (stmdev_ctx_t *ctx, ism330dhcx_hp_slope_xl_en_t val)
 Accelerometer slope filter / high-pass filter selection on output.
int32_t ism330dhcx_xl_hp_path_on_out_get (stmdev_ctx_t *ctx, ism330dhcx_hp_slope_xl_en_t *val)
 Accelerometer slope filter / high-pass filter selection on output.
int32_t ism330dhcx_xl_fast_settling_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables accelerometer LPF2 and HPF fast-settling mode.
int32_t ism330dhcx_xl_fast_settling_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables accelerometer LPF2 and HPF fast-settling mode.
int32_t ism330dhcx_xl_hp_path_internal_set (stmdev_ctx_t *ctx, ism330dhcx_slope_fds_t val)
 HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions.
int32_t ism330dhcx_xl_hp_path_internal_get (stmdev_ctx_t *ctx, ism330dhcx_slope_fds_t *val)
 HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions.
int32_t ism330dhcx_gy_hp_path_internal_set (stmdev_ctx_t *ctx, ism330dhcx_hpm_g_t val)
 Enables gyroscope digital high-pass filter.
int32_t ism330dhcx_gy_hp_path_internal_get (stmdev_ctx_t *ctx, ism330dhcx_hpm_g_t *val)
 Enables gyroscope digital high-pass filter.
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_pin_int1_route_set (stmdev_ctx_t *ctx, ism330dhcx_pin_int1_route_t *val)
 Select the signal that need to route on int1 pad[set].
int32_t ism330dhcx_pin_int1_route_get (stmdev_ctx_t *ctx, ism330dhcx_pin_int1_route_t *val)
 Select the signal that need to route on int1 pad.
int32_t ism330dhcx_pin_int2_route_set (stmdev_ctx_t *ctx, ism330dhcx_pin_int2_route_t *val)
 Select the signal that need to route on int2 pad[set].
int32_t ism330dhcx_pin_int2_route_get (stmdev_ctx_t *ctx, ism330dhcx_pin_int2_route_t *val)
 Select the signal that need to route on int2 pad.
int32_t ism330dhcx_pin_mode_set (stmdev_ctx_t *ctx, ism330dhcx_pp_od_t val)
 Push-pull/open drain selection on interrupt pads.
int32_t ism330dhcx_pin_mode_get (stmdev_ctx_t *ctx, ism330dhcx_pp_od_t *val)
 Push-pull/open drain selection on interrupt pads.
int32_t ism330dhcx_pin_polarity_set (stmdev_ctx_t *ctx, ism330dhcx_h_lactive_t val)
 Interrupt active-high/low.
int32_t ism330dhcx_pin_polarity_get (stmdev_ctx_t *ctx, ism330dhcx_h_lactive_t *val)
 Interrupt active-high/low.
int32_t ism330dhcx_all_on_int1_set (stmdev_ctx_t *ctx, uint8_t val)
 All interrupt signals become available on INT1 pin.
int32_t ism330dhcx_all_on_int1_get (stmdev_ctx_t *ctx, uint8_t *val)
 All interrupt signals become available on INT1 pin.
int32_t ism330dhcx_int_notification_set (stmdev_ctx_t *ctx, ism330dhcx_lir_t val)
 All interrupt signals notification mode.
int32_t ism330dhcx_int_notification_get (stmdev_ctx_t *ctx, ism330dhcx_lir_t *val)
 All interrupt signals notification mode.
int32_t ism330dhcx_wkup_ths_weight_set (stmdev_ctx_t *ctx, ism330dhcx_wake_ths_w_t val)
 Weight of 1 LSB of wakeup threshold.
int32_t ism330dhcx_wkup_ths_weight_get (stmdev_ctx_t *ctx, ism330dhcx_wake_ths_w_t *val)
 Weight of 1 LSB of wakeup threshold.
int32_t ism330dhcx_wkup_threshold_set (stmdev_ctx_t *ctx, uint8_t val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t ism330dhcx_wkup_threshold_get (stmdev_ctx_t *ctx, uint8_t *val)
 Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.
int32_t ism330dhcx_xl_usr_offset_on_wkup_set (stmdev_ctx_t *ctx, uint8_t val)
 Wake up duration event( 1LSb = 1 / ODR ).
int32_t ism330dhcx_xl_usr_offset_on_wkup_get (stmdev_ctx_t *ctx, uint8_t *val)
 Wake up duration event( 1LSb = 1 / ODR ).
int32_t ism330dhcx_wkup_dur_set (stmdev_ctx_t *ctx, uint8_t val)
 Wake up duration event(1LSb = 1 / ODR).
int32_t ism330dhcx_wkup_dur_get (stmdev_ctx_t *ctx, uint8_t *val)
 Wake up duration event(1LSb = 1 / ODR).
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_tap_detection_on_z_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable Z direction in tap recognition.
int32_t ism330dhcx_tap_detection_on_z_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable Z direction in tap recognition.
int32_t ism330dhcx_tap_detection_on_y_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable Y direction in tap recognition.
int32_t ism330dhcx_tap_detection_on_y_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable Y direction in tap recognition.
int32_t ism330dhcx_tap_detection_on_x_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable X direction in tap recognition.
int32_t ism330dhcx_tap_detection_on_x_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable X direction in tap recognition.
int32_t ism330dhcx_tap_threshold_x_set (stmdev_ctx_t *ctx, uint8_t val)
 X-axis tap recognition threshold.
int32_t ism330dhcx_tap_threshold_x_get (stmdev_ctx_t *ctx, uint8_t *val)
 X-axis tap recognition threshold.
int32_t ism330dhcx_tap_axis_priority_set (stmdev_ctx_t *ctx, ism330dhcx_tap_priority_t val)
 Selection of axis priority for TAP detection.
int32_t ism330dhcx_tap_axis_priority_get (stmdev_ctx_t *ctx, ism330dhcx_tap_priority_t *val)
 Selection of axis priority for TAP detection[get].
int32_t ism330dhcx_tap_threshold_y_set (stmdev_ctx_t *ctx, uint8_t val)
 Y-axis tap recognition threshold.
int32_t ism330dhcx_tap_threshold_y_get (stmdev_ctx_t *ctx, uint8_t *val)
 Y-axis tap recognition threshold.
int32_t ism330dhcx_tap_threshold_z_set (stmdev_ctx_t *ctx, uint8_t val)
 Z-axis recognition threshold.
int32_t ism330dhcx_tap_threshold_z_get (stmdev_ctx_t *ctx, uint8_t *val)
 Z-axis recognition threshold.
int32_t ism330dhcx_tap_shock_set (stmdev_ctx_t *ctx, uint8_t val)
 Maximum duration is the maximum time of an overthreshold signal detection to be recognized as a tap event.
int32_t ism330dhcx_tap_shock_get (stmdev_ctx_t *ctx, uint8_t *val)
 Maximum duration is the maximum time of an overthreshold signal detection to be recognized as a tap event.
int32_t ism330dhcx_tap_quiet_set (stmdev_ctx_t *ctx, uint8_t val)
 Quiet time is the time after the first detected tap in which there must not be any overthreshold event.
int32_t ism330dhcx_tap_quiet_get (stmdev_ctx_t *ctx, uint8_t *val)
 Quiet time is the time after the first detected tap in which there must not be any overthreshold event.
int32_t ism330dhcx_tap_dur_set (stmdev_ctx_t *ctx, uint8_t val)
 When double tap recognition is enabled, this register expresses the maximum time between two consecutive detected taps to determine a double tap event.
int32_t ism330dhcx_tap_dur_get (stmdev_ctx_t *ctx, uint8_t *val)
 When double tap recognition is enabled, this register expresses the maximum time between two consecutive detected taps to determine a double tap event.
int32_t ism330dhcx_tap_mode_set (stmdev_ctx_t *ctx, ism330dhcx_single_double_tap_t val)
 Single/double-tap event enable.
int32_t ism330dhcx_tap_mode_get (stmdev_ctx_t *ctx, ism330dhcx_single_double_tap_t *val)
 Single/double-tap event enable.
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_ff_threshold_set (stmdev_ctx_t *ctx, ism330dhcx_ff_ths_t val)
 Free fall threshold setting.
int32_t ism330dhcx_ff_threshold_get (stmdev_ctx_t *ctx, ism330dhcx_ff_ths_t *val)
 Free fall threshold setting.
int32_t ism330dhcx_ff_dur_set (stmdev_ctx_t *ctx, uint8_t val)
 Free-fall duration event(1LSb = 1 / ODR).
int32_t ism330dhcx_ff_dur_get (stmdev_ctx_t *ctx, uint8_t *val)
 Free-fall duration event(1LSb = 1 / ODR).
int32_t ism330dhcx_fifo_watermark_set (stmdev_ctx_t *ctx, uint16_t val)
 FIFO watermark level selection.
int32_t ism330dhcx_fifo_watermark_get (stmdev_ctx_t *ctx, uint16_t *val)
 FIFO watermark level selection.
int32_t ism330dhcx_compression_algo_init_set (stmdev_ctx_t *ctx, uint8_t val)
 FIFO compression feature initialization request.
int32_t ism330dhcx_compression_algo_init_get (stmdev_ctx_t *ctx, uint8_t *val)
 FIFO compression feature initialization request.
int32_t ism330dhcx_compression_algo_set (stmdev_ctx_t *ctx, ism330dhcx_uncoptr_rate_t val)
 Enable and configure compression algo.
int32_t ism330dhcx_compression_algo_get (stmdev_ctx_t *ctx, ism330dhcx_uncoptr_rate_t *val)
 Enable and configure compression algo.
int32_t ism330dhcx_fifo_virtual_sens_odr_chg_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables ODR CHANGE virtual sensor to be batched in FIFO.
int32_t ism330dhcx_fifo_virtual_sens_odr_chg_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables ODR CHANGE virtual sensor to be batched in FIFO.
int32_t ism330dhcx_compression_algo_real_time_set (stmdev_ctx_t *ctx, uint8_t val)
 Enables/Disables compression algorithm runtime[set].
int32_t ism330dhcx_compression_algo_real_time_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enables/Disables compression algorithm runtime.
int32_t ism330dhcx_fifo_stop_on_wtm_set (stmdev_ctx_t *ctx, uint8_t val)
 Sensing chain FIFO stop values memorization at threshold level.
int32_t ism330dhcx_fifo_stop_on_wtm_get (stmdev_ctx_t *ctx, uint8_t *val)
 Sensing chain FIFO stop values memorization at threshold level.
int32_t ism330dhcx_fifo_xl_batch_set (stmdev_ctx_t *ctx, ism330dhcx_bdr_xl_t val)
 Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.
int32_t ism330dhcx_fifo_xl_batch_get (stmdev_ctx_t *ctx, ism330dhcx_bdr_xl_t *val)
 Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.
int32_t ism330dhcx_fifo_gy_batch_set (stmdev_ctx_t *ctx, ism330dhcx_bdr_gy_t val)
 Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.
int32_t ism330dhcx_fifo_gy_batch_get (stmdev_ctx_t *ctx, ism330dhcx_bdr_gy_t *val)
 Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.
int32_t ism330dhcx_fifo_mode_set (stmdev_ctx_t *ctx, ism330dhcx_fifo_mode_t val)
 FIFO mode selection.
int32_t ism330dhcx_fifo_mode_get (stmdev_ctx_t *ctx, ism330dhcx_fifo_mode_t *val)
 FIFO mode selection.
int32_t ism330dhcx_fifo_temp_batch_set (stmdev_ctx_t *ctx, ism330dhcx_odr_t_batch_t val)
 Selects Batching Data Rate (writing frequency in FIFO) for temperature data.
int32_t ism330dhcx_fifo_temp_batch_get (stmdev_ctx_t *ctx, ism330dhcx_odr_t_batch_t *val)
 Selects Batching Data Rate (writing frequency in FIFO) for temperature data.
int32_t ism330dhcx_fifo_timestamp_decimation_set (stmdev_ctx_t *ctx, ism330dhcx_odr_ts_batch_t val)
 Selects decimation for timestamp batching in FIFO.
int32_t ism330dhcx_fifo_timestamp_decimation_get (stmdev_ctx_t *ctx, ism330dhcx_odr_ts_batch_t *val)
 Selects decimation for timestamp batching in FIFO.
int32_t ism330dhcx_fifo_cnt_event_batch_set (stmdev_ctx_t *ctx, ism330dhcx_trig_counter_bdr_t val)
 Selects the trigger for the internal counter of batching events between XL and gyro.
int32_t ism330dhcx_fifo_cnt_event_batch_get (stmdev_ctx_t *ctx, ism330dhcx_trig_counter_bdr_t *val)
 Selects the trigger for the internal counter of batching events between XL and gyro.
int32_t ism330dhcx_rst_batch_counter_set (stmdev_ctx_t *ctx, uint8_t val)
 Resets the internal counter of batching events for a single sensor.
int32_t ism330dhcx_rst_batch_counter_get (stmdev_ctx_t *ctx, uint8_t *val)
 Resets the internal counter of batching events for a single sensor.
int32_t ism330dhcx_batch_counter_threshold_set (stmdev_ctx_t *ctx, uint16_t val)
 Batch data rate counter.
int32_t ism330dhcx_batch_counter_threshold_get (stmdev_ctx_t *ctx, uint16_t *val)
 Batch data rate counter.
int32_t ism330dhcx_fifo_data_level_get (stmdev_ctx_t *ctx, uint16_t *val)
 Number of unread sensor data (TAG + 6 bytes) stored in FIFO.
int32_t ism330dhcx_fifo_status_get (stmdev_ctx_t *ctx, ism330dhcx_fifo_status2_t *val)
 Smart FIFO status.
int32_t ism330dhcx_fifo_full_flag_get (stmdev_ctx_t *ctx, uint8_t *val)
 Smart FIFO full status.
int32_t ism330dhcx_fifo_ovr_flag_get (stmdev_ctx_t *ctx, uint8_t *val)
 FIFO overrun status.
int32_t ism330dhcx_fifo_wtm_flag_get (stmdev_ctx_t *ctx, uint8_t *val)
 FIFO watermark status.
int32_t ism330dhcx_fifo_sensor_tag_get (stmdev_ctx_t *ctx, ism330dhcx_fifo_tag_t *val)
 Identifies the sensor in FIFO_DATA_OUT.
int32_t ism330dhcx_fifo_pedo_batch_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable FIFO batching of pedometer embedded function values.
int32_t ism330dhcx_fifo_pedo_batch_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable FIFO batching of pedometer embedded function values.
int32_t ism330dhcx_sh_batch_slave_0_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable FIFO batching data of first slave.
int32_t ism330dhcx_sh_batch_slave_0_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable FIFO batching data of first slave.
int32_t ism330dhcx_sh_batch_slave_1_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable FIFO batching data of second slave.
int32_t ism330dhcx_sh_batch_slave_1_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable FIFO batching data of second slave.
int32_t ism330dhcx_sh_batch_slave_2_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable FIFO batching data of third slave.
int32_t ism330dhcx_sh_batch_slave_2_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable FIFO batching data of third slave.
int32_t ism330dhcx_sh_batch_slave_3_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable FIFO batching data of fourth slave.
int32_t ism330dhcx_sh_batch_slave_3_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable FIFO batching data of fourth slave.
int32_t ism330dhcx_den_mode_set (stmdev_ctx_t *ctx, ism330dhcx_den_mode_t val)
 DEN functionality marking mode.
int32_t ism330dhcx_den_mode_get (stmdev_ctx_t *ctx, ism330dhcx_den_mode_t *val)
 DEN functionality marking mode.
int32_t ism330dhcx_den_polarity_set (stmdev_ctx_t *ctx, ism330dhcx_den_lh_t val)
 DEN active level configuration.
int32_t ism330dhcx_den_polarity_get (stmdev_ctx_t *ctx, ism330dhcx_den_lh_t *val)
 DEN active level configuration.
int32_t ism330dhcx_den_enable_set (stmdev_ctx_t *ctx, ism330dhcx_den_xl_g_t val)
 DEN configuration.
int32_t ism330dhcx_den_enable_get (stmdev_ctx_t *ctx, ism330dhcx_den_xl_g_t *val)
 DEN configuration.
int32_t ism330dhcx_den_mark_axis_x_set (stmdev_ctx_t *ctx, uint8_t val)
 DEN value stored in LSB of X-axis.
int32_t ism330dhcx_den_mark_axis_x_get (stmdev_ctx_t *ctx, uint8_t *val)
 DEN value stored in LSB of X-axis.
int32_t ism330dhcx_den_mark_axis_y_set (stmdev_ctx_t *ctx, uint8_t val)
 DEN value stored in LSB of Y-axis.
int32_t ism330dhcx_den_mark_axis_y_get (stmdev_ctx_t *ctx, uint8_t *val)
 DEN value stored in LSB of Y-axis.
int32_t ism330dhcx_den_mark_axis_z_set (stmdev_ctx_t *ctx, uint8_t val)
 DEN value stored in LSB of Z-axis.
int32_t ism330dhcx_den_mark_axis_z_get (stmdev_ctx_t *ctx, uint8_t *val)
 DEN value stored in LSB of Z-axis.
int32_t ism330dhcx_pedo_sens_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable pedometer algorithm.
int32_t ism330dhcx_pedo_sens_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable pedometer algorithm.
int32_t ism330dhcx_pedo_step_detect_get (stmdev_ctx_t *ctx, uint8_t *val)
 Interrupt status bit for step detection.
int32_t ism330dhcx_pedo_debounce_steps_set (stmdev_ctx_t *ctx, uint8_t *buff)
 Pedometer debounce configuration register (r/w).
int32_t ism330dhcx_pedo_debounce_steps_get (stmdev_ctx_t *ctx, uint8_t *buff)
 Pedometer debounce configuration register (r/w).
int32_t ism330dhcx_pedo_steps_period_set (stmdev_ctx_t *ctx, uint16_t val)
 Time period register for step detection on delta time (r/w).
int32_t ism330dhcx_pedo_steps_period_get (stmdev_ctx_t *ctx, uint16_t *val)
 Time period register for step detection on delta time (r/w).
int32_t ism330dhcx_pedo_int_mode_set (stmdev_ctx_t *ctx, ism330dhcx_carry_count_en_t val)
 Set when user wants to generate interrupt on count overflow event/every step.
int32_t ism330dhcx_pedo_int_mode_get (stmdev_ctx_t *ctx, ism330dhcx_carry_count_en_t *val)
 Set when user wants to generate interrupt on count overflow event/every step.
int32_t ism330dhcx_motion_sens_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable significant motion detection function.
int32_t ism330dhcx_motion_sens_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable significant motion detection function.
int32_t ism330dhcx_motion_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val)
 Interrupt status bit for significant motion detection.
int32_t ism330dhcx_tilt_sens_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable tilt calculation.
int32_t ism330dhcx_tilt_sens_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable tilt calculation.
int32_t ism330dhcx_tilt_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val)
 Interrupt status bit for tilt detection.
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).
int32_t ism330dhcx_long_cnt_flag_data_ready_get (stmdev_ctx_t *ctx, uint8_t *val)
 Interrupt status bit for FSM long counter timeout interrupt event.
int32_t ism330dhcx_emb_fsm_en_set (stmdev_ctx_t *ctx, uint8_t val)
 Embedded final state machine functions mode.
int32_t ism330dhcx_emb_fsm_en_get (stmdev_ctx_t *ctx, uint8_t *val)
 Embedded final state machine functions mode.
int32_t ism330dhcx_fsm_enable_set (stmdev_ctx_t *ctx, ism330dhcx_emb_fsm_enable_t *val)
 Embedded final state machine functions mode.
int32_t ism330dhcx_fsm_enable_get (stmdev_ctx_t *ctx, ism330dhcx_emb_fsm_enable_t *val)
 Embedded final state machine functions mode.
int32_t ism330dhcx_long_cnt_set (stmdev_ctx_t *ctx, uint16_t val)
 FSM long counter status register.
int32_t ism330dhcx_long_cnt_get (stmdev_ctx_t *ctx, uint16_t *val)
 FSM long counter status register.
int32_t ism330dhcx_long_clr_set (stmdev_ctx_t *ctx, ism330dhcx_fsm_lc_clr_t val)
 Clear FSM long counter value.
int32_t ism330dhcx_long_clr_get (stmdev_ctx_t *ctx, ism330dhcx_fsm_lc_clr_t *val)
 Clear FSM long counter value.
int32_t ism330dhcx_fsm_out_get (stmdev_ctx_t *ctx, ism330dhcx_fsm_out_t *val)
 FSM output registers.
int32_t ism330dhcx_fsm_data_rate_set (stmdev_ctx_t *ctx, ism330dhcx_fsm_odr_t val)
 Finite State Machine ODR configuration.
int32_t ism330dhcx_fsm_data_rate_get (stmdev_ctx_t *ctx, ism330dhcx_fsm_odr_t *val)
 Finite State Machine ODR configuration.
int32_t ism330dhcx_fsm_init_set (stmdev_ctx_t *ctx, uint8_t val)
 FSM initialization request.
int32_t ism330dhcx_fsm_init_get (stmdev_ctx_t *ctx, uint8_t *val)
 FSM initialization request.
int32_t ism330dhcx_long_cnt_int_value_set (stmdev_ctx_t *ctx, uint16_t val)
 FSM long counter timeout register (r/w).
int32_t ism330dhcx_long_cnt_int_value_get (stmdev_ctx_t *ctx, uint16_t *val)
 FSM long counter timeout register (r/w).
int32_t ism330dhcx_fsm_number_of_programs_set (stmdev_ctx_t *ctx, uint8_t *buff)
 FSM number of programs register.
int32_t ism330dhcx_fsm_number_of_programs_get (stmdev_ctx_t *ctx, uint8_t *buff)
 FSM number of programs register.
int32_t ism330dhcx_fsm_start_address_set (stmdev_ctx_t *ctx, uint16_t val)
 FSM start address register (r/w).
int32_t ism330dhcx_fsm_start_address_get (stmdev_ctx_t *ctx, uint16_t *val)
 FSM start address register (r/w).
int32_t ism330dhcx_mlc_set (stmdev_ctx_t *ctx, uint8_t val)
 Enable Machine Learning Core.
int32_t ism330dhcx_mlc_get (stmdev_ctx_t *ctx, uint8_t *val)
 Enable Machine Learning Core.
int32_t ism330dhcx_mlc_status_get (stmdev_ctx_t *ctx, ism330dhcx_mlc_status_mainpage_t *val)
 Machine Learning Core status register[get].
int32_t ism330dhcx_mlc_data_rate_set (stmdev_ctx_t *ctx, ism330dhcx_mlc_odr_t val)
 Machine Learning Core data rate selection.
int32_t ism330dhcx_mlc_data_rate_get (stmdev_ctx_t *ctx, ism330dhcx_mlc_odr_t *val)
 Machine Learning Core data rate selection.
int32_t ism330dhcx_sh_read_data_raw_get (stmdev_ctx_t *ctx, ism330dhcx_emb_sh_read_t *val, uint8_t len)
 Sensor hub output registers.
int32_t ism330dhcx_sh_slave_connected_set (stmdev_ctx_t *ctx, ism330dhcx_aux_sens_on_t val)
 Number of external sensors to be read by the sensor hub.
int32_t ism330dhcx_sh_slave_connected_get (stmdev_ctx_t *ctx, ism330dhcx_aux_sens_on_t *val)
 Number of external sensors to be read by the sensor hub.
int32_t ism330dhcx_sh_master_set (stmdev_ctx_t *ctx, uint8_t val)
 Sensor hub I2C master enable.
int32_t ism330dhcx_sh_master_get (stmdev_ctx_t *ctx, uint8_t *val)
 Sensor hub I2C master enable.
int32_t ism330dhcx_sh_pin_mode_set (stmdev_ctx_t *ctx, ism330dhcx_shub_pu_en_t val)
 Master I2C pull-up enable.
int32_t ism330dhcx_sh_pin_mode_get (stmdev_ctx_t *ctx, ism330dhcx_shub_pu_en_t *val)
 Master I2C pull-up enable.
int32_t ism330dhcx_sh_pass_through_set (stmdev_ctx_t *ctx, uint8_t val)
 I2C interface pass-through.
int32_t ism330dhcx_sh_pass_through_get (stmdev_ctx_t *ctx, uint8_t *val)
 I2C interface pass-through.
int32_t ism330dhcx_sh_syncro_mode_set (stmdev_ctx_t *ctx, ism330dhcx_start_config_t val)
 Sensor hub trigger signal selection.
int32_t ism330dhcx_sh_syncro_mode_get (stmdev_ctx_t *ctx, ism330dhcx_start_config_t *val)
 Sensor hub trigger signal selection.
int32_t ism330dhcx_sh_write_mode_set (stmdev_ctx_t *ctx, ism330dhcx_write_once_t val)
 Slave 0 write operation is performed only at the first sensor hub cycle.
int32_t ism330dhcx_sh_write_mode_get (stmdev_ctx_t *ctx, ism330dhcx_write_once_t *val)
 Slave 0 write operation is performed only at the first sensor hub cycle.
int32_t ism330dhcx_sh_reset_set (stmdev_ctx_t *ctx)
 Reset Master logic and output registers.
int32_t ism330dhcx_sh_reset_get (stmdev_ctx_t *ctx, uint8_t *val)
 Reset Master logic and output registers.
int32_t ism330dhcx_sh_data_rate_set (stmdev_ctx_t *ctx, ism330dhcx_shub_odr_t val)
 Rate at which the master communicates.
int32_t ism330dhcx_sh_data_rate_get (stmdev_ctx_t *ctx, ism330dhcx_shub_odr_t *val)
 Rate at which the master communicates.
int32_t ism330dhcx_sh_cfg_write (stmdev_ctx_t *ctx, ism330dhcx_sh_cfg_write_t *val)
 Configure slave 0 for perform a write.
int32_t ism330dhcx_sh_slv0_cfg_read (stmdev_ctx_t *ctx, ism330dhcx_sh_cfg_read_t *val)
 Configure slave 0 for perform a write/read.
int32_t ism330dhcx_sh_slv1_cfg_read (stmdev_ctx_t *ctx, ism330dhcx_sh_cfg_read_t *val)
 Configure slave 0 for perform a write/read.
int32_t ism330dhcx_sh_slv2_cfg_read (stmdev_ctx_t *ctx, ism330dhcx_sh_cfg_read_t *val)
 Configure slave 2 for perform a write/read.
int32_t ism330dhcx_sh_slv3_cfg_read (stmdev_ctx_t *ctx, ism330dhcx_sh_cfg_read_t *val)
 Configure slave 3 for perform a write/read.
int32_t ism330dhcx_sh_status_get (stmdev_ctx_t *ctx, ism330dhcx_status_master_t *val)
 Sensor hub source register.

Detailed Description

This file provides a set of functions needed to drive the ism330dhcx enhanced inertial module.

Macro Definition Documentation

◆ ISM330DHCX_ALL_INT_SRC

#define ISM330DHCX_ALL_INT_SRC   0x1AU

Definition at line 528 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_all_sources_get().

◆ ISM330DHCX_COUNTER_BDR_REG1

◆ ISM330DHCX_COUNTER_BDR_REG2

#define ISM330DHCX_COUNTER_BDR_REG2   0x0CU

◆ ISM330DHCX_CTRL10_C

#define ISM330DHCX_CTRL10_C   0x19U

Definition at line 514 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_timestamp_get(), and ism330dhcx_timestamp_set().

◆ ISM330DHCX_CTRL1_OIS

◆ ISM330DHCX_CTRL1_XL

◆ ISM330DHCX_CTRL2_G

#define ISM330DHCX_CTRL2_G   0x11U

◆ ISM330DHCX_CTRL2_OIS

◆ ISM330DHCX_CTRL3_C

◆ ISM330DHCX_CTRL3_OIS

◆ ISM330DHCX_CTRL4_C

◆ ISM330DHCX_CTRL5_C

◆ ISM330DHCX_CTRL6_C

◆ ISM330DHCX_CTRL7_G

◆ ISM330DHCX_CTRL8_XL

◆ ISM330DHCX_CTRL9_XL

◆ ISM330DHCX_D6D_SRC

#define ISM330DHCX_D6D_SRC   0x1DU

Definition at line 600 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_all_sources_get().

◆ ISM330DHCX_DATAWRITE_SLV0

#define ISM330DHCX_DATAWRITE_SLV0   0x21U

Definition at line 2654 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_cfg_write().

◆ ISM330DHCX_EMB_FUNC_EN_A

◆ ISM330DHCX_EMB_FUNC_EN_B

◆ ISM330DHCX_EMB_FUNC_FIFO_CFG

#define ISM330DHCX_EMB_FUNC_FIFO_CFG   0x44U

◆ ISM330DHCX_EMB_FUNC_INIT_A

#define ISM330DHCX_EMB_FUNC_INIT_A   0x66U

Definition at line 1951 of file ism330dhcx_reg.h.

◆ ISM330DHCX_EMB_FUNC_INIT_B

◆ ISM330DHCX_EMB_FUNC_INT1

#define ISM330DHCX_EMB_FUNC_INT1   0x0AU

◆ ISM330DHCX_EMB_FUNC_INT2

#define ISM330DHCX_EMB_FUNC_INT2   0x0EU

◆ ISM330DHCX_EMB_FUNC_ODR_CFG_B

#define ISM330DHCX_EMB_FUNC_ODR_CFG_B   0x5FU

◆ ISM330DHCX_EMB_FUNC_ODR_CFG_C

#define ISM330DHCX_EMB_FUNC_ODR_CFG_C   0x60U

◆ ISM330DHCX_EMB_FUNC_SRC

#define ISM330DHCX_EMB_FUNC_SRC   0x64U

Definition at line 1929 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_steps_reset().

◆ ISM330DHCX_EMB_FUNC_STATUS

◆ ISM330DHCX_EMB_FUNC_STATUS_MAINPAGE

#define ISM330DHCX_EMB_FUNC_STATUS_MAINPAGE   0x35U

Definition at line 670 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FIFO_CTRL1

#define ISM330DHCX_FIFO_CTRL1   0x07U

◆ ISM330DHCX_FIFO_CTRL2

◆ ISM330DHCX_FIFO_CTRL3

#define ISM330DHCX_FIFO_CTRL3   0x09U

◆ ISM330DHCX_FIFO_CTRL4

◆ ISM330DHCX_FIFO_DATA_OUT_TAG

#define ISM330DHCX_FIFO_DATA_OUT_TAG   0x78U

Definition at line 1067 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_fifo_sensor_tag_get().

◆ ISM330DHCX_FIFO_DATA_OUT_X_H

#define ISM330DHCX_FIFO_DATA_OUT_X_H   0x7AU

Definition at line 1082 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FIFO_DATA_OUT_X_L

#define ISM330DHCX_FIFO_DATA_OUT_X_L   0x79U

Definition at line 1081 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_fifo_out_raw_get().

◆ ISM330DHCX_FIFO_DATA_OUT_Y_H

#define ISM330DHCX_FIFO_DATA_OUT_Y_H   0x7CU

Definition at line 1084 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FIFO_DATA_OUT_Y_L

#define ISM330DHCX_FIFO_DATA_OUT_Y_L   0x7BU

Definition at line 1083 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FIFO_DATA_OUT_Z_H

#define ISM330DHCX_FIFO_DATA_OUT_Z_H   0x7EU

Definition at line 1086 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FIFO_DATA_OUT_Z_L

#define ISM330DHCX_FIFO_DATA_OUT_Z_L   0x7DU

Definition at line 1085 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FIFO_STATUS1

#define ISM330DHCX_FIFO_STATUS1   0x3AU

Definition at line 784 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_fifo_data_level_get().

◆ ISM330DHCX_FIFO_STATUS2

◆ ISM330DHCX_FREE_FALL

#define ISM330DHCX_FREE_FALL   0x5DU

◆ ISM330DHCX_FSM_ENABLE_A

#define ISM330DHCX_FSM_ENABLE_A   0x46U

Definition at line 1451 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_fsm_enable_get(), and ism330dhcx_fsm_enable_set().

◆ ISM330DHCX_FSM_ENABLE_B

#define ISM330DHCX_FSM_ENABLE_B   0x47U

Definition at line 1475 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_fsm_enable_get(), and ism330dhcx_fsm_enable_set().

◆ ISM330DHCX_FSM_INT1_A

#define ISM330DHCX_FSM_INT1_A   0x0BU

◆ ISM330DHCX_FSM_INT1_B

#define ISM330DHCX_FSM_INT1_B   0x0CU

◆ ISM330DHCX_FSM_INT2_A

#define ISM330DHCX_FSM_INT2_A   0x0FU

◆ ISM330DHCX_FSM_INT2_B

#define ISM330DHCX_FSM_INT2_B   0x10U

◆ ISM330DHCX_FSM_LC_TIMEOUT_H

#define ISM330DHCX_FSM_LC_TIMEOUT_H   0x17BU

◆ ISM330DHCX_FSM_LC_TIMEOUT_L

#define ISM330DHCX_FSM_LC_TIMEOUT_L   0x17AU

◆ ISM330DHCX_FSM_LONG_COUNTER_CLEAR

#define ISM330DHCX_FSM_LONG_COUNTER_CLEAR   0x4AU

Definition at line 1501 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_long_clr_get(), and ism330dhcx_long_clr_set().

◆ ISM330DHCX_FSM_LONG_COUNTER_H

#define ISM330DHCX_FSM_LONG_COUNTER_H   0x49U

Definition at line 1500 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_LONG_COUNTER_L

#define ISM330DHCX_FSM_LONG_COUNTER_L   0x48U

Definition at line 1499 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_long_cnt_get(), and ism330dhcx_long_cnt_set().

◆ ISM330DHCX_FSM_OUTS1

#define ISM330DHCX_FSM_OUTS1   0x4CU

Definition at line 1515 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_fsm_out_get().

◆ ISM330DHCX_FSM_OUTS10

#define ISM330DHCX_FSM_OUTS10   0x55U

Definition at line 1731 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS11

#define ISM330DHCX_FSM_OUTS11   0x56U

Definition at line 1755 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS12

#define ISM330DHCX_FSM_OUTS12   0x57U

Definition at line 1779 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS13

#define ISM330DHCX_FSM_OUTS13   0x58U

Definition at line 1803 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS14

#define ISM330DHCX_FSM_OUTS14   0x59U

Definition at line 1827 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS15

#define ISM330DHCX_FSM_OUTS15   0x5AU

Definition at line 1851 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS16

#define ISM330DHCX_FSM_OUTS16   0x5BU

Definition at line 1875 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS2

#define ISM330DHCX_FSM_OUTS2   0x4DU

Definition at line 1539 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS3

#define ISM330DHCX_FSM_OUTS3   0x4EU

Definition at line 1563 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS4

#define ISM330DHCX_FSM_OUTS4   0x4FU

Definition at line 1587 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS5

#define ISM330DHCX_FSM_OUTS5   0x50U

Definition at line 1611 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS6

#define ISM330DHCX_FSM_OUTS6   0x51U

Definition at line 1635 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS7

#define ISM330DHCX_FSM_OUTS7   0x52U

Definition at line 1659 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS8

#define ISM330DHCX_FSM_OUTS8   0x53U

Definition at line 1683 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_OUTS9

#define ISM330DHCX_FSM_OUTS9   0x54U

Definition at line 1707 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_PROGRAMS

#define ISM330DHCX_FSM_PROGRAMS   0x17CU

◆ ISM330DHCX_FSM_START_ADD_H

#define ISM330DHCX_FSM_START_ADD_H   0x17FU

◆ ISM330DHCX_FSM_START_ADD_L

#define ISM330DHCX_FSM_START_ADD_L   0x17EU

◆ ISM330DHCX_FSM_STATUS_A

#define ISM330DHCX_FSM_STATUS_A   0x13U

Definition at line 1351 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_all_sources_get().

◆ ISM330DHCX_FSM_STATUS_A_MAINPAGE

#define ISM330DHCX_FSM_STATUS_A_MAINPAGE   0x36U

Definition at line 690 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FSM_STATUS_B

#define ISM330DHCX_FSM_STATUS_B   0x14U

Definition at line 1375 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_all_sources_get().

◆ ISM330DHCX_FSM_STATUS_B_MAINPAGE

#define ISM330DHCX_FSM_STATUS_B_MAINPAGE   0x37U

Definition at line 714 of file ism330dhcx_reg.h.

◆ ISM330DHCX_FUNC_CFG_ACCESS

#define ISM330DHCX_FUNC_CFG_ACCESS   0x01U

Definition at line 181 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mem_bank_get(), and ism330dhcx_mem_bank_set().

◆ ISM330DHCX_I2C_ADD_H

#define ISM330DHCX_I2C_ADD_H   0xD7U

Definition at line 171 of file ism330dhcx_reg.h.

◆ ISM330DHCX_I2C_ADD_L

#define ISM330DHCX_I2C_ADD_L   0xD5U

I2C Device Address 8 bit format if SA0=0 -> D5 if SA0=1 -> D7.

Definition at line 170 of file ism330dhcx_reg.h.

◆ ISM330DHCX_ID

#define ISM330DHCX_ID   0x6BU

Device Identification (Who am I).

Definition at line 174 of file ism330dhcx_reg.h.

Referenced by QwDevISM330DHCX::init(), and QwDevISM330DHCX::isConnected().

◆ ISM330DHCX_INT1_CTRL

#define ISM330DHCX_INT1_CTRL   0x0DU

◆ ISM330DHCX_INT2_CTRL

#define ISM330DHCX_INT2_CTRL   0x0EU

◆ ISM330DHCX_INT_DUR2

◆ ISM330DHCX_INT_OIS

◆ ISM330DHCX_INTERNAL_FREQ_FINE

#define ISM330DHCX_INTERNAL_FREQ_FINE   0x63U

Definition at line 984 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_odr_cal_reg_get(), and ism330dhcx_odr_cal_reg_set().

◆ ISM330DHCX_MAG_CFG_A

#define ISM330DHCX_MAG_CFG_A   0xD4U

◆ ISM330DHCX_MAG_CFG_B

#define ISM330DHCX_MAG_CFG_B   0xD5U

Definition at line 2031 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_x_orient_get(), and ism330dhcx_mag_x_orient_set().

◆ ISM330DHCX_MAG_OFFX_H

#define ISM330DHCX_MAG_OFFX_H   0xC1U

Definition at line 1998 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_offset_get(), and ism330dhcx_mag_offset_set().

◆ ISM330DHCX_MAG_OFFX_L

#define ISM330DHCX_MAG_OFFX_L   0xC0U

Definition at line 1997 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_offset_get(), and ism330dhcx_mag_offset_set().

◆ ISM330DHCX_MAG_OFFY_H

#define ISM330DHCX_MAG_OFFY_H   0xC3U

Definition at line 2000 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_offset_get(), and ism330dhcx_mag_offset_set().

◆ ISM330DHCX_MAG_OFFY_L

#define ISM330DHCX_MAG_OFFY_L   0xC2U

Definition at line 1999 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_offset_get(), and ism330dhcx_mag_offset_set().

◆ ISM330DHCX_MAG_OFFZ_H

#define ISM330DHCX_MAG_OFFZ_H   0xC5U

Definition at line 2002 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_offset_get(), and ism330dhcx_mag_offset_set().

◆ ISM330DHCX_MAG_OFFZ_L

#define ISM330DHCX_MAG_OFFZ_L   0xC4U

Definition at line 2001 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mag_offset_get(), and ism330dhcx_mag_offset_set().

◆ ISM330DHCX_MAG_SENSITIVITY_H

#define ISM330DHCX_MAG_SENSITIVITY_H   0xBBU

◆ ISM330DHCX_MAG_SENSITIVITY_L

#define ISM330DHCX_MAG_SENSITIVITY_L   0xBAU

◆ ISM330DHCX_MAG_SI_XX_H

#define ISM330DHCX_MAG_SI_XX_H   0xC7U

◆ ISM330DHCX_MAG_SI_XX_L

#define ISM330DHCX_MAG_SI_XX_L   0xC6U

◆ ISM330DHCX_MAG_SI_XY_H

#define ISM330DHCX_MAG_SI_XY_H   0xC9U

◆ ISM330DHCX_MAG_SI_XY_L

#define ISM330DHCX_MAG_SI_XY_L   0xC8U

◆ ISM330DHCX_MAG_SI_XZ_H

#define ISM330DHCX_MAG_SI_XZ_H   0xCBU

◆ ISM330DHCX_MAG_SI_XZ_L

#define ISM330DHCX_MAG_SI_XZ_L   0xCAU

◆ ISM330DHCX_MAG_SI_YY_H

#define ISM330DHCX_MAG_SI_YY_H   0xCDU

◆ ISM330DHCX_MAG_SI_YY_L

#define ISM330DHCX_MAG_SI_YY_L   0xCCU

◆ ISM330DHCX_MAG_SI_YZ_H

#define ISM330DHCX_MAG_SI_YZ_H   0xCFU

◆ ISM330DHCX_MAG_SI_YZ_L

#define ISM330DHCX_MAG_SI_YZ_L   0xCEU

◆ ISM330DHCX_MAG_SI_ZZ_H

#define ISM330DHCX_MAG_SI_ZZ_H   0xD1U

◆ ISM330DHCX_MAG_SI_ZZ_L

#define ISM330DHCX_MAG_SI_ZZ_L   0xD0U

◆ ISM330DHCX_MASTER_CONFIG

◆ ISM330DHCX_MD1_CFG

#define ISM330DHCX_MD1_CFG   0x5EU

◆ ISM330DHCX_MD2_CFG

#define ISM330DHCX_MD2_CFG   0x5FU

◆ ISM330DHCX_MLC0_SRC

#define ISM330DHCX_MLC0_SRC   0x70U

Definition at line 1987 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mlc_out_get().

◆ ISM330DHCX_MLC1_SRC

#define ISM330DHCX_MLC1_SRC   0x71U

Definition at line 1988 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC2_SRC

#define ISM330DHCX_MLC2_SRC   0x72U

Definition at line 1989 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC3_SRC

#define ISM330DHCX_MLC3_SRC   0x73U

Definition at line 1990 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC4_SRC

#define ISM330DHCX_MLC4_SRC   0x74U

Definition at line 1991 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC5_SRC

#define ISM330DHCX_MLC5_SRC   0x75U

Definition at line 1992 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC6_SRC

#define ISM330DHCX_MLC6_SRC   0x76U

Definition at line 1993 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC7_SRC

#define ISM330DHCX_MLC7_SRC   0x77U

Definition at line 1994 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC_INT1

#define ISM330DHCX_MLC_INT1   0x0DU

◆ ISM330DHCX_MLC_INT2

#define ISM330DHCX_MLC_INT2   0x11U

◆ ISM330DHCX_MLC_MAG_SENSITIVITY_H

#define ISM330DHCX_MLC_MAG_SENSITIVITY_H   0x1E9U

Definition at line 2066 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC_MAG_SENSITIVITY_L

#define ISM330DHCX_MLC_MAG_SENSITIVITY_L   0x1E8U

Definition at line 2065 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC_STATUS

#define ISM330DHCX_MLC_STATUS   0x15U

Definition at line 1399 of file ism330dhcx_reg.h.

◆ ISM330DHCX_MLC_STATUS_MAINPAGE

#define ISM330DHCX_MLC_STATUS_MAINPAGE   0x38U

Definition at line 738 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_mlc_status_get().

◆ ISM330DHCX_OUT_TEMP_H

#define ISM330DHCX_OUT_TEMP_H   0x21U

Definition at line 657 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUT_TEMP_L

#define ISM330DHCX_OUT_TEMP_L   0x20U

Definition at line 656 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_temperature_raw_get().

◆ ISM330DHCX_OUTX_H_A

#define ISM330DHCX_OUTX_H_A   0x29U

Definition at line 665 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTX_H_G

#define ISM330DHCX_OUTX_H_G   0x23U

Definition at line 659 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTX_L_A

#define ISM330DHCX_OUTX_L_A   0x28U

Definition at line 664 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_acceleration_raw_get().

◆ ISM330DHCX_OUTX_L_G

#define ISM330DHCX_OUTX_L_G   0x22U

Definition at line 658 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_angular_rate_raw_get().

◆ ISM330DHCX_OUTY_H_A

#define ISM330DHCX_OUTY_H_A   0x2BU

Definition at line 667 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTY_H_G

#define ISM330DHCX_OUTY_H_G   0x25U

Definition at line 661 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTY_L_A

#define ISM330DHCX_OUTY_L_A   0x2AU

Definition at line 666 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTY_L_G

#define ISM330DHCX_OUTY_L_G   0x24U

Definition at line 660 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTZ_H_A

#define ISM330DHCX_OUTZ_H_A   0x2DU

Definition at line 669 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTZ_H_G

#define ISM330DHCX_OUTZ_H_G   0x27U

Definition at line 663 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTZ_L_A

#define ISM330DHCX_OUTZ_L_A   0x2CU

Definition at line 668 of file ism330dhcx_reg.h.

◆ ISM330DHCX_OUTZ_L_G

#define ISM330DHCX_OUTZ_L_G   0x26U

Definition at line 662 of file ism330dhcx_reg.h.

◆ ISM330DHCX_PAGE_ADDRESS

#define ISM330DHCX_PAGE_ADDRESS   0x08U

◆ ISM330DHCX_PAGE_RW

◆ ISM330DHCX_PAGE_SEL

#define ISM330DHCX_PAGE_SEL   0x02U

◆ ISM330DHCX_PAGE_VALUE

#define ISM330DHCX_PAGE_VALUE   0x09U

◆ ISM330DHCX_PEDO_CMD_REG

#define ISM330DHCX_PEDO_CMD_REG   0x183U

◆ ISM330DHCX_PEDO_DEB_STEPS_CONF

#define ISM330DHCX_PEDO_DEB_STEPS_CONF   0x184U

◆ ISM330DHCX_PEDO_SC_DELTAT_H

#define ISM330DHCX_PEDO_SC_DELTAT_H   0x1D1U

◆ ISM330DHCX_PEDO_SC_DELTAT_L

#define ISM330DHCX_PEDO_SC_DELTAT_L   0x1D0U

◆ ISM330DHCX_PIN_CTRL

#define ISM330DHCX_PIN_CTRL   0x02U

◆ ISM330DHCX_SENSOR_HUB_1

#define ISM330DHCX_SENSOR_HUB_1   0x02U

Definition at line 2067 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_read_data_raw_get().

◆ ISM330DHCX_SENSOR_HUB_10

#define ISM330DHCX_SENSOR_HUB_10   0x0BU

Definition at line 2283 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_11

#define ISM330DHCX_SENSOR_HUB_11   0x0CU

Definition at line 2307 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_12

#define ISM330DHCX_SENSOR_HUB_12   0x0DU

Definition at line 2331 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_13

#define ISM330DHCX_SENSOR_HUB_13   0x0EU

Definition at line 2355 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_14

#define ISM330DHCX_SENSOR_HUB_14   0x0FU

Definition at line 2379 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_15

#define ISM330DHCX_SENSOR_HUB_15   0x10U

Definition at line 2403 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_16

#define ISM330DHCX_SENSOR_HUB_16   0x11U

Definition at line 2427 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_17

#define ISM330DHCX_SENSOR_HUB_17   0x12U

Definition at line 2451 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_18

#define ISM330DHCX_SENSOR_HUB_18   0x13U

Definition at line 2475 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_2

#define ISM330DHCX_SENSOR_HUB_2   0x03U

Definition at line 2091 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_3

#define ISM330DHCX_SENSOR_HUB_3   0x04U

Definition at line 2115 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_4

#define ISM330DHCX_SENSOR_HUB_4   0x05U

Definition at line 2139 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_5

#define ISM330DHCX_SENSOR_HUB_5   0x06U

Definition at line 2163 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_6

#define ISM330DHCX_SENSOR_HUB_6   0x07U

Definition at line 2187 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_7

#define ISM330DHCX_SENSOR_HUB_7   0x08U

Definition at line 2211 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_8

#define ISM330DHCX_SENSOR_HUB_8   0x09U

Definition at line 2235 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SENSOR_HUB_9

#define ISM330DHCX_SENSOR_HUB_9   0x0AU

Definition at line 2259 of file ism330dhcx_reg.h.

◆ ISM330DHCX_SLV0_ADD

#define ISM330DHCX_SLV0_ADD   0x15U

Definition at line 2522 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_cfg_write(), and ism330dhcx_sh_slv0_cfg_read().

◆ ISM330DHCX_SLV0_CONFIG

◆ ISM330DHCX_SLV0_SUBADD

#define ISM330DHCX_SLV0_SUBADD   0x16U

Definition at line 2535 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_cfg_write(), and ism330dhcx_sh_slv0_cfg_read().

◆ ISM330DHCX_SLV1_ADD

#define ISM330DHCX_SLV1_ADD   0x18U

Definition at line 2558 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_slv1_cfg_read().

◆ ISM330DHCX_SLV1_CONFIG

#define ISM330DHCX_SLV1_CONFIG   0x1AU

◆ ISM330DHCX_SLV1_SUBADD

#define ISM330DHCX_SLV1_SUBADD   0x19U

Definition at line 2570 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_slv1_cfg_read().

◆ ISM330DHCX_SLV2_ADD

#define ISM330DHCX_SLV2_ADD   0x1BU

Definition at line 2590 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_slv2_cfg_read().

◆ ISM330DHCX_SLV2_CONFIG

#define ISM330DHCX_SLV2_CONFIG   0x1DU

◆ ISM330DHCX_SLV2_SUBADD

#define ISM330DHCX_SLV2_SUBADD   0x1CU

Definition at line 2602 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_slv2_cfg_read().

◆ ISM330DHCX_SLV3_ADD

#define ISM330DHCX_SLV3_ADD   0x1EU

Definition at line 2622 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_slv3_cfg_read().

◆ ISM330DHCX_SLV3_CONFIG

#define ISM330DHCX_SLV3_CONFIG   0x20U

◆ ISM330DHCX_SLV3_SUBADD

#define ISM330DHCX_SLV3_SUBADD   0x1FU

Definition at line 2634 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_slv3_cfg_read().

◆ ISM330DHCX_STATUS_MASTER

#define ISM330DHCX_STATUS_MASTER   0x22U

Definition at line 2660 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_sh_status_get().

◆ ISM330DHCX_STATUS_MASTER_MAINPAGE

#define ISM330DHCX_STATUS_MASTER_MAINPAGE   0x39U

Definition at line 762 of file ism330dhcx_reg.h.

◆ ISM330DHCX_STATUS_REG

◆ ISM330DHCX_STATUS_SPIAUX

◆ ISM330DHCX_STEP_COUNTER_H

#define ISM330DHCX_STEP_COUNTER_H   0x63U

Definition at line 1928 of file ism330dhcx_reg.h.

◆ ISM330DHCX_STEP_COUNTER_L

#define ISM330DHCX_STEP_COUNTER_L   0x62U

Definition at line 1927 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_number_of_steps_get().

◆ ISM330DHCX_TAP_CFG0

◆ ISM330DHCX_TAP_CFG1

◆ ISM330DHCX_TAP_CFG2

◆ ISM330DHCX_TAP_SRC

#define ISM330DHCX_TAP_SRC   0x1CU

Definition at line 576 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_all_sources_get().

◆ ISM330DHCX_TAP_THS_6D

◆ ISM330DHCX_TIMESTAMP0

#define ISM330DHCX_TIMESTAMP0   0x40U

Definition at line 812 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_timestamp_raw_get().

◆ ISM330DHCX_TIMESTAMP1

#define ISM330DHCX_TIMESTAMP1   0x41U

Definition at line 813 of file ism330dhcx_reg.h.

◆ ISM330DHCX_TIMESTAMP2

#define ISM330DHCX_TIMESTAMP2   0x42U

Definition at line 814 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_timestamp_rst().

◆ ISM330DHCX_TIMESTAMP3

#define ISM330DHCX_TIMESTAMP3   0x43U

Definition at line 815 of file ism330dhcx_reg.h.

◆ ISM330DHCX_WAKE_UP_DUR

◆ ISM330DHCX_WAKE_UP_SRC

#define ISM330DHCX_WAKE_UP_SRC   0x1BU

◆ ISM330DHCX_WAKE_UP_THS

◆ ISM330DHCX_WHO_AM_I

#define ISM330DHCX_WHO_AM_I   0x0FU

Definition at line 337 of file ism330dhcx_reg.h.

Referenced by ism330dhcx_device_id_get().

◆ ISM330DHCX_X_OFS_USR

#define ISM330DHCX_X_OFS_USR   0x73U

◆ ISM330DHCX_Y_OFS_USR

#define ISM330DHCX_Y_OFS_USR   0x74U

◆ ISM330DHCX_Z_OFS_USR

#define ISM330DHCX_Z_OFS_USR   0x75U

Enumeration Type Documentation

◆ ism330dhcx_aux_sens_on_t

Enumerator
ISM330DHCX_SLV_0 
ISM330DHCX_SLV_0_1 
ISM330DHCX_SLV_0_1_2 
ISM330DHCX_SLV_0_1_2_3 

Definition at line 4076 of file ism330dhcx_reg.h.

◆ ism330dhcx_bdr_gy_t

Enumerator
ISM330DHCX_GY_NOT_BATCHED 
ISM330DHCX_GY_BATCHED_AT_12Hz5 
ISM330DHCX_GY_BATCHED_AT_26Hz 
ISM330DHCX_GY_BATCHED_AT_52Hz 
ISM330DHCX_GY_BATCHED_AT_104Hz 
ISM330DHCX_GY_BATCHED_AT_208Hz 
ISM330DHCX_GY_BATCHED_AT_417Hz 
ISM330DHCX_GY_BATCHED_AT_833Hz 
ISM330DHCX_GY_BATCHED_AT_1667Hz 
ISM330DHCX_GY_BATCHED_AT_3333Hz 
ISM330DHCX_GY_BATCHED_AT_6667Hz 
ISM330DHCX_GY_BATCHED_6Hz5 

Definition at line 3665 of file ism330dhcx_reg.h.

◆ ism330dhcx_bdr_xl_t

Enumerator
ISM330DHCX_XL_NOT_BATCHED 
ISM330DHCX_XL_BATCHED_AT_12Hz5 
ISM330DHCX_XL_BATCHED_AT_26Hz 
ISM330DHCX_XL_BATCHED_AT_52Hz 
ISM330DHCX_XL_BATCHED_AT_104Hz 
ISM330DHCX_XL_BATCHED_AT_208Hz 
ISM330DHCX_XL_BATCHED_AT_417Hz 
ISM330DHCX_XL_BATCHED_AT_833Hz 
ISM330DHCX_XL_BATCHED_AT_1667Hz 
ISM330DHCX_XL_BATCHED_AT_3333Hz 
ISM330DHCX_XL_BATCHED_AT_6667Hz 
ISM330DHCX_XL_BATCHED_AT_6Hz5 

Definition at line 3645 of file ism330dhcx_reg.h.

◆ ism330dhcx_carry_count_en_t

Enumerator
ISM330DHCX_EVERY_STEP 
ISM330DHCX_COUNT_OVERFLOW 

Definition at line 3874 of file ism330dhcx_reg.h.

◆ ism330dhcx_dataready_pulsed_t

Enumerator
ISM330DHCX_DRDY_LATCHED 
ISM330DHCX_DRDY_PULSED 

Definition at line 3057 of file ism330dhcx_reg.h.

◆ ism330dhcx_den_lh_ois_t

Enumerator
ISM330DHCX_AUX_DEN_ACTIVE_LOW 
ISM330DHCX_AUX_DEN_ACTIVE_HIGH 

Definition at line 3233 of file ism330dhcx_reg.h.

◆ ism330dhcx_den_lh_t

Enumerator
ISM330DHCX_DEN_ACT_LOW 
ISM330DHCX_DEN_ACT_HIGH 

Definition at line 3822 of file ism330dhcx_reg.h.

◆ ism330dhcx_den_mode_t

Enumerator
ISM330DHCX_DEN_DISABLE 
ISM330DHCX_LEVEL_FIFO 
ISM330DHCX_LEVEL_LETCHED 
ISM330DHCX_LEVEL_TRIGGER 
ISM330DHCX_EDGE_TRIGGER 

Definition at line 3809 of file ism330dhcx_reg.h.

◆ ism330dhcx_den_xl_g_t

Enumerator
ISM330DHCX_STAMP_IN_GY_DATA 
ISM330DHCX_STAMP_IN_XL_DATA 
ISM330DHCX_STAMP_IN_GY_XL_DATA 

Definition at line 3832 of file ism330dhcx_reg.h.

◆ ism330dhcx_ff_ths_t

Enumerator
ISM330DHCX_FF_TSH_156mg 
ISM330DHCX_FF_TSH_219mg 
ISM330DHCX_FF_TSH_250mg 
ISM330DHCX_FF_TSH_312mg 
ISM330DHCX_FF_TSH_344mg 
ISM330DHCX_FF_TSH_406mg 
ISM330DHCX_FF_TSH_469mg 
ISM330DHCX_FF_TSH_500mg 

Definition at line 3588 of file ism330dhcx_reg.h.

◆ ism330dhcx_fifo_mode_t

Enumerator
ISM330DHCX_BYPASS_MODE 
ISM330DHCX_FIFO_MODE 
ISM330DHCX_STREAM_TO_FIFO_MODE 
ISM330DHCX_BYPASS_TO_STREAM_MODE 
ISM330DHCX_STREAM_MODE 
ISM330DHCX_BYPASS_TO_FIFO_MODE 

Definition at line 3685 of file ism330dhcx_reg.h.

◆ ism330dhcx_fifo_tag_t

Enumerator
ISM330DHCX_GYRO_NC_TAG 
ISM330DHCX_XL_NC_TAG 
ISM330DHCX_TEMPERATURE_TAG 
ISM330DHCX_TIMESTAMP_TAG 
ISM330DHCX_CFG_CHANGE_TAG 
ISM330DHCX_XL_NC_T_2_TAG 
ISM330DHCX_XL_NC_T_1_TAG 
ISM330DHCX_XL_2XC_TAG 
ISM330DHCX_XL_3XC_TAG 
ISM330DHCX_GYRO_NC_T_2_TAG 
ISM330DHCX_GYRO_NC_T_1_TAG 
ISM330DHCX_GYRO_2XC_TAG 
ISM330DHCX_GYRO_3XC_TAG 
ISM330DHCX_SENSORHUB_SLAVE0_TAG 
ISM330DHCX_SENSORHUB_SLAVE1_TAG 
ISM330DHCX_SENSORHUB_SLAVE2_TAG 
ISM330DHCX_SENSORHUB_SLAVE3_TAG 
ISM330DHCX_STEP_CPUNTER_TAG 
ISM330DHCX_GAME_ROTATION_TAG 
ISM330DHCX_GEOMAG_ROTATION_TAG 
ISM330DHCX_ROTATION_TAG 
ISM330DHCX_SENSORHUB_NACK_TAG 

Definition at line 3756 of file ism330dhcx_reg.h.

◆ ism330dhcx_filter_xl_conf_ois_t

Enumerator
ISM330DHCX_631Hz 
ISM330DHCX_295Hz 
ISM330DHCX_140Hz 
ISM330DHCX_68Hz2 
ISM330DHCX_33Hz6 
ISM330DHCX_16Hz7 
ISM330DHCX_8Hz3 
ISM330DHCX_4Hz11 

Definition at line 3339 of file ism330dhcx_reg.h.

◆ ism330dhcx_fs_g_ois_t

Enumerator
ISM330DHCX_125dps_AUX 
ISM330DHCX_250dps_AUX 
ISM330DHCX_500dps_AUX 
ISM330DHCX_1000dps_AUX 
ISM330DHCX_2000dps_AUX 

Definition at line 3270 of file ism330dhcx_reg.h.

◆ ism330dhcx_fs_g_t

Enumerator
ISM330DHCX_125dps 
ISM330DHCX_250dps 
ISM330DHCX_500dps 
ISM330DHCX_1000dps 
ISM330DHCX_2000dps 
ISM330DHCX_4000dps 

Definition at line 2880 of file ism330dhcx_reg.h.

◆ ism330dhcx_fs_xl_ois_t

Enumerator
ISM330DHCX_AUX_2g 
ISM330DHCX_AUX_16g 
ISM330DHCX_AUX_4g 
ISM330DHCX_AUX_8g 

Definition at line 3355 of file ism330dhcx_reg.h.

◆ ism330dhcx_fs_xl_t

Enumerator
ISM330DHCX_2g 
ISM330DHCX_16g 
ISM330DHCX_4g 
ISM330DHCX_8g 

Definition at line 2848 of file ism330dhcx_reg.h.

◆ ism330dhcx_fsm_lc_clr_t

Enumerator
ISM330DHCX_LC_NORMAL 
ISM330DHCX_LC_CLEAR 
ISM330DHCX_LC_CLEAR_DONE 

Definition at line 3970 of file ism330dhcx_reg.h.

◆ ism330dhcx_fsm_odr_t

Enumerator
ISM330DHCX_ODR_FSM_12Hz5 
ISM330DHCX_ODR_FSM_26Hz 
ISM330DHCX_ODR_FSM_52Hz 
ISM330DHCX_ODR_FSM_104Hz 

Definition at line 4003 of file ism330dhcx_reg.h.

◆ ism330dhcx_ftype_ois_t

Enumerator
ISM330DHCX_351Hz39 
ISM330DHCX_236Hz63 
ISM330DHCX_172Hz70 
ISM330DHCX_937Hz91 

Definition at line 3293 of file ism330dhcx_reg.h.

◆ ism330dhcx_ftype_t

Enumerator
ISM330DHCX_ULTRA_LIGHT 
ISM330DHCX_VERY_LIGHT 
ISM330DHCX_LIGHT 
ISM330DHCX_MEDIUM 
ISM330DHCX_STRONG 
ISM330DHCX_VERY_STRONG 
ISM330DHCX_AGGRESSIVE 
ISM330DHCX_XTREME 

Definition at line 3112 of file ism330dhcx_reg.h.

◆ ism330dhcx_g_hm_mode_t

Enumerator
ISM330DHCX_GY_HIGH_PERFORMANCE 
ISM330DHCX_GY_NORMAL 

Definition at line 2938 of file ism330dhcx_reg.h.

◆ ism330dhcx_h_lactive_t

Enumerator
ISM330DHCX_ACTIVE_HIGH 
ISM330DHCX_ACTIVE_LOW 

Definition at line 3435 of file ism330dhcx_reg.h.

◆ ism330dhcx_hp_slope_xl_en_t

Enumerator
ISM330DHCX_HP_PATH_DISABLE_ON_OUT 
ISM330DHCX_SLOPE_ODR_DIV_4 
ISM330DHCX_HP_ODR_DIV_10 
ISM330DHCX_HP_ODR_DIV_20 
ISM330DHCX_HP_ODR_DIV_45 
ISM330DHCX_HP_ODR_DIV_100 
ISM330DHCX_HP_ODR_DIV_200 
ISM330DHCX_HP_ODR_DIV_400 
ISM330DHCX_HP_ODR_DIV_800 
ISM330DHCX_HP_REF_MD_ODR_DIV_10 
ISM330DHCX_HP_REF_MD_ODR_DIV_20 
ISM330DHCX_HP_REF_MD_ODR_DIV_45 
ISM330DHCX_HP_REF_MD_ODR_DIV_100 
ISM330DHCX_HP_REF_MD_ODR_DIV_200 
ISM330DHCX_HP_REF_MD_ODR_DIV_400 
ISM330DHCX_HP_REF_MD_ODR_DIV_800 
ISM330DHCX_LP_ODR_DIV_10 
ISM330DHCX_LP_ODR_DIV_20 
ISM330DHCX_LP_ODR_DIV_45 
ISM330DHCX_LP_ODR_DIV_100 
ISM330DHCX_LP_ODR_DIV_200 
ISM330DHCX_LP_ODR_DIV_400 
ISM330DHCX_LP_ODR_DIV_800 

Definition at line 3131 of file ism330dhcx_reg.h.

◆ ism330dhcx_hpm_g_t

Enumerator
ISM330DHCX_HP_FILTER_NONE 
ISM330DHCX_HP_FILTER_16mHz 
ISM330DHCX_HP_FILTER_65mHz 
ISM330DHCX_HP_FILTER_260mHz 
ISM330DHCX_HP_FILTER_1Hz04 

Definition at line 3177 of file ism330dhcx_reg.h.

◆ ism330dhcx_hpm_ois_t

Enumerator
ISM330DHCX_AUX_HP_DISABLE 
ISM330DHCX_AUX_HP_Hz016 
ISM330DHCX_AUX_HP_Hz065 
ISM330DHCX_AUX_HP_Hz260 
ISM330DHCX_AUX_HP_1Hz040 

Definition at line 3305 of file ism330dhcx_reg.h.

◆ ism330dhcx_i2c_disable_t

Enumerator
ISM330DHCX_I2C_ENABLE 
ISM330DHCX_I2C_DISABLE 

Definition at line 3387 of file ism330dhcx_reg.h.

◆ ism330dhcx_inact_en_t

Enumerator
ISM330DHCX_XL_AND_GY_NOT_AFFECTED 
ISM330DHCX_XL_12Hz5_GY_NOT_AFFECTED 
ISM330DHCX_XL_12Hz5_GY_SLEEP 
ISM330DHCX_XL_12Hz5_GY_PD 

Definition at line 3495 of file ism330dhcx_reg.h.

◆ ism330dhcx_lir_t

Enumerator
ISM330DHCX_ALL_INT_PULSED 
ISM330DHCX_BASE_LATCHED_EMB_PULSED 
ISM330DHCX_BASE_PULSED_EMB_LATCHED 
ISM330DHCX_ALL_INT_LATCHED 

Definition at line 3448 of file ism330dhcx_reg.h.

◆ ism330dhcx_lvl2_ois_t

Enumerator
ISM330DHCX_AUX_DEN_DISABLE 
ISM330DHCX_AUX_DEN_LEVEL_LATCH 
ISM330DHCX_AUX_DEN_LEVEL_TRIG 

Definition at line 3243 of file ism330dhcx_reg.h.

◆ ism330dhcx_mag_x_axis_t

Enumerator
ISM330DHCX_X_EQ_Y 
ISM330DHCX_X_EQ_MIN_Y 
ISM330DHCX_X_EQ_X 
ISM330DHCX_X_EQ_MIN_X 
ISM330DHCX_X_EQ_MIN_Z 
ISM330DHCX_X_EQ_Z 

Definition at line 3937 of file ism330dhcx_reg.h.

◆ ism330dhcx_mag_y_axis_t

Enumerator
ISM330DHCX_Y_EQ_Y 
ISM330DHCX_Y_EQ_MIN_Y 
ISM330DHCX_Y_EQ_X 
ISM330DHCX_Y_EQ_MIN_X 
ISM330DHCX_Y_EQ_MIN_Z 
ISM330DHCX_Y_EQ_Z 

Definition at line 3923 of file ism330dhcx_reg.h.

◆ ism330dhcx_mag_z_axis_t

Enumerator
ISM330DHCX_Z_EQ_Y 
ISM330DHCX_Z_EQ_MIN_Y 
ISM330DHCX_Z_EQ_X 
ISM330DHCX_Z_EQ_MIN_X 
ISM330DHCX_Z_EQ_MIN_Z 
ISM330DHCX_Z_EQ_Z 

Definition at line 3909 of file ism330dhcx_reg.h.

◆ ism330dhcx_mlc_odr_t

Enumerator
ISM330DHCX_ODR_PRGS_12Hz5 
ISM330DHCX_ODR_PRGS_26Hz 
ISM330DHCX_ODR_PRGS_52Hz 
ISM330DHCX_ODR_PRGS_104Hz 

Definition at line 4039 of file ism330dhcx_reg.h.

◆ ism330dhcx_odr_g_t

Enumerator
ISM330DHCX_GY_ODR_OFF 
ISM330DHCX_GY_ODR_12Hz5 
ISM330DHCX_GY_ODR_26Hz 
ISM330DHCX_GY_ODR_52Hz 
ISM330DHCX_GY_ODR_104Hz 
ISM330DHCX_GY_ODR_208Hz 
ISM330DHCX_GY_ODR_416Hz 
ISM330DHCX_GY_ODR_833Hz 
ISM330DHCX_GY_ODR_1666Hz 
ISM330DHCX_GY_ODR_3332Hz 
ISM330DHCX_GY_ODR_6667Hz 

Definition at line 2894 of file ism330dhcx_reg.h.

◆ ism330dhcx_odr_t_batch_t

Enumerator
ISM330DHCX_TEMP_NOT_BATCHED 
ISM330DHCX_TEMP_BATCHED_AT_52Hz 
ISM330DHCX_TEMP_BATCHED_AT_12Hz5 
ISM330DHCX_TEMP_BATCHED_AT_1Hz6 

Definition at line 3699 of file ism330dhcx_reg.h.

◆ ism330dhcx_odr_ts_batch_t

Enumerator
ISM330DHCX_NO_DECIMATION 
ISM330DHCX_DEC_1 
ISM330DHCX_DEC_8 
ISM330DHCX_DEC_32 

Definition at line 3711 of file ism330dhcx_reg.h.

◆ ism330dhcx_odr_xl_t

Enumerator
ISM330DHCX_XL_ODR_OFF 
ISM330DHCX_XL_ODR_12Hz5 
ISM330DHCX_XL_ODR_26Hz 
ISM330DHCX_XL_ODR_52Hz 
ISM330DHCX_XL_ODR_104Hz 
ISM330DHCX_XL_ODR_208Hz 
ISM330DHCX_XL_ODR_416Hz 
ISM330DHCX_XL_ODR_833Hz 
ISM330DHCX_XL_ODR_1666Hz 
ISM330DHCX_XL_ODR_3332Hz 
ISM330DHCX_XL_ODR_6667Hz 
ISM330DHCX_XL_ODR_1Hz6 

Definition at line 2860 of file ism330dhcx_reg.h.

◆ ism330dhcx_ois_en_spi2_t

Enumerator
ISM330DHCX_AUX_DISABLE 
ISM330DHCX_MODE_3_GY 
ISM330DHCX_MODE_4_GY_XL 

Definition at line 3259 of file ism330dhcx_reg.h.

◆ ism330dhcx_ois_on_t

Enumerator
ISM330DHCX_AUX_ON 
ISM330DHCX_AUX_ON_BY_AUX_INTERFACE 

Definition at line 3200 of file ism330dhcx_reg.h.

◆ ism330dhcx_ois_pu_dis_t

Enumerator
ISM330DHCX_AUX_PULL_UP_DISC 
ISM330DHCX_AUX_PULL_UP_CONNECT 

Definition at line 3190 of file ism330dhcx_reg.h.

◆ ism330dhcx_pp_od_t

Enumerator
ISM330DHCX_PUSH_PULL 
ISM330DHCX_OPEN_DRAIN 

Definition at line 3425 of file ism330dhcx_reg.h.

◆ ism330dhcx_reg_access_t

Enumerator
ISM330DHCX_USER_BANK 
ISM330DHCX_SENSOR_HUB_BANK 
ISM330DHCX_EMBEDDED_FUNC_BANK 

Definition at line 3036 of file ism330dhcx_reg.h.

◆ ism330dhcx_rounding_t

Enumerator
ISM330DHCX_NO_ROUND 
ISM330DHCX_ROUND_XL 
ISM330DHCX_ROUND_GY 
ISM330DHCX_ROUND_GY_XL 

Definition at line 3000 of file ism330dhcx_reg.h.

◆ ism330dhcx_sdo_pu_en_t

Enumerator
ISM330DHCX_PULL_UP_DISC 
ISM330DHCX_PULL_UP_CONNECT 

Definition at line 3367 of file ism330dhcx_reg.h.

◆ ism330dhcx_shub_odr_t

Enumerator
ISM330DHCX_SH_ODR_104Hz 
ISM330DHCX_SH_ODR_52Hz 
ISM330DHCX_SH_ODR_26Hz 
ISM330DHCX_SH_ODR_13Hz 

Definition at line 4129 of file ism330dhcx_reg.h.

◆ ism330dhcx_shub_pu_en_t

Enumerator
ISM330DHCX_EXT_PULL_UP 
ISM330DHCX_INTERNAL_PULL_UP 

Definition at line 4091 of file ism330dhcx_reg.h.

◆ ism330dhcx_sim_ois_t

Enumerator
ISM330DHCX_AUX_SPI_4_WIRE 
ISM330DHCX_AUX_SPI_3_WIRE 

Definition at line 3283 of file ism330dhcx_reg.h.

◆ ism330dhcx_sim_t

Enumerator
ISM330DHCX_SPI_4_WIRE 
ISM330DHCX_SPI_3_WIRE 

Definition at line 3377 of file ism330dhcx_reg.h.

◆ ism330dhcx_single_double_tap_t

Enumerator
ISM330DHCX_ONLY_SINGLE 
ISM330DHCX_BOTH_SINGLE_DOUBLE 

Definition at line 3563 of file ism330dhcx_reg.h.

◆ ism330dhcx_sixd_ths_t

Enumerator
ISM330DHCX_DEG_80 
ISM330DHCX_DEG_70 
ISM330DHCX_DEG_60 
ISM330DHCX_DEG_50 

Definition at line 3573 of file ism330dhcx_reg.h.

◆ ism330dhcx_sleep_status_on_int_t

Enumerator
ISM330DHCX_DRIVE_SLEEP_CHG_EVENT 
ISM330DHCX_DRIVE_SLEEP_STATUS 

Definition at line 3485 of file ism330dhcx_reg.h.

◆ ism330dhcx_slope_fds_t

Enumerator
ISM330DHCX_USE_SLOPE 
ISM330DHCX_USE_HPF 

Definition at line 3167 of file ism330dhcx_reg.h.

◆ ism330dhcx_st_g_t

Enumerator
ISM330DHCX_GY_ST_DISABLE 
ISM330DHCX_GY_ST_POSITIVE 
ISM330DHCX_GY_ST_NEGATIVE 

Definition at line 3090 of file ism330dhcx_reg.h.

◆ ism330dhcx_st_ois_clampdis_t

Enumerator
ISM330DHCX_ENABLE_CLAMP 
ISM330DHCX_DISABLE_CLAMP 

Definition at line 3318 of file ism330dhcx_reg.h.

◆ ism330dhcx_st_ois_t

Enumerator
ISM330DHCX_AUX_GY_DISABLE 
ISM330DHCX_AUX_GY_POS 
ISM330DHCX_AUX_GY_NEG 

Definition at line 3328 of file ism330dhcx_reg.h.

◆ ism330dhcx_st_xl_ois_t

Enumerator
ISM330DHCX_AUX_XL_DISABLE 
ISM330DHCX_AUX_XL_POS 
ISM330DHCX_AUX_XL_NEG 

Definition at line 3222 of file ism330dhcx_reg.h.

◆ ism330dhcx_st_xl_t

Enumerator
ISM330DHCX_XL_ST_DISABLE 
ISM330DHCX_XL_ST_POSITIVE 
ISM330DHCX_XL_ST_NEGATIVE 

Definition at line 3079 of file ism330dhcx_reg.h.

◆ ism330dhcx_start_config_t

Enumerator
ISM330DHCX_EXT_ON_INT2_PIN 
ISM330DHCX_XL_GY_DRDY 

Definition at line 4106 of file ism330dhcx_reg.h.

◆ ism330dhcx_tap_priority_t

Enumerator
ISM330DHCX_XYZ 
ISM330DHCX_YXZ 
ISM330DHCX_XZY 
ISM330DHCX_ZYX 
ISM330DHCX_YZX 
ISM330DHCX_ZXY 

Definition at line 3530 of file ism330dhcx_reg.h.

◆ ism330dhcx_trig_counter_bdr_t

Enumerator
ISM330DHCX_XL_BATCH_EVENT 
ISM330DHCX_GYRO_BATCH_EVENT 

Definition at line 3723 of file ism330dhcx_reg.h.

◆ ism330dhcx_uncoptr_rate_t

Enumerator
ISM330DHCX_CMP_DISABLE 
ISM330DHCX_CMP_ALWAYS 
ISM330DHCX_CMP_8_TO_1 
ISM330DHCX_CMP_16_TO_1 
ISM330DHCX_CMP_32_TO_1 

Definition at line 3617 of file ism330dhcx_reg.h.

◆ ism330dhcx_usr_off_w_t

Enumerator
ISM330DHCX_LSb_1mg 
ISM330DHCX_LSb_16mg 

Definition at line 2918 of file ism330dhcx_reg.h.

◆ ism330dhcx_wake_ths_w_t

Enumerator
ISM330DHCX_LSb_FS_DIV_64 
ISM330DHCX_LSb_FS_DIV_256 

Definition at line 3460 of file ism330dhcx_reg.h.

◆ ism330dhcx_write_once_t

Enumerator
ISM330DHCX_EACH_SH_CYCLE 
ISM330DHCX_ONLY_FIRST_CYCLE 

Definition at line 4116 of file ism330dhcx_reg.h.

◆ ism330dhcx_xl_hm_mode_t

Enumerator
ISM330DHCX_HIGH_PERFORMANCE_MD 
ISM330DHCX_LOW_NORMAL_POWER_MD 

Definition at line 2928 of file ism330dhcx_reg.h.

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_acceleration_raw_get()

int32_t ism330dhcx_acceleration_raw_get ( stmdev_ctx_t * ctx,
int16_t * val )

Linear acceleration output register.

The value is expressed as a 16-bit word in two’s complement.[get]

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

Definition at line 1730 of file ism330dhcx_reg.c.

References ISM330DHCX_OUTX_L_A, and ism330dhcx_read_reg().

Referenced by QwDevISM330DHCX::getAccel(), and QwDevISM330DHCX::getRawAccel().

◆ 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_all_on_int1_get()

int32_t ism330dhcx_all_on_int1_get ( stmdev_ctx_t * ctx,
uint8_t * val )

All interrupt signals become available on INT1 pin.

[get]

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

Definition at line 5094 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_all_on_int1_set()

int32_t ism330dhcx_all_on_int1_set ( stmdev_ctx_t * ctx,
uint8_t val )

All interrupt signals become available on INT1 pin.

[set]

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

Definition at line 5069 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_all_sources_get()

int32_t ism330dhcx_all_sources_get ( stmdev_ctx_t * ctx,
ism330dhcx_all_sources_t * val )

◆ ism330dhcx_angular_rate_raw_get()

int32_t ism330dhcx_angular_rate_raw_get ( stmdev_ctx_t * ctx,
int16_t * val )

Angular rate sensor.

The value is expressed as a 16-bit word in two’s complement.[get]

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

Definition at line 1705 of file ism330dhcx_reg.c.

References ISM330DHCX_OUTX_L_G, and ism330dhcx_read_reg().

Referenced by QwDevISM330DHCX::getGyro(), and QwDevISM330DHCX::getRawGyro().

◆ ism330dhcx_auto_increment_get()

int32_t ism330dhcx_auto_increment_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Register address automatically incremented during a multiple byte access with a serial interface.

[get]

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

Definition at line 2449 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_c_t::if_inc, ISM330DHCX_CTRL3_C, and ism330dhcx_read_reg().

◆ ism330dhcx_auto_increment_set()

int32_t ism330dhcx_auto_increment_set ( stmdev_ctx_t * ctx,
uint8_t val )

Register address automatically incremented during a multiple byte access with a serial interface.

[set]

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

Definition at line 2423 of file ism330dhcx_reg.c.

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

◆ 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_batch_counter_threshold_get()

int32_t ism330dhcx_batch_counter_threshold_get ( stmdev_ctx_t * ctx,
uint16_t * val )

Batch data rate counter.

[get]

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

Definition at line 7494 of file ism330dhcx_reg.c.

References ism330dhcx_counter_bdr_reg1_t::cnt_bdr_th, ism330dhcx_counter_bdr_reg2_t::cnt_bdr_th, ISM330DHCX_COUNTER_BDR_REG1, ISM330DHCX_COUNTER_BDR_REG2, and ism330dhcx_read_reg().

◆ ism330dhcx_batch_counter_threshold_set()

int32_t ism330dhcx_batch_counter_threshold_set ( stmdev_ctx_t * ctx,
uint16_t val )

Batch data rate counter.

[set]

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

Definition at line 7458 of file ism330dhcx_reg.c.

References ism330dhcx_counter_bdr_reg2_t::cnt_bdr_th, ISM330DHCX_COUNTER_BDR_REG1, ISM330DHCX_COUNTER_BDR_REG2, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ 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_boot_get()

int32_t ism330dhcx_boot_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Reboot memory content.

Reload the calibration parameters.[get]

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

Definition at line 2493 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_c_t::boot, ISM330DHCX_CTRL3_C, and ism330dhcx_read_reg().

◆ ism330dhcx_boot_set()

int32_t ism330dhcx_boot_set ( stmdev_ctx_t * ctx,
uint8_t val )

Reboot memory content.

Reload the calibration parameters.[set]

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

Definition at line 2468 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_compression_algo_get()

int32_t ism330dhcx_compression_algo_get ( stmdev_ctx_t * ctx,
ism330dhcx_uncoptr_rate_t * val )

Enable and configure compression algo.

[get]

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

Definition at line 6735 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl2_t::fifo_compr_rt_en, ISM330DHCX_CMP_16_TO_1, ISM330DHCX_CMP_32_TO_1, ISM330DHCX_CMP_8_TO_1, ISM330DHCX_CMP_ALWAYS, ISM330DHCX_CMP_DISABLE, ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), and ism330dhcx_fifo_ctrl2_t::uncoptr_rate.

◆ ism330dhcx_compression_algo_init_get()

int32_t ism330dhcx_compression_algo_init_get ( stmdev_ctx_t * ctx,
uint8_t * val )

FIFO compression feature initialization request.

[get].

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

Definition at line 6650 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_init_b_t::fifo_compr_init, ISM330DHCX_EMB_FUNC_INIT_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_compression_algo_init_set()

int32_t ism330dhcx_compression_algo_init_set ( stmdev_ctx_t * ctx,
uint8_t val )

FIFO compression feature initialization request.

[set].

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

Definition at line 6613 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_init_b_t::fifo_compr_init, ISM330DHCX_EMB_FUNC_INIT_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_compression_algo_real_time_get()

int32_t ism330dhcx_compression_algo_real_time_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables/Disables compression algorithm runtime.

[get]

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

Definition at line 6854 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl2_t::fifo_compr_rt_en, ISM330DHCX_FIFO_CTRL2, and ism330dhcx_read_reg().

◆ ism330dhcx_compression_algo_real_time_set()

int32_t ism330dhcx_compression_algo_real_time_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables/Disables compression algorithm runtime[set].

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

Definition at line 6828 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl2_t::fifo_compr_rt_en, ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_compression_algo_set()

int32_t ism330dhcx_compression_algo_set ( stmdev_ctx_t * ctx,
ism330dhcx_uncoptr_rate_t val )

Enable and configure compression algo.

[set]

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

Definition at line 6680 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_en_b_t::fifo_compr_en, ism330dhcx_fifo_ctrl2_t::fifo_compr_rt_en, ISM330DHCX_EMB_FUNC_EN_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FIFO_CTRL2, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_fifo_ctrl2_t::uncoptr_rate.

◆ ism330dhcx_data_ready_mode_get()

int32_t ism330dhcx_data_ready_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_dataready_pulsed_t * val )

Data-ready pulsed / letched mode.

[get]

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

Definition at line 2328 of file ism330dhcx_reg.c.

References ism330dhcx_counter_bdr_reg1_t::dataready_pulsed, ISM330DHCX_COUNTER_BDR_REG1, ISM330DHCX_DRDY_LATCHED, ISM330DHCX_DRDY_PULSED, and ism330dhcx_read_reg().

◆ ism330dhcx_data_ready_mode_set()

int32_t ism330dhcx_data_ready_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_dataready_pulsed_t val )

Data-ready pulsed / letched mode.

[set]

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

Definition at line 2301 of file ism330dhcx_reg.c.

References ism330dhcx_counter_bdr_reg1_t::dataready_pulsed, ISM330DHCX_COUNTER_BDR_REG1, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setDataReadyMode().

◆ ism330dhcx_den_enable_get()

int32_t ism330dhcx_den_enable_get ( stmdev_ctx_t * ctx,
ism330dhcx_den_xl_g_t * val )

DEN configuration.

[get]

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

Definition at line 8250 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_xl_g, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), ISM330DHCX_STAMP_IN_GY_DATA, ISM330DHCX_STAMP_IN_GY_XL_DATA, and ISM330DHCX_STAMP_IN_XL_DATA.

◆ ism330dhcx_den_enable_set()

int32_t ism330dhcx_den_enable_set ( stmdev_ctx_t * ctx,
ism330dhcx_den_xl_g_t val )

DEN configuration.

[set]

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

Definition at line 8224 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_xl_g, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_den_mark_axis_x_get()

int32_t ism330dhcx_den_mark_axis_x_get ( stmdev_ctx_t * ctx,
uint8_t * val )

DEN value stored in LSB of X-axis.

[get]

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

Definition at line 8313 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_z, ISM330DHCX_CTRL9_XL, and ism330dhcx_read_reg().

◆ ism330dhcx_den_mark_axis_x_set()

int32_t ism330dhcx_den_mark_axis_x_set ( stmdev_ctx_t * ctx,
uint8_t val )

DEN value stored in LSB of X-axis.

[set]

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

Definition at line 8288 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_z, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_den_mark_axis_y_get()

int32_t ism330dhcx_den_mark_axis_y_get ( stmdev_ctx_t * ctx,
uint8_t * val )

DEN value stored in LSB of Y-axis.

[get]

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

Definition at line 8358 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_y, ISM330DHCX_CTRL9_XL, and ism330dhcx_read_reg().

◆ ism330dhcx_den_mark_axis_y_set()

int32_t ism330dhcx_den_mark_axis_y_set ( stmdev_ctx_t * ctx,
uint8_t val )

DEN value stored in LSB of Y-axis.

[set]

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

Definition at line 8333 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_y, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_den_mark_axis_z_get()

int32_t ism330dhcx_den_mark_axis_z_get ( stmdev_ctx_t * ctx,
uint8_t * val )

DEN value stored in LSB of Z-axis.

[get]

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

Definition at line 8403 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_x, ISM330DHCX_CTRL9_XL, and ism330dhcx_read_reg().

◆ ism330dhcx_den_mark_axis_z_set()

int32_t ism330dhcx_den_mark_axis_z_set ( stmdev_ctx_t * ctx,
uint8_t val )

DEN value stored in LSB of Z-axis.

[set]

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

Definition at line 8378 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_x, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_den_mode_get()

int32_t ism330dhcx_den_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_den_mode_t * val )

DEN functionality marking mode.

[get]

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

Definition at line 8118 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl6_c_t::den_mode, ISM330DHCX_CTRL6_C, ISM330DHCX_DEN_DISABLE, ISM330DHCX_EDGE_TRIGGER, ISM330DHCX_LEVEL_FIFO, ISM330DHCX_LEVEL_LETCHED, ISM330DHCX_LEVEL_TRIGGER, and ism330dhcx_read_reg().

◆ ism330dhcx_den_mode_set()

int32_t ism330dhcx_den_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_den_mode_t val )

DEN functionality marking mode.

[set]

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

Definition at line 8092 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl6_c_t::den_mode, ISM330DHCX_CTRL6_C, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_den_polarity_get()

int32_t ism330dhcx_den_polarity_get ( stmdev_ctx_t * ctx,
ism330dhcx_den_lh_t * val )

DEN active level configuration.

[get]

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

Definition at line 8190 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_lh, ISM330DHCX_CTRL9_XL, ISM330DHCX_DEN_ACT_HIGH, ISM330DHCX_DEN_ACT_LOW, and ism330dhcx_read_reg().

◆ ism330dhcx_den_polarity_set()

int32_t ism330dhcx_den_polarity_set ( stmdev_ctx_t * ctx,
ism330dhcx_den_lh_t val )

DEN active level configuration.

[set]

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

Definition at line 8164 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::den_lh, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_device_conf_get()

int32_t ism330dhcx_device_conf_get ( stmdev_ctx_t * ctx,
uint8_t * val )

DEVICE_CONF bit configuration[get].

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

Definition at line 1896 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::device_conf, ISM330DHCX_CTRL9_XL, and ism330dhcx_read_reg().

◆ ism330dhcx_device_conf_set()

int32_t ism330dhcx_device_conf_set ( stmdev_ctx_t * ctx,
uint8_t val )

DEVICE_CONF bit configuration[set].

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

Definition at line 1871 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl9_xl_t::device_conf, ISM330DHCX_CTRL9_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setDeviceConfig().

◆ ism330dhcx_device_id_get()

int32_t ism330dhcx_device_id_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

Device Who am I.

[get]

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

Definition at line 2362 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_WHO_AM_I.

Referenced by QwDevISM330DHCX::getUniqueId().

◆ ism330dhcx_emb_fsm_en_get()

int32_t ism330dhcx_emb_fsm_en_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Embedded final state machine functions mode.

[get]

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

Definition at line 9628 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_en_b_t::fsm_en, ISM330DHCX_EMB_FUNC_EN_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_emb_fsm_en_set()

int32_t ism330dhcx_emb_fsm_en_set ( stmdev_ctx_t * ctx,
uint8_t val )

Embedded final state machine functions mode.

[set]

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

Definition at line 9593 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_en_b_t::fsm_en, ISM330DHCX_EMB_FUNC_EN_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_ff_dur_get()

int32_t ism330dhcx_ff_dur_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Free-fall duration event(1LSb = 1 / ODR).

[get]

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

Definition at line 6511 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_dur, ism330dhcx_wake_up_dur_t::ff_dur, ISM330DHCX_FREE_FALL, ism330dhcx_read_reg(), and ISM330DHCX_WAKE_UP_DUR.

◆ ism330dhcx_ff_dur_set()

int32_t ism330dhcx_ff_dur_set ( stmdev_ctx_t * ctx,
uint8_t val )

Free-fall duration event(1LSb = 1 / ODR).

[set]

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

Definition at line 6472 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_dur, ism330dhcx_wake_up_dur_t::ff_dur, ISM330DHCX_FREE_FALL, ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_write_reg().

◆ ism330dhcx_ff_threshold_get()

int32_t ism330dhcx_ff_threshold_get ( stmdev_ctx_t * ctx,
ism330dhcx_ff_ths_t * val )

Free fall threshold setting.

[get]

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

Definition at line 6414 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_ths, ISM330DHCX_FF_TSH_156mg, ISM330DHCX_FF_TSH_219mg, ISM330DHCX_FF_TSH_250mg, ISM330DHCX_FF_TSH_312mg, ISM330DHCX_FF_TSH_344mg, ISM330DHCX_FF_TSH_406mg, ISM330DHCX_FF_TSH_469mg, ISM330DHCX_FF_TSH_500mg, ISM330DHCX_FREE_FALL, and ism330dhcx_read_reg().

◆ ism330dhcx_ff_threshold_set()

int32_t ism330dhcx_ff_threshold_set ( stmdev_ctx_t * ctx,
ism330dhcx_ff_ths_t val )

Free fall threshold setting.

[set]

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

Definition at line 6388 of file ism330dhcx_reg.c.

References ism330dhcx_free_fall_t::ff_ths, ISM330DHCX_FREE_FALL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_fifo_cnt_event_batch_get()

int32_t ism330dhcx_fifo_cnt_event_batch_get ( stmdev_ctx_t * ctx,
ism330dhcx_trig_counter_bdr_t * val )

Selects the trigger for the internal counter of batching events between XL and gyro.

[get]

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

Definition at line 7375 of file ism330dhcx_reg.c.

References ISM330DHCX_COUNTER_BDR_REG1, ISM330DHCX_GYRO_BATCH_EVENT, ism330dhcx_read_reg(), ISM330DHCX_XL_BATCH_EVENT, and ism330dhcx_counter_bdr_reg1_t::trig_counter_bdr.

◆ ism330dhcx_fifo_cnt_event_batch_set()

int32_t ism330dhcx_fifo_cnt_event_batch_set ( stmdev_ctx_t * ctx,
ism330dhcx_trig_counter_bdr_t val )

Selects the trigger for the internal counter of batching events between XL and gyro.

[set]

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

Definition at line 7347 of file ism330dhcx_reg.c.

References ISM330DHCX_COUNTER_BDR_REG1, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_counter_bdr_reg1_t::trig_counter_bdr.

◆ ism330dhcx_fifo_data_level_get()

int32_t ism330dhcx_fifo_data_level_get ( stmdev_ctx_t * ctx,
uint16_t * val )

Number of unread sensor data (TAG + 6 bytes) stored in FIFO.

[get]

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

Definition at line 7523 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_status1_t::diff_fifo, ISM330DHCX_FIFO_STATUS1, ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_full_flag_get()

int32_t ism330dhcx_fifo_full_flag_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Smart FIFO full status.

[get]

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

Definition at line 7569 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_status2_t::fifo_full_ia, ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_gy_batch_get()

int32_t ism330dhcx_fifo_gy_batch_get ( stmdev_ctx_t * ctx,
ism330dhcx_bdr_gy_t * val )

Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.

[get]

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

Definition at line 7052 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl3_t::bdr_gy, ISM330DHCX_FIFO_CTRL3, ISM330DHCX_GY_BATCHED_6Hz5, ISM330DHCX_GY_BATCHED_AT_104Hz, ISM330DHCX_GY_BATCHED_AT_12Hz5, ISM330DHCX_GY_BATCHED_AT_1667Hz, ISM330DHCX_GY_BATCHED_AT_208Hz, ISM330DHCX_GY_BATCHED_AT_26Hz, ISM330DHCX_GY_BATCHED_AT_3333Hz, ISM330DHCX_GY_BATCHED_AT_417Hz, ISM330DHCX_GY_BATCHED_AT_52Hz, ISM330DHCX_GY_BATCHED_AT_6667Hz, ISM330DHCX_GY_BATCHED_AT_833Hz, ISM330DHCX_GY_NOT_BATCHED, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_gy_batch_set()

int32_t ism330dhcx_fifo_gy_batch_set ( stmdev_ctx_t * ctx,
ism330dhcx_bdr_gy_t val )

Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.

[set]

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

Definition at line 7025 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl3_t::bdr_gy, ISM330DHCX_FIFO_CTRL3, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setGyroFifoBatchSet().

◆ ism330dhcx_fifo_mode_get()

int32_t ism330dhcx_fifo_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_fifo_mode_t * val )

FIFO mode selection.

[get]

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

Definition at line 7152 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl4_t::fifo_mode, ISM330DHCX_BYPASS_MODE, ISM330DHCX_BYPASS_TO_FIFO_MODE, ISM330DHCX_BYPASS_TO_STREAM_MODE, ISM330DHCX_FIFO_CTRL4, ISM330DHCX_FIFO_MODE, ism330dhcx_read_reg(), ISM330DHCX_STREAM_MODE, and ISM330DHCX_STREAM_TO_FIFO_MODE.

◆ ism330dhcx_fifo_mode_set()

int32_t ism330dhcx_fifo_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_fifo_mode_t val )

FIFO mode selection.

[set]

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

Definition at line 7126 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl4_t::fifo_mode, ISM330DHCX_FIFO_CTRL4, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setFifoMode().

◆ ism330dhcx_fifo_out_raw_get()

int32_t ism330dhcx_fifo_out_raw_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

FIFO data output.

[get]

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

Definition at line 1754 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_DATA_OUT_X_L, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_ovr_flag_get()

int32_t ism330dhcx_fifo_ovr_flag_get ( stmdev_ctx_t * ctx,
uint8_t * val )

FIFO overrun status.

[get]

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

Definition at line 7589 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_pedo_batch_get()

int32_t ism330dhcx_fifo_pedo_batch_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable FIFO batching of pedometer embedded function values.

[get]

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

Definition at line 7778 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_FIFO_CFG, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_fifo_pedo_batch_set()

int32_t ism330dhcx_fifo_pedo_batch_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable FIFO batching of pedometer embedded function values.

[set]

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

Definition at line 7742 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_FIFO_CFG, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_emb_func_fifo_cfg_t::pedo_fifo_en.

◆ ism330dhcx_fifo_sensor_tag_get()

◆ ism330dhcx_fifo_status_get()

int32_t ism330dhcx_fifo_status_get ( stmdev_ctx_t * ctx,
ism330dhcx_fifo_status2_t * val )

Smart FIFO status.

[get]

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

Definition at line 7551 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_stop_on_wtm_get()

int32_t ism330dhcx_fifo_stop_on_wtm_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Sensing chain FIFO stop values memorization at threshold level.

[get]

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

Definition at line 6902 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), and ism330dhcx_fifo_ctrl2_t::stop_on_wtm.

◆ ism330dhcx_fifo_stop_on_wtm_set()

int32_t ism330dhcx_fifo_stop_on_wtm_set ( stmdev_ctx_t * ctx,
uint8_t val )

Sensing chain FIFO stop values memorization at threshold level.

[set]

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

Definition at line 6875 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_fifo_ctrl2_t::stop_on_wtm.

◆ ism330dhcx_fifo_temp_batch_get()

int32_t ism330dhcx_fifo_temp_batch_get ( stmdev_ctx_t * ctx,
ism330dhcx_odr_t_batch_t * val )

Selects Batching Data Rate (writing frequency in FIFO) for temperature data.

[get]

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

Definition at line 7230 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL4, ism330dhcx_read_reg(), ISM330DHCX_TEMP_BATCHED_AT_12Hz5, ISM330DHCX_TEMP_BATCHED_AT_1Hz6, ISM330DHCX_TEMP_BATCHED_AT_52Hz, ISM330DHCX_TEMP_NOT_BATCHED, and ism330dhcx_fifo_ctrl4_t::odr_t_batch.

◆ ism330dhcx_fifo_temp_batch_set()

int32_t ism330dhcx_fifo_temp_batch_set ( stmdev_ctx_t * ctx,
ism330dhcx_odr_t_batch_t val )

Selects Batching Data Rate (writing frequency in FIFO) for temperature data.

[set]

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

Definition at line 7203 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL4, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_fifo_ctrl4_t::odr_t_batch.

◆ ism330dhcx_fifo_timestamp_decimation_get()

int32_t ism330dhcx_fifo_timestamp_decimation_get ( stmdev_ctx_t * ctx,
ism330dhcx_odr_ts_batch_t * val )

Selects decimation for timestamp batching in FIFO.

Writing rate will be the maximum rate between XL and GYRO BDR divided by decimation decoder.[get]

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

Definition at line 7303 of file ism330dhcx_reg.c.

References ISM330DHCX_DEC_1, ISM330DHCX_DEC_32, ISM330DHCX_DEC_8, ISM330DHCX_FIFO_CTRL4, ISM330DHCX_NO_DECIMATION, ism330dhcx_read_reg(), and ism330dhcx_fifo_ctrl4_t::odr_ts_batch.

◆ ism330dhcx_fifo_timestamp_decimation_set()

int32_t ism330dhcx_fifo_timestamp_decimation_set ( stmdev_ctx_t * ctx,
ism330dhcx_odr_ts_batch_t val )

Selects decimation for timestamp batching in FIFO.

Writing rate will be the maximum rate between XL and GYRO BDR divided by decimation decoder.[set]

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

Definition at line 7274 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL4, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_fifo_ctrl4_t::odr_ts_batch.

Referenced by QwDevISM330DHCX::setFifoTimestampDec().

◆ ism330dhcx_fifo_virtual_sens_odr_chg_get()

int32_t ism330dhcx_fifo_virtual_sens_odr_chg_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables ODR CHANGE virtual sensor to be batched in FIFO.

[get]

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

Definition at line 6808 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), and ism330dhcx_fifo_ctrl2_t::odrchg_en.

◆ ism330dhcx_fifo_virtual_sens_odr_chg_set()

int32_t ism330dhcx_fifo_virtual_sens_odr_chg_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables ODR CHANGE virtual sensor to be batched in FIFO.

[set]

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

Definition at line 6782 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_fifo_ctrl2_t::odrchg_en.

◆ ism330dhcx_fifo_watermark_get()

int32_t ism330dhcx_fifo_watermark_get ( stmdev_ctx_t * ctx,
uint16_t * val )

FIFO watermark level selection.

[get]

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

Definition at line 6584 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL1, ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), ism330dhcx_fifo_ctrl1_t::wtm, and ism330dhcx_fifo_ctrl2_t::wtm.

◆ ism330dhcx_fifo_watermark_set()

int32_t ism330dhcx_fifo_watermark_set ( stmdev_ctx_t * ctx,
uint16_t val )

FIFO watermark level selection.

[set]

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

Definition at line 6551 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_CTRL1, ISM330DHCX_FIFO_CTRL2, ism330dhcx_read_reg(), ism330dhcx_write_reg(), ism330dhcx_fifo_ctrl1_t::wtm, and ism330dhcx_fifo_ctrl2_t::wtm.

Referenced by QwDevISM330DHCX::setFifoWatermark().

◆ ism330dhcx_fifo_wtm_flag_get()

int32_t ism330dhcx_fifo_wtm_flag_get ( stmdev_ctx_t * ctx,
uint8_t * val )

FIFO watermark status.

[get]

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

Definition at line 7608 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_status2_t::fifo_wtm_ia, ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().

◆ ism330dhcx_fifo_xl_batch_get()

int32_t ism330dhcx_fifo_xl_batch_get ( stmdev_ctx_t * ctx,
ism330dhcx_bdr_xl_t * val )

Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.

[get]

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

Definition at line 6950 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl3_t::bdr_xl, ISM330DHCX_FIFO_CTRL3, ism330dhcx_read_reg(), ISM330DHCX_XL_BATCHED_AT_104Hz, ISM330DHCX_XL_BATCHED_AT_12Hz5, ISM330DHCX_XL_BATCHED_AT_1667Hz, ISM330DHCX_XL_BATCHED_AT_208Hz, ISM330DHCX_XL_BATCHED_AT_26Hz, ISM330DHCX_XL_BATCHED_AT_3333Hz, ISM330DHCX_XL_BATCHED_AT_417Hz, ISM330DHCX_XL_BATCHED_AT_52Hz, ISM330DHCX_XL_BATCHED_AT_6667Hz, ISM330DHCX_XL_BATCHED_AT_6Hz5, ISM330DHCX_XL_BATCHED_AT_833Hz, and ISM330DHCX_XL_NOT_BATCHED.

◆ ism330dhcx_fifo_xl_batch_set()

int32_t ism330dhcx_fifo_xl_batch_set ( stmdev_ctx_t * ctx,
ism330dhcx_bdr_xl_t val )

Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.

[set]

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

Definition at line 6923 of file ism330dhcx_reg.c.

References ism330dhcx_fifo_ctrl3_t::bdr_xl, ISM330DHCX_FIFO_CTRL3, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setAccelFifoBatchSet().

◆ ism330dhcx_filter_settling_mask_get()

int32_t ism330dhcx_filter_settling_mask_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked).

[get]

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

Definition at line 2773 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_filter_settling_mask_set()

int32_t ism330dhcx_filter_settling_mask_set ( stmdev_ctx_t * ctx,
uint8_t val )

Mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked).

[set]

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

Definition at line 2746 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_from_fs1000dps_to_mdps()

float ism330dhcx_from_fs1000dps_to_mdps ( int16_t lsb)

Definition at line 126 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert1000dpsToMdps().

◆ ism330dhcx_from_fs125dps_to_mdps()

float ism330dhcx_from_fs125dps_to_mdps ( int16_t lsb)

Definition at line 111 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert125dpsToMdps().

◆ ism330dhcx_from_fs16g_to_mg()

float ism330dhcx_from_fs16g_to_mg ( int16_t lsb)

Definition at line 106 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert16gToMg().

◆ ism330dhcx_from_fs2000dps_to_mdps()

float ism330dhcx_from_fs2000dps_to_mdps ( int16_t lsb)

Definition at line 131 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert2000dpsToMdps().

◆ ism330dhcx_from_fs250dps_to_mdps()

float ism330dhcx_from_fs250dps_to_mdps ( int16_t lsb)

Definition at line 116 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert250dpsToMdps().

◆ ism330dhcx_from_fs2g_to_mg()

float ism330dhcx_from_fs2g_to_mg ( int16_t lsb)

Definition at line 91 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert2gToMg().

◆ ism330dhcx_from_fs4000dps_to_mdps()

float ism330dhcx_from_fs4000dps_to_mdps ( int16_t lsb)

Definition at line 136 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert4000dpsToMdps().

◆ ism330dhcx_from_fs4g_to_mg()

float ism330dhcx_from_fs4g_to_mg ( int16_t lsb)

Definition at line 96 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert4gToMg().

◆ ism330dhcx_from_fs500dps_to_mdps()

float ism330dhcx_from_fs500dps_to_mdps ( int16_t lsb)

Definition at line 121 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert500dpsToMdps().

◆ ism330dhcx_from_fs8g_to_mg()

float ism330dhcx_from_fs8g_to_mg ( int16_t lsb)

Definition at line 101 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convert8gToMg().

◆ ism330dhcx_from_lsb_to_celsius()

float ism330dhcx_from_lsb_to_celsius ( int16_t lsb)

Definition at line 141 of file ism330dhcx_reg.c.

Referenced by QwDevISM330DHCX::convertToCelsius().

◆ ism330dhcx_from_lsb_to_nsec()

float ism330dhcx_from_lsb_to_nsec ( int32_t lsb)

Definition at line 146 of file ism330dhcx_reg.c.

◆ ism330dhcx_fsm_data_rate_get()

int32_t ism330dhcx_fsm_data_rate_get ( stmdev_ctx_t * ctx,
ism330dhcx_fsm_odr_t * val )

Finite State Machine ODR configuration.

[get]

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

Definition at line 9985 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_odr_cfg_b_t::fsm_odr, ISM330DHCX_EMB_FUNC_ODR_CFG_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ISM330DHCX_ODR_FSM_104Hz, ISM330DHCX_ODR_FSM_12Hz5, ISM330DHCX_ODR_FSM_26Hz, ISM330DHCX_ODR_FSM_52Hz, ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

Referenced by ism330dhcx_gy_data_rate_set(), and ism330dhcx_xl_data_rate_set().

◆ ism330dhcx_fsm_data_rate_set()

int32_t ism330dhcx_fsm_data_rate_set ( stmdev_ctx_t * ctx,
ism330dhcx_fsm_odr_t val )

Finite State Machine ODR configuration.

[set]

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

Definition at line 9947 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_odr_cfg_b_t::fsm_odr, ISM330DHCX_EMB_FUNC_ODR_CFG_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_emb_func_odr_cfg_b_t::not_used_01, and ism330dhcx_emb_func_odr_cfg_b_t::not_used_02.

◆ ism330dhcx_fsm_enable_get()

int32_t ism330dhcx_fsm_enable_get ( stmdev_ctx_t * ctx,
ism330dhcx_emb_fsm_enable_t * val )

Embedded final state machine functions mode.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure of registers from FSM_ENABLE_A to FSM_ENABLE_B
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9738 of file ism330dhcx_reg.c.

References ism330dhcx_emb_fsm_enable_t::fsm_enable_a, ism330dhcx_emb_fsm_enable_t::fsm_enable_b, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_ENABLE_A, ISM330DHCX_FSM_ENABLE_B, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

Referenced by ism330dhcx_gy_data_rate_set(), and ism330dhcx_xl_data_rate_set().

◆ ism330dhcx_fsm_enable_set()

◆ ism330dhcx_fsm_init_get()

int32_t ism330dhcx_fsm_init_get ( stmdev_ctx_t * ctx,
uint8_t * val )

FSM initialization request.

[get]

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

Definition at line 10072 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_init_b_t::fsm_init, ISM330DHCX_EMB_FUNC_INIT_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_fsm_init_set()

int32_t ism330dhcx_fsm_init_set ( stmdev_ctx_t * ctx,
uint8_t val )

FSM initialization request.

[set]

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

Definition at line 10037 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_init_b_t::fsm_init, ISM330DHCX_EMB_FUNC_INIT_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_fsm_number_of_programs_get()

int32_t ism330dhcx_fsm_number_of_programs_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

FSM number of programs register.

[get]

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

Definition at line 10191 of file ism330dhcx_reg.c.

References ISM330DHCX_FSM_PROGRAMS, and ism330dhcx_ln_pg_read_byte().

◆ ism330dhcx_fsm_number_of_programs_set()

int32_t ism330dhcx_fsm_number_of_programs_set ( stmdev_ctx_t * ctx,
uint8_t * buff )

FSM number of programs 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 10167 of file ism330dhcx_reg.c.

References ISM330DHCX_FSM_PROGRAMS, and ism330dhcx_ln_pg_write_byte().

◆ ism330dhcx_fsm_out_get()

int32_t ism330dhcx_fsm_out_get ( stmdev_ctx_t * ctx,
ism330dhcx_fsm_out_t * val )

FSM output registers.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure of registers from FSM_OUTS1 to FSM_OUTS16
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 9919 of file ism330dhcx_reg.c.

References ism330dhcx_fsm_out_t::fsm_outs1, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_OUTS1, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_fsm_start_address_get()

int32_t ism330dhcx_fsm_start_address_get ( stmdev_ctx_t * ctx,
uint16_t * val )

FSM start address register (r/w).

First available address is 0x033C.[get]

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

Definition at line 10240 of file ism330dhcx_reg.c.

References ISM330DHCX_FSM_START_ADD_H, ISM330DHCX_FSM_START_ADD_L, and ism330dhcx_ln_pg_read_byte().

◆ ism330dhcx_fsm_start_address_set()

int32_t ism330dhcx_fsm_start_address_set ( stmdev_ctx_t * ctx,
uint16_t val )

FSM start address register (r/w).

First available address is 0x033C.[set]

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

Definition at line 10209 of file ism330dhcx_reg.c.

References ISM330DHCX_FSM_START_ADD_H, ISM330DHCX_FSM_START_ADD_L, and ism330dhcx_ln_pg_write_byte().

◆ 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_filter_lp1_get()

int32_t ism330dhcx_gy_filter_lp1_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables gyroscope digital LPF1 if auxiliary SPI is disabled; the bandwidth can be selected through FTYPE [2:0] in CTRL6_C.

[get]

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

Definition at line 2726 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_gy_filter_lp1_set()

int32_t ism330dhcx_gy_filter_lp1_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables gyroscope digital LPF1 if auxiliary SPI is disabled; the bandwidth can be selected through FTYPE [2:0] in CTRL6_C.

[set]

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

Definition at line 2700 of file ism330dhcx_reg.c.

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

Referenced by QwDevISM330DHCX::setGyroFilterLP1().

◆ 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_hp_path_internal_get()

int32_t ism330dhcx_gy_hp_path_internal_get ( stmdev_ctx_t * ctx,
ism330dhcx_hpm_g_t * val )

Enables gyroscope digital high-pass filter.

The filter is enabled only if the gyro is in HP mode.[get]

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

Definition at line 3212 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl7_g_t::hp_en_g, ism330dhcx_ctrl7_g_t::hpm_g, ISM330DHCX_CTRL7_G, ISM330DHCX_HP_FILTER_16mHz, ISM330DHCX_HP_FILTER_1Hz04, ISM330DHCX_HP_FILTER_260mHz, ISM330DHCX_HP_FILTER_65mHz, ISM330DHCX_HP_FILTER_NONE, and ism330dhcx_read_reg().

◆ ism330dhcx_gy_hp_path_internal_set()

int32_t ism330dhcx_gy_hp_path_internal_set ( stmdev_ctx_t * ctx,
ism330dhcx_hpm_g_t val )

Enables gyroscope digital high-pass filter.

The filter is enabled only if the gyro is in HP mode.[set]

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

Definition at line 3184 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl7_g_t::hp_en_g, ism330dhcx_ctrl7_g_t::hpm_g, ISM330DHCX_CTRL7_G, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_gy_lp1_bandwidth_get()

int32_t ism330dhcx_gy_lp1_bandwidth_get ( stmdev_ctx_t * ctx,
ism330dhcx_ftype_t * val )

Gyroscope low pass filter 1 bandwidth.

[get]

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

Definition at line 2819 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl6_c_t::ftype, ISM330DHCX_AGGRESSIVE, ISM330DHCX_CTRL6_C, ISM330DHCX_LIGHT, ISM330DHCX_MEDIUM, ism330dhcx_read_reg(), ISM330DHCX_STRONG, ISM330DHCX_ULTRA_LIGHT, ISM330DHCX_VERY_LIGHT, ISM330DHCX_VERY_STRONG, and ISM330DHCX_XTREME.

◆ ism330dhcx_gy_lp1_bandwidth_set()

int32_t ism330dhcx_gy_lp1_bandwidth_set ( stmdev_ctx_t * ctx,
ism330dhcx_ftype_t val )

Gyroscope low pass filter 1 bandwidth.

[set]

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

Definition at line 2793 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl6_c_t::ftype, ISM330DHCX_CTRL6_C, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setGyroLP1Bandwidth().

◆ 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_gy_self_test_get()

int32_t ism330dhcx_gy_self_test_get ( stmdev_ctx_t * ctx,
ism330dhcx_st_g_t * val )

Angular rate sensor self-test enable.

[get]

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

Definition at line 2604 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL5_C, ISM330DHCX_GY_ST_DISABLE, ISM330DHCX_GY_ST_NEGATIVE, ISM330DHCX_GY_ST_POSITIVE, ism330dhcx_read_reg(), and ism330dhcx_ctrl5_c_t::st_g.

◆ ism330dhcx_gy_self_test_set()

int32_t ism330dhcx_gy_self_test_set ( stmdev_ctx_t * ctx,
ism330dhcx_st_g_t val )

Angular rate sensor self-test enable.

[set]

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

Definition at line 2578 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL5_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl5_c_t::st_g.

Referenced by QwDevISM330DHCX::setGyroSelfTest().

◆ 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_int_notification_get()

int32_t ism330dhcx_int_notification_get ( stmdev_ctx_t * ctx,
ism330dhcx_lir_t * val )

All interrupt signals notification mode.

[get]

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

Definition at line 5164 of file ism330dhcx_reg.c.

References ism330dhcx_page_rw_t::emb_func_lir, ISM330DHCX_ALL_INT_LATCHED, ISM330DHCX_ALL_INT_PULSED, ISM330DHCX_BASE_LATCHED_EMB_PULSED, ISM330DHCX_BASE_PULSED_EMB_LATCHED, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ISM330DHCX_PAGE_RW, ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ISM330DHCX_USER_BANK, and ism330dhcx_tap_cfg0_t::lir.

◆ ism330dhcx_int_notification_set()

int32_t ism330dhcx_int_notification_set ( stmdev_ctx_t * ctx,
ism330dhcx_lir_t val )

All interrupt signals notification mode.

[set]

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

Definition at line 5113 of file ism330dhcx_reg.c.

References ism330dhcx_page_rw_t::emb_func_lir, ism330dhcx_tap_cfg0_t::int_clr_on_read, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ISM330DHCX_PAGE_RW, ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg0_t::lir.

Referenced by QwDevISM330DHCX::setIntNotification().

◆ ism330dhcx_ln_pg_read()

int32_t ism330dhcx_ln_pg_read ( stmdev_ctx_t * ctx,
uint16_t address,
uint8_t * val )

◆ ism330dhcx_ln_pg_read_byte()

◆ ism330dhcx_ln_pg_write()

int32_t ism330dhcx_ln_pg_write ( stmdev_ctx_t * ctx,
uint16_t add,
uint8_t * buf,
uint8_t len )

Write buffer in a page.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
bufPage line address.(ptr)
valValue to write.
lenbuffer length.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 2109 of file ism330dhcx_reg.c.

References ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ISM330DHCX_PAGE_ADDRESS, ISM330DHCX_PAGE_RW, ISM330DHCX_PAGE_SEL, ISM330DHCX_PAGE_VALUE, ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_page_sel_t::not_used_01, ism330dhcx_page_address_t::page_addr, ism330dhcx_page_rw_t::page_rw, and ism330dhcx_page_sel_t::page_sel.

◆ ism330dhcx_ln_pg_write_byte()

◆ ism330dhcx_long_clr_get()

int32_t ism330dhcx_long_clr_get ( stmdev_ctx_t * ctx,
ism330dhcx_fsm_lc_clr_t * val )

Clear FSM long counter value.

[get]

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

Definition at line 9871 of file ism330dhcx_reg.c.

References ism330dhcx_fsm_long_counter_clear_t::fsm_lc_clr, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_LONG_COUNTER_CLEAR, ISM330DHCX_LC_CLEAR, ISM330DHCX_LC_CLEAR_DONE, ISM330DHCX_LC_NORMAL, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_long_clr_set()

int32_t ism330dhcx_long_clr_set ( stmdev_ctx_t * ctx,
ism330dhcx_fsm_lc_clr_t val )

Clear FSM long counter value.

[set]

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

Definition at line 9835 of file ism330dhcx_reg.c.

References ism330dhcx_fsm_long_counter_clear_t::fsm_lc_clr, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_LONG_COUNTER_CLEAR, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_long_cnt_flag_data_ready_get()

int32_t ism330dhcx_long_cnt_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Interrupt status bit for FSM long counter timeout interrupt event.

[get]

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

Definition at line 9563 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_status_t::is_fsm_lc, ISM330DHCX_EMB_FUNC_STATUS, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_long_cnt_get()

int32_t ism330dhcx_long_cnt_get ( stmdev_ctx_t * ctx,
uint16_t * val )

FSM long counter status register.

Long counter value is an unsigned integer value (16-bit format).[get]

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

Definition at line 9804 of file ism330dhcx_reg.c.

References ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_LONG_COUNTER_L, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_long_cnt_int_value_get()

int32_t ism330dhcx_long_cnt_int_value_get ( stmdev_ctx_t * ctx,
uint16_t * val )

FSM long counter timeout register (r/w).

The long counter timeout value is an unsigned integer value (16-bit format). When the long counter value reached this value, the FSM generates an interrupt.[get]

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

Definition at line 10137 of file ism330dhcx_reg.c.

References ISM330DHCX_FSM_LC_TIMEOUT_H, ISM330DHCX_FSM_LC_TIMEOUT_L, and ism330dhcx_ln_pg_read_byte().

◆ ism330dhcx_long_cnt_int_value_set()

int32_t ism330dhcx_long_cnt_int_value_set ( stmdev_ctx_t * ctx,
uint16_t val )

FSM long counter timeout register (r/w).

The long counter timeout value is an unsigned integer value (16-bit format). When the long counter value reached this value, the FSM generates an interrupt.[set]

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

Definition at line 10104 of file ism330dhcx_reg.c.

References ISM330DHCX_FSM_LC_TIMEOUT_H, ISM330DHCX_FSM_LC_TIMEOUT_L, and ism330dhcx_ln_pg_write_byte().

◆ ism330dhcx_long_cnt_set()

int32_t ism330dhcx_long_cnt_set ( stmdev_ctx_t * ctx,
uint16_t val )

FSM long counter status register.

Long counter value is an unsigned integer value (16-bit format).[set]

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

Definition at line 9773 of file ism330dhcx_reg.c.

References ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_LONG_COUNTER_L, ism330dhcx_mem_bank_set(), ISM330DHCX_USER_BANK, 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_mem_bank_get()

int32_t ism330dhcx_mem_bank_get ( stmdev_ctx_t * ctx,
ism330dhcx_reg_access_t * val )

Enable access to the embedded functions/sensor hub configuration registers.

[get]

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

Definition at line 1991 of file ism330dhcx_reg.c.

References ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FUNC_CFG_ACCESS, ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, and ism330dhcx_func_cfg_access_t::reg_access.

◆ ism330dhcx_mem_bank_set()

int32_t ism330dhcx_mem_bank_set ( stmdev_ctx_t * ctx,
ism330dhcx_reg_access_t val )

Enable access to the embedded functions/sensor hub configuration registers.

[set]

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

Definition at line 1964 of file ism330dhcx_reg.c.

References ISM330DHCX_FUNC_CFG_ACCESS, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_func_cfg_access_t::reg_access.

Referenced by ism330dhcx_all_sources_get(), ism330dhcx_compression_algo_init_get(), ism330dhcx_compression_algo_init_set(), ism330dhcx_compression_algo_set(), ism330dhcx_emb_fsm_en_get(), ism330dhcx_emb_fsm_en_set(), ism330dhcx_fifo_pedo_batch_get(), ism330dhcx_fifo_pedo_batch_set(), ism330dhcx_fsm_data_rate_get(), ism330dhcx_fsm_data_rate_set(), ism330dhcx_fsm_enable_get(), ism330dhcx_fsm_enable_set(), ism330dhcx_fsm_init_get(), ism330dhcx_fsm_init_set(), ism330dhcx_fsm_out_get(), ism330dhcx_int_notification_get(), ism330dhcx_int_notification_set(), ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write(), ism330dhcx_ln_pg_write_byte(), ism330dhcx_long_clr_get(), ism330dhcx_long_clr_set(), ism330dhcx_long_cnt_flag_data_ready_get(), ism330dhcx_long_cnt_get(), ism330dhcx_long_cnt_set(), ism330dhcx_mlc_data_rate_get(), ism330dhcx_mlc_data_rate_set(), ism330dhcx_mlc_get(), ism330dhcx_mlc_out_get(), ism330dhcx_mlc_set(), ism330dhcx_motion_flag_data_ready_get(), ism330dhcx_motion_sens_get(), ism330dhcx_motion_sens_set(), ism330dhcx_number_of_steps_get(), ism330dhcx_pedo_sens_get(), ism330dhcx_pedo_sens_set(), ism330dhcx_pedo_step_detect_get(), ism330dhcx_pin_int1_route_get(), ism330dhcx_pin_int1_route_set(), ism330dhcx_pin_int2_route_get(), ism330dhcx_pin_int2_route_set(), ism330dhcx_sh_batch_slave_0_get(), ism330dhcx_sh_batch_slave_0_set(), ism330dhcx_sh_batch_slave_1_get(), ism330dhcx_sh_batch_slave_1_set(), ism330dhcx_sh_batch_slave_2_get(), ism330dhcx_sh_batch_slave_2_set(), ism330dhcx_sh_batch_slave_3_get(), ism330dhcx_sh_batch_slave_3_set(), ism330dhcx_sh_cfg_write(), ism330dhcx_sh_data_rate_get(), ism330dhcx_sh_data_rate_set(), ism330dhcx_sh_master_get(), ism330dhcx_sh_master_set(), ism330dhcx_sh_pass_through_get(), ism330dhcx_sh_pass_through_set(), ism330dhcx_sh_pin_mode_get(), ism330dhcx_sh_pin_mode_set(), ism330dhcx_sh_read_data_raw_get(), ism330dhcx_sh_reset_get(), ism330dhcx_sh_reset_set(), ism330dhcx_sh_slave_connected_get(), ism330dhcx_sh_slave_connected_set(), ism330dhcx_sh_slv0_cfg_read(), ism330dhcx_sh_slv1_cfg_read(), ism330dhcx_sh_slv2_cfg_read(), ism330dhcx_sh_slv3_cfg_read(), ism330dhcx_sh_status_get(), ism330dhcx_sh_syncro_mode_get(), ism330dhcx_sh_syncro_mode_set(), ism330dhcx_sh_write_mode_get(), ism330dhcx_sh_write_mode_set(), ism330dhcx_steps_reset(), ism330dhcx_tilt_flag_data_ready_get(), ism330dhcx_tilt_sens_get(), and ism330dhcx_tilt_sens_set().

◆ ism330dhcx_mlc_data_rate_get()

int32_t ism330dhcx_mlc_data_rate_get ( stmdev_ctx_t * ctx,
ism330dhcx_mlc_odr_t * val )

Machine Learning Core data rate selection.

[get]

Parameters
ctxread / write interface definitions
valchange the values of mlc_odr in reg EMB_FUNC_ODR_CFG_C

Definition at line 10411 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_ODR_CFG_C, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ISM330DHCX_ODR_PRGS_104Hz, ISM330DHCX_ODR_PRGS_12Hz5, ISM330DHCX_ODR_PRGS_26Hz, ISM330DHCX_ODR_PRGS_52Hz, ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and reg.

Referenced by ism330dhcx_gy_data_rate_set(), and ism330dhcx_xl_data_rate_set().

◆ ism330dhcx_mlc_data_rate_set()

int32_t ism330dhcx_mlc_data_rate_set ( stmdev_ctx_t * ctx,
ism330dhcx_mlc_odr_t val )

Machine Learning Core data rate selection.

[set]

Parameters
ctxread / write interface definitions
valget the values of mlc_odr in reg EMB_FUNC_ODR_CFG_C

Definition at line 10375 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_ODR_CFG_C, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and reg.

◆ ism330dhcx_mlc_get()

int32_t ism330dhcx_mlc_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable Machine Learning Core.

[get]

Parameters
ctxread / write interface definitions
valGet the values of mlc_en in reg EMB_FUNC_EN_B

Definition at line 10332 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and reg.

Referenced by ism330dhcx_gy_data_rate_set(), and ism330dhcx_xl_data_rate_set().

◆ ism330dhcx_mlc_out_get()

int32_t ism330dhcx_mlc_out_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

prgsens_out: [get] Output value of all MLCx decision trees.

Parameters
ctx_t*ctx: read / write interface definitions
uint8_t* : buffer that stores data read

Definition at line 1833 of file ism330dhcx_reg.c.

References ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ISM330DHCX_MLC0_SRC, ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_mlc_set()

int32_t ism330dhcx_mlc_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable Machine Learning Core.

[set]

Parameters
ctxread / write interface definitions
valchange the values of mlc_en in reg EMB_FUNC_EN_B and mlc_init in EMB_FUNC_INIT_B

Definition at line 10284 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_B, ISM330DHCX_EMB_FUNC_INIT_B, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), PROPERTY_DISABLE, and reg.

◆ ism330dhcx_mlc_status_get()

int32_t ism330dhcx_mlc_status_get ( stmdev_ctx_t * ctx,
ism330dhcx_mlc_status_mainpage_t * val )

Machine Learning Core status register[get].

Parameters
ctxread / write interface definitions
valregister MLC_STATUS_MAINPAGE

Definition at line 10360 of file ism330dhcx_reg.c.

References ISM330DHCX_MLC_STATUS_MAINPAGE, and ism330dhcx_read_reg().

◆ ism330dhcx_motion_flag_data_ready_get()

int32_t ism330dhcx_motion_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Interrupt status bit for significant motion detection.

[get]

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

Definition at line 8758 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_status_t::is_sigmot, ISM330DHCX_EMB_FUNC_STATUS, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_motion_sens_get()

int32_t ism330dhcx_motion_sens_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable significant motion detection function.

[get]

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

Definition at line 8729 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_emb_func_en_a_t::sign_motion_en.

◆ ism330dhcx_motion_sens_set()

int32_t ism330dhcx_motion_sens_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable significant motion detection function.

[set]

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

Definition at line 8694 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_emb_func_en_a_t::sign_motion_en.

◆ ism330dhcx_number_of_steps_get()

int32_t ism330dhcx_number_of_steps_get ( stmdev_ctx_t * ctx,
uint16_t * val )

Step counter output register.

[get]

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

Definition at line 1770 of file ism330dhcx_reg.c.

References ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_STEP_COUNTER_L, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_odr_cal_reg_get()

int32_t ism330dhcx_odr_cal_reg_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Difference in percentage of the effective ODR (and timestamp rate) with respect to the typical.

[get] Step: 0.15%. 8-bit format, 2's complement.

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

Definition at line 1944 of file ism330dhcx_reg.c.

References ism330dhcx_internal_freq_fine_t::freq_fine, ISM330DHCX_INTERNAL_FREQ_FINE, and ism330dhcx_read_reg().

◆ ism330dhcx_odr_cal_reg_set()

int32_t ism330dhcx_odr_cal_reg_set ( stmdev_ctx_t * ctx,
uint8_t val )

Difference in percentage of the effective ODR (and timestamp rate) with respect to the typical.

[set] Step: 0.15%. 8-bit format, 2's complement.

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

Definition at line 1917 of file ism330dhcx_reg.c.

References ism330dhcx_internal_freq_fine_t::freq_fine, ISM330DHCX_INTERNAL_FREQ_FINE, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_pedo_debounce_steps_get()

int32_t ism330dhcx_pedo_debounce_steps_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

Pedometer debounce configuration 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 8547 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), and ISM330DHCX_PEDO_DEB_STEPS_CONF.

◆ ism330dhcx_pedo_debounce_steps_set()

int32_t ism330dhcx_pedo_debounce_steps_set ( stmdev_ctx_t * ctx,
uint8_t * buff )

Pedometer debounce configuration 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 8529 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_write_byte(), and ISM330DHCX_PEDO_DEB_STEPS_CONF.

◆ ism330dhcx_pedo_int_mode_get()

int32_t ism330dhcx_pedo_int_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_carry_count_en_t * val )

Set when user wants to generate interrupt on count overflow event/every step.

[get]

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

Definition at line 8647 of file ism330dhcx_reg.c.

References ism330dhcx_pedo_cmd_reg_t::carry_count_en, ISM330DHCX_COUNT_OVERFLOW, ISM330DHCX_EVERY_STEP, ism330dhcx_ln_pg_read_byte(), and ISM330DHCX_PEDO_CMD_REG.

◆ ism330dhcx_pedo_int_mode_set()

int32_t ism330dhcx_pedo_int_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_carry_count_en_t val )

Set when user wants to generate interrupt on count overflow event/every step.

[set]

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

Definition at line 8620 of file ism330dhcx_reg.c.

References ism330dhcx_pedo_cmd_reg_t::carry_count_en, ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write_byte(), and ISM330DHCX_PEDO_CMD_REG.

◆ ism330dhcx_pedo_sens_get()

int32_t ism330dhcx_pedo_sens_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable pedometer algorithm.

[get]

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

Definition at line 8470 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_pedo_sens_set()

int32_t ism330dhcx_pedo_sens_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable pedometer algorithm.

[set]

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

Definition at line 8435 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_emb_func_en_a_t::pedo_en.

◆ ism330dhcx_pedo_step_detect_get()

int32_t ism330dhcx_pedo_step_detect_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Interrupt status bit for step detection.

[get]

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

Definition at line 8499 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_STATUS, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_pedo_steps_period_get()

int32_t ism330dhcx_pedo_steps_period_get ( stmdev_ctx_t * ctx,
uint16_t * val )

Time period register for step detection on delta time (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 8592 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_read_byte(), ISM330DHCX_PEDO_SC_DELTAT_H, and ISM330DHCX_PEDO_SC_DELTAT_L.

◆ ism330dhcx_pedo_steps_period_set()

int32_t ism330dhcx_pedo_steps_period_set ( stmdev_ctx_t * ctx,
uint16_t val )

Time period register for step detection on delta time (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 8565 of file ism330dhcx_reg.c.

References ism330dhcx_ln_pg_write_byte(), ISM330DHCX_PEDO_SC_DELTAT_H, and ISM330DHCX_PEDO_SC_DELTAT_L.

◆ ism330dhcx_pin_int1_route_get()

int32_t ism330dhcx_pin_int1_route_get ( stmdev_ctx_t * ctx,
ism330dhcx_pin_int1_route_t * val )

◆ ism330dhcx_pin_int1_route_set()

int32_t ism330dhcx_pin_int1_route_set ( stmdev_ctx_t * ctx,
ism330dhcx_pin_int1_route_t * val )

Select the signal that need to route on int1 pad[set].

Parameters
ctxRead / write interface definitions.(ptr)
valStructure of registers: INT1_CTRL,MD1_CFG, EMB_FUNC_INT1, FSM_INT1_A, FSM_INT1_B
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4568 of file ism330dhcx_reg.c.

References ism330dhcx_int1_ctrl_t::den_drdy_flag, ism330dhcx_pin_int1_route_t::emb_func_int1, ism330dhcx_pin_int1_route_t::fsm_int1_a, ism330dhcx_pin_int1_route_t::fsm_int1_b, ism330dhcx_md1_cfg_t::int1_6d, ism330dhcx_int1_ctrl_t::int1_boot, ism330dhcx_int1_ctrl_t::int1_cnt_bdr, ism330dhcx_pin_int1_route_t::int1_ctrl, ism330dhcx_md1_cfg_t::int1_double_tap, ism330dhcx_int1_ctrl_t::int1_drdy_g, ism330dhcx_int1_ctrl_t::int1_drdy_xl, ism330dhcx_md1_cfg_t::int1_emb_func, ism330dhcx_md1_cfg_t::int1_ff, ism330dhcx_int1_ctrl_t::int1_fifo_full, ism330dhcx_int1_ctrl_t::int1_fifo_ovr, ism330dhcx_int1_ctrl_t::int1_fifo_th, ism330dhcx_fsm_int1_a_t::int1_fsm1, ism330dhcx_fsm_int1_b_t::int1_fsm10, ism330dhcx_fsm_int1_b_t::int1_fsm11, ism330dhcx_fsm_int1_b_t::int1_fsm12, ism330dhcx_fsm_int1_b_t::int1_fsm13, ism330dhcx_fsm_int1_b_t::int1_fsm14, ism330dhcx_fsm_int1_b_t::int1_fsm15, ism330dhcx_fsm_int1_b_t::int1_fsm16, ism330dhcx_fsm_int1_a_t::int1_fsm2, ism330dhcx_fsm_int1_a_t::int1_fsm3, ism330dhcx_fsm_int1_a_t::int1_fsm4, ism330dhcx_fsm_int1_a_t::int1_fsm5, ism330dhcx_fsm_int1_a_t::int1_fsm6, ism330dhcx_fsm_int1_a_t::int1_fsm7, ism330dhcx_fsm_int1_a_t::int1_fsm8, ism330dhcx_fsm_int1_b_t::int1_fsm9, ism330dhcx_emb_func_int1_t::int1_fsm_lc, ism330dhcx_mlc_int1_t::int1_mlc1, ism330dhcx_mlc_int1_t::int1_mlc2, ism330dhcx_mlc_int1_t::int1_mlc3, ism330dhcx_mlc_int1_t::int1_mlc4, ism330dhcx_mlc_int1_t::int1_mlc5, ism330dhcx_mlc_int1_t::int1_mlc6, ism330dhcx_mlc_int1_t::int1_mlc7, ism330dhcx_mlc_int1_t::int1_mlc8, ism330dhcx_md1_cfg_t::int1_shub, ism330dhcx_emb_func_int1_t::int1_sig_mot, ism330dhcx_md1_cfg_t::int1_single_tap, ism330dhcx_md1_cfg_t::int1_sleep_change, ism330dhcx_emb_func_int1_t::int1_step_detector, ism330dhcx_emb_func_int1_t::int1_tilt, ism330dhcx_md1_cfg_t::int1_wu, ISM330DHCX_EMB_FUNC_INT1, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_INT1_A, ISM330DHCX_FSM_INT1_B, ISM330DHCX_INT1_CTRL, ISM330DHCX_MD1_CFG, ism330dhcx_mem_bank_set(), ISM330DHCX_MLC_INT1, ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG2, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_pin_int1_route_t::md1_cfg, ism330dhcx_pin_int1_route_t::mlc_int1, PROPERTY_DISABLE, and PROPERTY_ENABLE.

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1(), QwDevISM330DHCX::setAccelStatustoInt1(), and QwDevISM330DHCX::setGyroStatustoInt1().

◆ ism330dhcx_pin_int2_route_get()

int32_t ism330dhcx_pin_int2_route_get ( stmdev_ctx_t * ctx,
ism330dhcx_pin_int2_route_t * val )

Select the signal that need to route on int2 pad.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure of registers INT2_CTRL, MD2_CFG, EMB_FUNC_INT2, FSM_INT2_A, FSM_INT2_B.[get]
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4891 of file ism330dhcx_reg.c.

References ism330dhcx_pin_int2_route_t::emb_func_int2, ism330dhcx_pin_int2_route_t::fsm_int2_a, ism330dhcx_pin_int2_route_t::fsm_int2_b, ism330dhcx_pin_int2_route_t::int2_ctrl, ISM330DHCX_EMB_FUNC_INT2, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_INT2_A, ISM330DHCX_FSM_INT2_B, ISM330DHCX_INT2_CTRL, ISM330DHCX_MD2_CFG, ism330dhcx_mem_bank_set(), ISM330DHCX_MLC_INT2, ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_pin_int2_route_t::md2_cfg, and ism330dhcx_pin_int2_route_t::mlc_int2.

Referenced by QwDevISM330DHCX::setAccelStatustoInt2(), and QwDevISM330DHCX::setGyroStatustoInt2().

◆ ism330dhcx_pin_int2_route_set()

int32_t ism330dhcx_pin_int2_route_set ( stmdev_ctx_t * ctx,
ism330dhcx_pin_int2_route_t * val )

Select the signal that need to route on int2 pad[set].

Parameters
ctxRead / write interface definitions.(ptr)
valStructure of registers INT2_CTRL, MD2_CFG, EMB_FUNC_INT2, FSM_INT2_A, FSM_INT2_B
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 4760 of file ism330dhcx_reg.c.

References ism330dhcx_pin_int2_route_t::emb_func_int2, ism330dhcx_pin_int2_route_t::fsm_int2_a, ism330dhcx_pin_int2_route_t::fsm_int2_b, ism330dhcx_md2_cfg_t::int2_6d, ism330dhcx_int2_ctrl_t::int2_cnt_bdr, ism330dhcx_pin_int2_route_t::int2_ctrl, ism330dhcx_md2_cfg_t::int2_double_tap, ism330dhcx_int2_ctrl_t::int2_drdy_g, ism330dhcx_int2_ctrl_t::int2_drdy_temp, ism330dhcx_int2_ctrl_t::int2_drdy_xl, ism330dhcx_md2_cfg_t::int2_emb_func, ism330dhcx_md2_cfg_t::int2_ff, ism330dhcx_int2_ctrl_t::int2_fifo_full, ism330dhcx_int2_ctrl_t::int2_fifo_ovr, ism330dhcx_int2_ctrl_t::int2_fifo_th, ism330dhcx_fsm_int2_a_t::int2_fsm1, ism330dhcx_fsm_int2_b_t::int2_fsm10, ism330dhcx_fsm_int2_b_t::int2_fsm11, ism330dhcx_fsm_int2_b_t::int2_fsm12, ism330dhcx_fsm_int2_b_t::int2_fsm13, ism330dhcx_fsm_int2_b_t::int2_fsm14, ism330dhcx_fsm_int2_b_t::int2_fsm15, ism330dhcx_fsm_int2_b_t::int2_fsm16, ism330dhcx_fsm_int2_a_t::int2_fsm2, ism330dhcx_fsm_int2_a_t::int2_fsm3, ism330dhcx_fsm_int2_a_t::int2_fsm4, ism330dhcx_fsm_int2_a_t::int2_fsm5, ism330dhcx_fsm_int2_a_t::int2_fsm6, ism330dhcx_fsm_int2_a_t::int2_fsm7, ism330dhcx_fsm_int2_a_t::int2_fsm8, ism330dhcx_fsm_int2_b_t::int2_fsm9, ism330dhcx_emb_func_int2_t::int2_fsm_lc, ism330dhcx_mlc_int2_t::int2_mlc1, ism330dhcx_mlc_int2_t::int2_mlc2, ism330dhcx_mlc_int2_t::int2_mlc3, ism330dhcx_mlc_int2_t::int2_mlc4, ism330dhcx_mlc_int2_t::int2_mlc5, ism330dhcx_mlc_int2_t::int2_mlc6, ism330dhcx_mlc_int2_t::int2_mlc7, ism330dhcx_mlc_int2_t::int2_mlc8, ism330dhcx_emb_func_int2_t::int2_sig_mot, ism330dhcx_md2_cfg_t::int2_single_tap, ism330dhcx_md2_cfg_t::int2_sleep_change, ism330dhcx_emb_func_int2_t::int2_step_detector, ism330dhcx_emb_func_int2_t::int2_tilt, ism330dhcx_md2_cfg_t::int2_wu, ism330dhcx_tap_cfg2_t::interrupts_enable, ISM330DHCX_EMB_FUNC_INT2, ISM330DHCX_EMBEDDED_FUNC_BANK, ISM330DHCX_FSM_INT2_A, ISM330DHCX_FSM_INT2_B, ISM330DHCX_INT2_CTRL, ISM330DHCX_MD2_CFG, ism330dhcx_mem_bank_set(), ISM330DHCX_MLC_INT2, ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG2, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_pin_int2_route_t::md2_cfg, ism330dhcx_pin_int2_route_t::mlc_int2, PROPERTY_DISABLE, and PROPERTY_ENABLE.

Referenced by QwDevISM330DHCX::setAccelStatustoInt2(), and QwDevISM330DHCX::setGyroStatustoInt2().

◆ ism330dhcx_pin_mode_get()

int32_t ism330dhcx_pin_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_pp_od_t * val )

Push-pull/open drain selection on interrupt pads.

[get]

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

Definition at line 4975 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_C, ISM330DHCX_OPEN_DRAIN, ISM330DHCX_PUSH_PULL, ism330dhcx_read_reg(), and ism330dhcx_ctrl3_c_t::pp_od.

◆ ism330dhcx_pin_mode_set()

int32_t ism330dhcx_pin_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_pp_od_t val )

Push-pull/open drain selection on interrupt pads.

[set]

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

Definition at line 4949 of file ism330dhcx_reg.c.

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

Referenced by QwDevISM330DHCX::setPinMode().

◆ ism330dhcx_pin_polarity_get()

int32_t ism330dhcx_pin_polarity_get ( stmdev_ctx_t * ctx,
ism330dhcx_h_lactive_t * val )

Interrupt active-high/low.

[get]

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

Definition at line 5035 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl3_c_t::h_lactive, ISM330DHCX_ACTIVE_HIGH, ISM330DHCX_ACTIVE_LOW, ISM330DHCX_CTRL3_C, and ism330dhcx_read_reg().

◆ ism330dhcx_pin_polarity_set()

int32_t ism330dhcx_pin_polarity_set ( stmdev_ctx_t * ctx,
ism330dhcx_h_lactive_t val )

Interrupt active-high/low.

[set]

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

Definition at line 5009 of file ism330dhcx_reg.c.

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

Referenced by QwDevISM330DHCX::setPinMode().

◆ ism330dhcx_read_reg()

int32_t ism330dhcx_read_reg ( stmdev_ctx_t * ctx,
uint8_t reg,
uint8_t * data,
uint16_t len )

Read generic device register.

Parameters
ctxread / write interface definitions(ptr)
regregister to read
datapointer to buffer that store the data read(ptr)
lennumber of consecutive register to read
Return values
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 49 of file ism330dhcx_reg.c.

References stmdev_ctx_t::handle, stmdev_ctx_t::read_reg, and reg.

Referenced by ism330dhcx_4d_mode_get(), ism330dhcx_4d_mode_set(), ism330dhcx_6d_threshold_get(), ism330dhcx_6d_threshold_set(), ism330dhcx_acceleration_raw_get(), ism330dhcx_act_mode_get(), ism330dhcx_act_mode_set(), ism330dhcx_act_pin_notification_get(), ism330dhcx_act_pin_notification_set(), ism330dhcx_act_sleep_dur_get(), ism330dhcx_act_sleep_dur_set(), ism330dhcx_all_on_int1_get(), ism330dhcx_all_on_int1_set(), ism330dhcx_all_sources_get(), ism330dhcx_angular_rate_raw_get(), ism330dhcx_auto_increment_get(), ism330dhcx_auto_increment_set(), ism330dhcx_aux_den_mode_get(), ism330dhcx_aux_den_mode_set(), ism330dhcx_aux_den_polarity_get(), ism330dhcx_aux_den_polarity_set(), ism330dhcx_aux_drdy_on_int2_get(), ism330dhcx_aux_drdy_on_int2_set(), ism330dhcx_aux_gy_clamp_get(), ism330dhcx_aux_gy_clamp_set(), ism330dhcx_aux_gy_flag_data_ready_get(), ism330dhcx_aux_gy_flag_settling_get(), ism330dhcx_aux_gy_full_scale_get(), ism330dhcx_aux_gy_full_scale_set(), ism330dhcx_aux_gy_hp_bandwidth_get(), ism330dhcx_aux_gy_hp_bandwidth_set(), ism330dhcx_aux_gy_lp1_bandwidth_get(), ism330dhcx_aux_gy_lp1_bandwidth_set(), ism330dhcx_aux_gy_self_test_get(), ism330dhcx_aux_gy_self_test_set(), ism330dhcx_aux_mode_get(), ism330dhcx_aux_mode_set(), ism330dhcx_aux_pw_on_ctrl_get(), ism330dhcx_aux_pw_on_ctrl_set(), ism330dhcx_aux_sdo_ocs_mode_get(), ism330dhcx_aux_sdo_ocs_mode_set(), ism330dhcx_aux_spi_mode_get(), ism330dhcx_aux_spi_mode_set(), ism330dhcx_aux_status_reg_get(), ism330dhcx_aux_xl_bandwidth_get(), ism330dhcx_aux_xl_bandwidth_set(), ism330dhcx_aux_xl_flag_data_ready_get(), ism330dhcx_aux_xl_full_scale_get(), ism330dhcx_aux_xl_full_scale_set(), ism330dhcx_aux_xl_self_test_get(), ism330dhcx_aux_xl_self_test_set(), ism330dhcx_batch_counter_threshold_get(), ism330dhcx_batch_counter_threshold_set(), ism330dhcx_block_data_update_get(), ism330dhcx_block_data_update_set(), ism330dhcx_boot_get(), ism330dhcx_boot_set(), ism330dhcx_compression_algo_get(), ism330dhcx_compression_algo_init_get(), ism330dhcx_compression_algo_init_set(), ism330dhcx_compression_algo_real_time_get(), ism330dhcx_compression_algo_real_time_set(), ism330dhcx_compression_algo_set(), ism330dhcx_data_ready_mode_get(), ism330dhcx_data_ready_mode_set(), ism330dhcx_den_enable_get(), ism330dhcx_den_enable_set(), ism330dhcx_den_mark_axis_x_get(), ism330dhcx_den_mark_axis_x_set(), ism330dhcx_den_mark_axis_y_get(), ism330dhcx_den_mark_axis_y_set(), ism330dhcx_den_mark_axis_z_get(), ism330dhcx_den_mark_axis_z_set(), ism330dhcx_den_mode_get(), ism330dhcx_den_mode_set(), ism330dhcx_den_polarity_get(), ism330dhcx_den_polarity_set(), ism330dhcx_device_conf_get(), ism330dhcx_device_conf_set(), ism330dhcx_device_id_get(), ism330dhcx_emb_fsm_en_get(), ism330dhcx_emb_fsm_en_set(), ism330dhcx_ff_dur_get(), ism330dhcx_ff_dur_set(), ism330dhcx_ff_threshold_get(), ism330dhcx_ff_threshold_set(), ism330dhcx_fifo_cnt_event_batch_get(), ism330dhcx_fifo_cnt_event_batch_set(), ism330dhcx_fifo_data_level_get(), ism330dhcx_fifo_full_flag_get(), ism330dhcx_fifo_gy_batch_get(), ism330dhcx_fifo_gy_batch_set(), ism330dhcx_fifo_mode_get(), ism330dhcx_fifo_mode_set(), ism330dhcx_fifo_out_raw_get(), ism330dhcx_fifo_ovr_flag_get(), ism330dhcx_fifo_pedo_batch_get(), ism330dhcx_fifo_pedo_batch_set(), ism330dhcx_fifo_sensor_tag_get(), ism330dhcx_fifo_status_get(), ism330dhcx_fifo_stop_on_wtm_get(), ism330dhcx_fifo_stop_on_wtm_set(), ism330dhcx_fifo_temp_batch_get(), ism330dhcx_fifo_temp_batch_set(), ism330dhcx_fifo_timestamp_decimation_get(), ism330dhcx_fifo_timestamp_decimation_set(), ism330dhcx_fifo_virtual_sens_odr_chg_get(), ism330dhcx_fifo_virtual_sens_odr_chg_set(), ism330dhcx_fifo_watermark_get(), ism330dhcx_fifo_watermark_set(), ism330dhcx_fifo_wtm_flag_get(), ism330dhcx_fifo_xl_batch_get(), ism330dhcx_fifo_xl_batch_set(), ism330dhcx_filter_settling_mask_get(), ism330dhcx_filter_settling_mask_set(), ism330dhcx_fsm_data_rate_get(), ism330dhcx_fsm_data_rate_set(), ism330dhcx_fsm_enable_get(), ism330dhcx_fsm_enable_set(), ism330dhcx_fsm_init_get(), ism330dhcx_fsm_init_set(), ism330dhcx_fsm_out_get(), ism330dhcx_gy_data_rate_get(), ism330dhcx_gy_data_rate_set(), ism330dhcx_gy_filter_lp1_get(), ism330dhcx_gy_filter_lp1_set(), ism330dhcx_gy_flag_data_ready_get(), ism330dhcx_gy_full_scale_get(), ism330dhcx_gy_full_scale_set(), ism330dhcx_gy_hp_path_internal_get(), ism330dhcx_gy_hp_path_internal_set(), ism330dhcx_gy_lp1_bandwidth_get(), ism330dhcx_gy_lp1_bandwidth_set(), ism330dhcx_gy_power_mode_get(), ism330dhcx_gy_power_mode_set(), ism330dhcx_gy_self_test_get(), ism330dhcx_gy_self_test_set(), ism330dhcx_gy_sleep_mode_get(), ism330dhcx_gy_sleep_mode_set(), ism330dhcx_i2c_interface_get(), ism330dhcx_i2c_interface_set(), ism330dhcx_int_notification_get(), ism330dhcx_int_notification_set(), ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write(), ism330dhcx_ln_pg_write_byte(), ism330dhcx_long_clr_get(), ism330dhcx_long_clr_set(), ism330dhcx_long_cnt_flag_data_ready_get(), ism330dhcx_long_cnt_get(), ism330dhcx_mem_bank_get(), ism330dhcx_mem_bank_set(), ism330dhcx_mlc_data_rate_get(), ism330dhcx_mlc_data_rate_set(), ism330dhcx_mlc_get(), ism330dhcx_mlc_out_get(), ism330dhcx_mlc_set(), ism330dhcx_mlc_status_get(), ism330dhcx_motion_flag_data_ready_get(), ism330dhcx_motion_sens_get(), ism330dhcx_motion_sens_set(), ism330dhcx_number_of_steps_get(), ism330dhcx_odr_cal_reg_get(), ism330dhcx_odr_cal_reg_set(), ism330dhcx_pedo_sens_get(), ism330dhcx_pedo_sens_set(), ism330dhcx_pedo_step_detect_get(), ism330dhcx_pin_int1_route_get(), ism330dhcx_pin_int1_route_set(), ism330dhcx_pin_int2_route_get(), ism330dhcx_pin_int2_route_set(), ism330dhcx_pin_mode_get(), ism330dhcx_pin_mode_set(), ism330dhcx_pin_polarity_get(), ism330dhcx_pin_polarity_set(), ism330dhcx_reset_get(), ism330dhcx_reset_set(), ism330dhcx_rounding_mode_get(), ism330dhcx_rounding_mode_set(), ism330dhcx_rst_batch_counter_get(), ism330dhcx_rst_batch_counter_set(), ism330dhcx_sdo_sa0_mode_get(), ism330dhcx_sdo_sa0_mode_set(), ism330dhcx_sh_batch_slave_0_get(), ism330dhcx_sh_batch_slave_0_set(), ism330dhcx_sh_batch_slave_1_get(), ism330dhcx_sh_batch_slave_1_set(), ism330dhcx_sh_batch_slave_2_get(), ism330dhcx_sh_batch_slave_2_set(), ism330dhcx_sh_batch_slave_3_get(), ism330dhcx_sh_batch_slave_3_set(), ism330dhcx_sh_data_rate_get(), ism330dhcx_sh_data_rate_set(), ism330dhcx_sh_master_get(), ism330dhcx_sh_master_set(), ism330dhcx_sh_pass_through_get(), ism330dhcx_sh_pass_through_set(), ism330dhcx_sh_pin_mode_get(), ism330dhcx_sh_pin_mode_set(), ism330dhcx_sh_read_data_raw_get(), ism330dhcx_sh_reset_get(), ism330dhcx_sh_reset_set(), ism330dhcx_sh_slave_connected_get(), ism330dhcx_sh_slave_connected_set(), ism330dhcx_sh_slv0_cfg_read(), ism330dhcx_sh_slv1_cfg_read(), ism330dhcx_sh_slv2_cfg_read(), ism330dhcx_sh_slv3_cfg_read(), ism330dhcx_sh_status_get(), ism330dhcx_sh_syncro_mode_get(), ism330dhcx_sh_syncro_mode_set(), ism330dhcx_sh_write_mode_get(), ism330dhcx_sh_write_mode_set(), ism330dhcx_spi_mode_get(), ism330dhcx_spi_mode_set(), ism330dhcx_status_reg_get(), ism330dhcx_steps_reset(), ism330dhcx_tap_axis_priority_get(), ism330dhcx_tap_axis_priority_set(), ism330dhcx_tap_detection_on_x_get(), ism330dhcx_tap_detection_on_x_set(), ism330dhcx_tap_detection_on_y_get(), ism330dhcx_tap_detection_on_y_set(), ism330dhcx_tap_detection_on_z_get(), ism330dhcx_tap_detection_on_z_set(), ism330dhcx_tap_dur_get(), ism330dhcx_tap_dur_set(), ism330dhcx_tap_mode_get(), ism330dhcx_tap_mode_set(), ism330dhcx_tap_quiet_get(), ism330dhcx_tap_quiet_set(), ism330dhcx_tap_shock_get(), ism330dhcx_tap_shock_set(), ism330dhcx_tap_threshold_x_get(), ism330dhcx_tap_threshold_x_set(), ism330dhcx_tap_threshold_y_get(), ism330dhcx_tap_threshold_y_set(), ism330dhcx_tap_threshold_z_get(), ism330dhcx_tap_threshold_z_set(), ism330dhcx_temp_flag_data_ready_get(), ism330dhcx_temperature_raw_get(), ism330dhcx_tilt_flag_data_ready_get(), ism330dhcx_tilt_sens_get(), ism330dhcx_tilt_sens_set(), ism330dhcx_timestamp_get(), ism330dhcx_timestamp_raw_get(), ism330dhcx_timestamp_set(), ism330dhcx_wkup_dur_get(), ism330dhcx_wkup_dur_set(), ism330dhcx_wkup_threshold_get(), ism330dhcx_wkup_threshold_set(), ism330dhcx_wkup_ths_weight_get(), ism330dhcx_wkup_ths_weight_set(), ism330dhcx_xl_data_rate_get(), ism330dhcx_xl_data_rate_set(), ism330dhcx_xl_fast_settling_get(), ism330dhcx_xl_fast_settling_set(), ism330dhcx_xl_filter_lp2_get(), ism330dhcx_xl_filter_lp2_set(), ism330dhcx_xl_flag_data_ready_get(), ism330dhcx_xl_full_scale_get(), ism330dhcx_xl_full_scale_set(), ism330dhcx_xl_hp_path_internal_get(), ism330dhcx_xl_hp_path_internal_set(), ism330dhcx_xl_hp_path_on_out_get(), ism330dhcx_xl_hp_path_on_out_set(), ism330dhcx_xl_lp2_on_6d_get(), ism330dhcx_xl_lp2_on_6d_set(), ism330dhcx_xl_offset_weight_get(), ism330dhcx_xl_offset_weight_set(), ism330dhcx_xl_power_mode_get(), ism330dhcx_xl_power_mode_set(), ism330dhcx_xl_self_test_get(), ism330dhcx_xl_self_test_set(), ism330dhcx_xl_usr_offset_get(), ism330dhcx_xl_usr_offset_on_wkup_get(), ism330dhcx_xl_usr_offset_on_wkup_set(), ism330dhcx_xl_usr_offset_set(), ism330dhcx_xl_usr_offset_x_get(), ism330dhcx_xl_usr_offset_y_get(), and ism330dhcx_xl_usr_offset_z_get().

◆ ism330dhcx_reset_get()

int32_t ism330dhcx_reset_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Software reset.

Restore the default values in user registers.[get]

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

Definition at line 2403 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL3_C, ism330dhcx_read_reg(), and ism330dhcx_ctrl3_c_t::sw_reset.

Referenced by QwDevISM330DHCX::getDeviceReset().

◆ ism330dhcx_reset_set()

int32_t ism330dhcx_reset_set ( stmdev_ctx_t * ctx,
uint8_t val )

Software reset.

Restore the default values in user registers.[set]

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

Definition at line 2378 of file ism330dhcx_reg.c.

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

Referenced by QwDevISM330DHCX::deviceReset().

◆ ism330dhcx_rounding_mode_get()

int32_t ism330dhcx_rounding_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_rounding_t * val )

Gyroscope UI chain full-scale selection.

[get]

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

Definition at line 1640 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL5_C, ISM330DHCX_NO_ROUND, ism330dhcx_read_reg(), ISM330DHCX_ROUND_GY, ISM330DHCX_ROUND_GY_XL, ISM330DHCX_ROUND_XL, and ism330dhcx_ctrl5_c_t::rounding.

◆ ism330dhcx_rounding_mode_set()

int32_t ism330dhcx_rounding_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_rounding_t val )

Circular burst-mode (rounding) read of the output registers.

[set]

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

Definition at line 1614 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL5_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl5_c_t::rounding.

◆ ism330dhcx_rst_batch_counter_get()

int32_t ism330dhcx_rst_batch_counter_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Resets the internal counter of batching events for a single sensor.

This bit is automatically reset to zero if it was set to '1'.[get]

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

Definition at line 7437 of file ism330dhcx_reg.c.

References ISM330DHCX_COUNTER_BDR_REG1, ism330dhcx_read_reg(), and ism330dhcx_counter_bdr_reg1_t::rst_counter_bdr.

◆ ism330dhcx_rst_batch_counter_set()

int32_t ism330dhcx_rst_batch_counter_set ( stmdev_ctx_t * ctx,
uint8_t val )

Resets the internal counter of batching events for a single sensor.

This bit is automatically reset to zero if it was set to '1'.[set]

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

Definition at line 7410 of file ism330dhcx_reg.c.

References ISM330DHCX_COUNTER_BDR_REG1, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_counter_bdr_reg1_t::rst_counter_bdr.

◆ 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_sh_batch_slave_0_get()

int32_t ism330dhcx_sh_batch_slave_0_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable FIFO batching data of first slave.

[get]

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

Definition at line 7845 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV0_CONFIG, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_sh_batch_slave_0_set()

int32_t ism330dhcx_sh_batch_slave_0_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable FIFO batching data of first slave.

[set]

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

Definition at line 7808 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV0_CONFIG, ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setHubFifoBatching().

◆ ism330dhcx_sh_batch_slave_1_get()

int32_t ism330dhcx_sh_batch_slave_1_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable FIFO batching data of second slave.

[get]

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

Definition at line 7913 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV1_CONFIG, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_sh_batch_slave_1_set()

int32_t ism330dhcx_sh_batch_slave_1_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable FIFO batching data of second slave.

[set]

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

Definition at line 7876 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV1_CONFIG, ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_sh_batch_slave_2_get()

int32_t ism330dhcx_sh_batch_slave_2_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable FIFO batching data of third slave.

[get]

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

Definition at line 7981 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV2_CONFIG, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_sh_batch_slave_2_set()

int32_t ism330dhcx_sh_batch_slave_2_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable FIFO batching data of third slave.

[set]

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

Definition at line 7944 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV2_CONFIG, ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_sh_batch_slave_3_get()

int32_t ism330dhcx_sh_batch_slave_3_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable FIFO batching data of fourth slave.

[get]

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

Definition at line 8049 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV3_CONFIG, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_sh_batch_slave_3_set()

int32_t ism330dhcx_sh_batch_slave_3_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable FIFO batching data of fourth slave.

[set]

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

Definition at line 8012 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV3_CONFIG, ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

◆ ism330dhcx_sh_cfg_write()

int32_t ism330dhcx_sh_cfg_write ( stmdev_ctx_t * ctx,
ism330dhcx_sh_cfg_write_t * val )

Configure slave 0 for perform a write.

[set]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure that contain
  • uint8_t slv0_add; 8 bit i2c device address
  • uint8_t slv0_subadd; 8 bit register device address
  • uint8_t slv0_data; 8 bit data to write
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 11123 of file ism330dhcx_reg.c.

References ISM330DHCX_DATAWRITE_SLV0, ism330dhcx_mem_bank_set(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV0_ADD, ISM330DHCX_SLV0_SUBADD, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_slv0_add_t::rw_0, ism330dhcx_slv0_add_t::slave0, ism330dhcx_sh_cfg_write_t::slv0_add, ism330dhcx_sh_cfg_write_t::slv0_data, and ism330dhcx_sh_cfg_write_t::slv0_subadd.

Referenced by QwDevISM330DHCX::setHubSensorWrite().

◆ ism330dhcx_sh_data_rate_get()

int32_t ism330dhcx_sh_data_rate_get ( stmdev_ctx_t * ctx,
ism330dhcx_shub_odr_t * val )

Rate at which the master communicates.

[get]

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

Definition at line 11068 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SH_ODR_104Hz, ISM330DHCX_SH_ODR_13Hz, ISM330DHCX_SH_ODR_26Hz, ISM330DHCX_SH_ODR_52Hz, ISM330DHCX_SLV0_CONFIG, ISM330DHCX_USER_BANK, and ism330dhcx_slv0_config_t::shub_odr.

◆ ism330dhcx_sh_data_rate_set()

int32_t ism330dhcx_sh_data_rate_set ( stmdev_ctx_t * ctx,
ism330dhcx_shub_odr_t val )

Rate at which the master communicates.

[set]

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

Definition at line 11032 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV0_CONFIG, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_slv0_config_t::shub_odr.

Referenced by QwDevISM330DHCX::setHubODR().

◆ ism330dhcx_sh_master_get()

int32_t ism330dhcx_sh_master_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Sensor hub I2C master enable.

[get]

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

Definition at line 10626 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, and ism330dhcx_master_config_t::master_on.

◆ ism330dhcx_sh_master_set()

int32_t ism330dhcx_sh_master_set ( stmdev_ctx_t * ctx,
uint8_t val )

Sensor hub I2C master enable.

[set]

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

Definition at line 10591 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_master_config_t::master_on.

Referenced by QwDevISM330DHCX::enableSensorI2C().

◆ ism330dhcx_sh_pass_through_get()

int32_t ism330dhcx_sh_pass_through_get ( stmdev_ctx_t * ctx,
uint8_t * val )

I2C interface pass-through.

[get]

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

Definition at line 10770 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, and ism330dhcx_master_config_t::pass_through_mode.

◆ ism330dhcx_sh_pass_through_set()

int32_t ism330dhcx_sh_pass_through_set ( stmdev_ctx_t * ctx,
uint8_t val )

I2C interface pass-through.

[set]

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

Definition at line 10735 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_master_config_t::pass_through_mode.

Referenced by QwDevISM330DHCX::setHubPassThrough().

◆ ism330dhcx_sh_pin_mode_get()

int32_t ism330dhcx_sh_pin_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_shub_pu_en_t * val )

Master I2C pull-up enable.

[get]

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

Definition at line 10691 of file ism330dhcx_reg.c.

References ISM330DHCX_EXT_PULL_UP, ISM330DHCX_INTERNAL_PULL_UP, ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, and ism330dhcx_master_config_t::shub_pu_en.

◆ ism330dhcx_sh_pin_mode_set()

int32_t ism330dhcx_sh_pin_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_shub_pu_en_t val )

Master I2C pull-up enable.

[set]

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

Definition at line 10655 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_master_config_t::shub_pu_en.

Referenced by QwDevISM330DHCX::setHubPullUps().

◆ ism330dhcx_sh_read_data_raw_get()

int32_t ism330dhcx_sh_read_data_raw_get ( stmdev_ctx_t * ctx,
ism330dhcx_emb_sh_read_t * val,
uint8_t len )

Sensor hub output registers.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure of registers from SENSOR_HUB_1 to SENSOR_HUB_18
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 10476 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_1, ISM330DHCX_SENSOR_HUB_BANK, and ISM330DHCX_USER_BANK.

Referenced by QwDevISM330DHCX::readPeripheralSensor().

◆ ism330dhcx_sh_reset_get()

int32_t ism330dhcx_sh_reset_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Reset Master logic and output registers.

[get]

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

Definition at line 11003 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_sh_reset_set()

int32_t ism330dhcx_sh_reset_set ( stmdev_ctx_t * ctx)

Reset Master logic and output registers.

[set]

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

Definition at line 10961 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), PROPERTY_DISABLE, PROPERTY_ENABLE, and ism330dhcx_master_config_t::rst_master_regs.

Referenced by QwDevISM330DHCX::resetSensorHub().

◆ ism330dhcx_sh_slave_connected_get()

int32_t ism330dhcx_sh_slave_connected_get ( stmdev_ctx_t * ctx,
ism330dhcx_aux_sens_on_t * val )

Number of external sensors to be read by the sensor hub.

[get]

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

Definition at line 10539 of file ism330dhcx_reg.c.

References ism330dhcx_master_config_t::aux_sens_on, ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV_0, ISM330DHCX_SLV_0_1, ISM330DHCX_SLV_0_1_2, ISM330DHCX_SLV_0_1_2_3, and ISM330DHCX_USER_BANK.

◆ ism330dhcx_sh_slave_connected_set()

int32_t ism330dhcx_sh_slave_connected_set ( stmdev_ctx_t * ctx,
ism330dhcx_aux_sens_on_t val )

Number of external sensors to be read by the sensor hub.

[set]

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

Definition at line 10503 of file ism330dhcx_reg.c.

References ism330dhcx_master_config_t::aux_sens_on, ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setNumberHubSensors().

◆ ism330dhcx_sh_slv0_cfg_read()

int32_t ism330dhcx_sh_slv0_cfg_read ( stmdev_ctx_t * ctx,
ism330dhcx_sh_cfg_read_t * val )

Configure slave 0 for perform a write/read.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure that contain
  • uint8_t slv_add; 8 bit i2c device address
  • uint8_t slv_subadd; 8 bit register device address
  • uint8_t slv_len; num of bit to read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 11169 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV0_ADD, ISM330DHCX_SLV0_CONFIG, ISM330DHCX_SLV0_SUBADD, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_slv0_add_t::rw_0, ism330dhcx_slv0_add_t::slave0, ism330dhcx_slv0_config_t::slave0_numop, ism330dhcx_sh_cfg_read_t::slv_add, ism330dhcx_sh_cfg_read_t::slv_len, and ism330dhcx_sh_cfg_read_t::slv_subadd.

Referenced by QwDevISM330DHCX::setHubSensorRead().

◆ ism330dhcx_sh_slv1_cfg_read()

int32_t ism330dhcx_sh_slv1_cfg_read ( stmdev_ctx_t * ctx,
ism330dhcx_sh_cfg_read_t * val )

Configure slave 0 for perform a write/read.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure that contain
  • uint8_t slv_add; 8 bit i2c device address
  • uint8_t slv_subadd; 8 bit register device address
  • uint8_t slv_len; num of bit to read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 11223 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV1_ADD, ISM330DHCX_SLV1_CONFIG, ISM330DHCX_SLV1_SUBADD, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_slv1_add_t::r_1, ism330dhcx_slv1_add_t::slave1_add, ism330dhcx_slv1_config_t::slave1_numop, ism330dhcx_sh_cfg_read_t::slv_add, ism330dhcx_sh_cfg_read_t::slv_len, and ism330dhcx_sh_cfg_read_t::slv_subadd.

Referenced by QwDevISM330DHCX::setHubSensorRead().

◆ ism330dhcx_sh_slv2_cfg_read()

int32_t ism330dhcx_sh_slv2_cfg_read ( stmdev_ctx_t * ctx,
ism330dhcx_sh_cfg_read_t * val )

Configure slave 2 for perform a write/read.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure that contain
  • uint8_t slv_add; 8 bit i2c device address
  • uint8_t slv_subadd; 8 bit register device address
  • uint8_t slv_len; num of bit to read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 11277 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV2_ADD, ISM330DHCX_SLV2_CONFIG, ISM330DHCX_SLV2_SUBADD, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_slv2_add_t::r_2, ism330dhcx_slv2_add_t::slave2_add, ism330dhcx_slv2_config_t::slave2_numop, ism330dhcx_sh_cfg_read_t::slv_add, ism330dhcx_sh_cfg_read_t::slv_len, and ism330dhcx_sh_cfg_read_t::slv_subadd.

Referenced by QwDevISM330DHCX::setHubSensorRead().

◆ ism330dhcx_sh_slv3_cfg_read()

int32_t ism330dhcx_sh_slv3_cfg_read ( stmdev_ctx_t * ctx,
ism330dhcx_sh_cfg_read_t * val )

Configure slave 3 for perform a write/read.

[get]

Parameters
ctxRead / write interface definitions.(ptr)
valStructure that contain
  • uint8_t slv_add; 8 bit i2c device address
  • uint8_t slv_subadd; 8 bit register device address
  • uint8_t slv_len; num of bit to read
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

Definition at line 11331 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_SLV3_ADD, ISM330DHCX_SLV3_CONFIG, ISM330DHCX_SLV3_SUBADD, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_slv3_add_t::r_3, ism330dhcx_slv3_add_t::slave3_add, ism330dhcx_slv3_config_t::slave3_numop, ism330dhcx_sh_cfg_read_t::slv_add, ism330dhcx_sh_cfg_read_t::slv_len, and ism330dhcx_sh_cfg_read_t::slv_subadd.

Referenced by QwDevISM330DHCX::setHubSensorRead().

◆ ism330dhcx_sh_status_get()

int32_t ism330dhcx_sh_status_get ( stmdev_ctx_t * ctx,
ism330dhcx_status_master_t * val )

Sensor hub source register.

[get]

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

Definition at line 11382 of file ism330dhcx_reg.c.

References ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_STATUS_MASTER, and ISM330DHCX_USER_BANK.

Referenced by QwDevISM330DHCX::getExternalSensorNack(), and QwDevISM330DHCX::getHubStatus().

◆ ism330dhcx_sh_syncro_mode_get()

int32_t ism330dhcx_sh_syncro_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_start_config_t * val )

Sensor hub trigger signal selection.

[get]

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

Definition at line 10836 of file ism330dhcx_reg.c.

References ISM330DHCX_EXT_ON_INT2_PIN, ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ISM330DHCX_XL_GY_DRDY, and ism330dhcx_master_config_t::start_config.

◆ ism330dhcx_sh_syncro_mode_set()

int32_t ism330dhcx_sh_syncro_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_start_config_t val )

Sensor hub trigger signal selection.

[set]

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

Definition at line 10800 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_master_config_t::start_config.

◆ ism330dhcx_sh_write_mode_get()

int32_t ism330dhcx_sh_write_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_write_once_t * val )

Slave 0 write operation is performed only at the first sensor hub cycle.

[get]

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

Definition at line 10918 of file ism330dhcx_reg.c.

References ISM330DHCX_EACH_SH_CYCLE, ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ISM330DHCX_ONLY_FIRST_CYCLE, ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, and ism330dhcx_master_config_t::write_once.

◆ ism330dhcx_sh_write_mode_set()

int32_t ism330dhcx_sh_write_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_write_once_t val )

Slave 0 write operation is performed only at the first sensor hub cycle.

[set]

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

Definition at line 10881 of file ism330dhcx_reg.c.

References ISM330DHCX_MASTER_CONFIG, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_SENSOR_HUB_BANK, ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_master_config_t::write_once.

Referenced by QwDevISM330DHCX::setHubWriteMode().

◆ 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.

◆ 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_steps_reset()

int32_t ism330dhcx_steps_reset ( stmdev_ctx_t * ctx)

Reset step counter register.

[get]

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

Definition at line 1799 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_SRC, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), ism330dhcx_emb_func_src_t::pedo_rst_step, and PROPERTY_ENABLE.

◆ ism330dhcx_tap_axis_priority_get()

int32_t ism330dhcx_tap_axis_priority_get ( stmdev_ctx_t * ctx,
ism330dhcx_tap_priority_t * val )

Selection of axis priority for TAP detection[get].

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

Definition at line 5892 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG1, ISM330DHCX_XYZ, ISM330DHCX_XZY, ISM330DHCX_YXZ, ISM330DHCX_YZX, ISM330DHCX_ZXY, ISM330DHCX_ZYX, and ism330dhcx_tap_cfg1_t::tap_priority.

◆ ism330dhcx_tap_axis_priority_set()

int32_t ism330dhcx_tap_axis_priority_set ( stmdev_ctx_t * ctx,
ism330dhcx_tap_priority_t val )

Selection of axis priority for TAP detection.

[set]

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

Definition at line 5866 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG1, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg1_t::tap_priority.

◆ ism330dhcx_tap_detection_on_x_get()

int32_t ism330dhcx_tap_detection_on_x_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable X direction in tap recognition.

[get]

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

Definition at line 5801 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, and ism330dhcx_tap_cfg0_t::tap_x_en.

◆ ism330dhcx_tap_detection_on_x_set()

int32_t ism330dhcx_tap_detection_on_x_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable X direction in tap recognition.

[set]

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

Definition at line 5775 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg0_t::tap_x_en.

◆ ism330dhcx_tap_detection_on_y_get()

int32_t ism330dhcx_tap_detection_on_y_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable Y direction in tap recognition.

[get]

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

Definition at line 5755 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, and ism330dhcx_tap_cfg0_t::tap_y_en.

◆ ism330dhcx_tap_detection_on_y_set()

int32_t ism330dhcx_tap_detection_on_y_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable Y direction in tap recognition.

[set]

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

Definition at line 5729 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg0_t::tap_y_en.

◆ ism330dhcx_tap_detection_on_z_get()

int32_t ism330dhcx_tap_detection_on_z_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable Z direction in tap recognition.

[get]

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

Definition at line 5709 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, and ism330dhcx_tap_cfg0_t::tap_z_en.

◆ ism330dhcx_tap_detection_on_z_set()

int32_t ism330dhcx_tap_detection_on_z_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable Z direction in tap recognition.

[set]

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

Definition at line 5683 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg0_t::tap_z_en.

◆ ism330dhcx_tap_dur_get()

int32_t ism330dhcx_tap_dur_get ( stmdev_ctx_t * ctx,
uint8_t * val )

When double tap recognition is enabled, this register expresses the maximum time between two consecutive detected taps to determine a double tap event.

The default value of these bits is 0000b which corresponds to 16*ODR_XL time. If the DUR[3:0] bits are set to a different value, 1LSB corresponds to 32*ODR_XL time.[get]

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

Definition at line 6171 of file ism330dhcx_reg.c.

References ism330dhcx_int_dur2_t::dur, ISM330DHCX_INT_DUR2, and ism330dhcx_read_reg().

◆ ism330dhcx_tap_dur_set()

int32_t ism330dhcx_tap_dur_set ( stmdev_ctx_t * ctx,
uint8_t val )

When double tap recognition is enabled, this register expresses the maximum time between two consecutive detected taps to determine a double tap event.

The default value of these bits is 0000b which corresponds to 16*ODR_XL time. If the DUR[3:0] bits are set to a different value, 1LSB corresponds to 32*ODR_XL time.[set]

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

Definition at line 6142 of file ism330dhcx_reg.c.

References ism330dhcx_int_dur2_t::dur, ISM330DHCX_INT_DUR2, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_tap_mode_get()

int32_t ism330dhcx_tap_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_single_double_tap_t * val )

Single/double-tap event enable.

[get]

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

Definition at line 6216 of file ism330dhcx_reg.c.

References ISM330DHCX_BOTH_SINGLE_DOUBLE, ISM330DHCX_ONLY_SINGLE, ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::single_double_tap.

◆ ism330dhcx_tap_mode_set()

int32_t ism330dhcx_tap_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_single_double_tap_t val )

Single/double-tap event enable.

[set]

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

Definition at line 6190 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::single_double_tap.

◆ ism330dhcx_tap_quiet_get()

int32_t ism330dhcx_tap_quiet_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Quiet time is the time after the first detected tap in which there must not be any overthreshold event.

The default value of these bits is 00b which corresponds to 2*ODR_XL time. If the QUIET[1:0] bits are set to a different value, 1LSB corresponds to 4*ODR_XL time.[get]

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

Definition at line 6117 of file ism330dhcx_reg.c.

References ISM330DHCX_INT_DUR2, ism330dhcx_read_reg(), and ism330dhcx_int_dur2_t::quiet.

◆ ism330dhcx_tap_quiet_set()

int32_t ism330dhcx_tap_quiet_set ( stmdev_ctx_t * ctx,
uint8_t val )

Quiet time is the time after the first detected tap in which there must not be any overthreshold event.

The default value of these bits is 00b which corresponds to 2*ODR_XL time. If the QUIET[1:0] bits are set to a different value, 1LSB corresponds to 4*ODR_XL time.[set]

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

Definition at line 6088 of file ism330dhcx_reg.c.

References ISM330DHCX_INT_DUR2, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_int_dur2_t::quiet.

◆ ism330dhcx_tap_shock_get()

int32_t ism330dhcx_tap_shock_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Maximum duration is the maximum time of an overthreshold signal detection to be recognized as a tap event.

The default value of these bits is 00b which corresponds to 4*ODR_XL time. If the SHOCK[1:0] bits are set to a different value, 1LSB corresponds to 8*ODR_XL time.[get]

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

Definition at line 6065 of file ism330dhcx_reg.c.

References ISM330DHCX_INT_DUR2, ism330dhcx_read_reg(), and ism330dhcx_int_dur2_t::shock.

◆ ism330dhcx_tap_shock_set()

int32_t ism330dhcx_tap_shock_set ( stmdev_ctx_t * ctx,
uint8_t val )

Maximum duration is the maximum time of an overthreshold signal detection to be recognized as a tap event.

The default value of these bits is 00b which corresponds to 4*ODR_XL time. If the SHOCK[1:0] bits are set to a different value, 1LSB corresponds to 8*ODR_XL time.[set]

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

Definition at line 6036 of file ism330dhcx_reg.c.

References ISM330DHCX_INT_DUR2, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_int_dur2_t::shock.

◆ ism330dhcx_tap_threshold_x_get()

int32_t ism330dhcx_tap_threshold_x_get ( stmdev_ctx_t * ctx,
uint8_t * val )

X-axis tap recognition threshold.

[get]

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

Definition at line 5846 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG1, and ism330dhcx_tap_cfg1_t::tap_ths_x.

◆ ism330dhcx_tap_threshold_x_set()

int32_t ism330dhcx_tap_threshold_x_set ( stmdev_ctx_t * ctx,
uint8_t val )

X-axis tap recognition threshold.

[set]

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

Definition at line 5821 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG1, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg1_t::tap_ths_x.

◆ ism330dhcx_tap_threshold_y_get()

int32_t ism330dhcx_tap_threshold_y_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Y-axis tap recognition threshold.

[get]

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

Definition at line 5967 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG2, and ism330dhcx_tap_cfg2_t::tap_ths_y.

◆ ism330dhcx_tap_threshold_y_set()

int32_t ism330dhcx_tap_threshold_y_set ( stmdev_ctx_t * ctx,
uint8_t val )

Y-axis tap recognition threshold.

[set]

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

Definition at line 5942 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_tap_threshold_z_get()

int32_t ism330dhcx_tap_threshold_z_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Z-axis recognition threshold.

[get]

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

Definition at line 6012 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_tap_threshold_z_set()

int32_t ism330dhcx_tap_threshold_z_set ( stmdev_ctx_t * ctx,
uint8_t val )

Z-axis recognition threshold.

[set]

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

Definition at line 5987 of file ism330dhcx_reg.c.

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

◆ 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_temperature_raw_get()

int32_t ism330dhcx_temperature_raw_get ( stmdev_ctx_t * ctx,
int16_t * val )

Temperature data output register (r).

L and H registers together express a 16-bit word in two’s complement.[get]

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

Definition at line 1684 of file ism330dhcx_reg.c.

References ISM330DHCX_OUT_TEMP_L, and ism330dhcx_read_reg().

Referenced by QwDevISM330DHCX::getTemp().

◆ ism330dhcx_tilt_flag_data_ready_get()

int32_t ism330dhcx_tilt_flag_data_ready_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Interrupt status bit for tilt detection.

[get]

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

Definition at line 8865 of file ism330dhcx_reg.c.

References ism330dhcx_emb_func_status_t::is_tilt, ISM330DHCX_EMB_FUNC_STATUS, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), and ISM330DHCX_USER_BANK.

◆ ism330dhcx_tilt_sens_get()

int32_t ism330dhcx_tilt_sens_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enable tilt calculation.

[get]

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

Definition at line 8836 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, and ism330dhcx_emb_func_en_a_t::tilt_en.

◆ ism330dhcx_tilt_sens_set()

int32_t ism330dhcx_tilt_sens_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enable tilt calculation.

[set]

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

Definition at line 8801 of file ism330dhcx_reg.c.

References ISM330DHCX_EMB_FUNC_EN_A, ISM330DHCX_EMBEDDED_FUNC_BANK, ism330dhcx_mem_bank_set(), ism330dhcx_read_reg(), ISM330DHCX_USER_BANK, ism330dhcx_write_reg(), and ism330dhcx_emb_func_en_a_t::tilt_en.

◆ ism330dhcx_timestamp_get()

int32_t ism330dhcx_timestamp_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables timestamp counter.

[get]

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

Definition at line 1560 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL10_C, ism330dhcx_read_reg(), and ism330dhcx_ctrl10_c_t::timestamp_en.

◆ ism330dhcx_timestamp_raw_get()

int32_t ism330dhcx_timestamp_raw_get ( stmdev_ctx_t * ctx,
uint32_t * val )

Timestamp first data output register (r).

The value is expressed as a 32-bit word and the bit resolution is 25 μs.[get]

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

Definition at line 1581 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), and ISM330DHCX_TIMESTAMP0.

◆ ism330dhcx_timestamp_rst()

int32_t ism330dhcx_timestamp_rst ( stmdev_ctx_t * ctx)

Reset timestamp counter.

[set]

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

Definition at line 1521 of file ism330dhcx_reg.c.

References ISM330DHCX_TIMESTAMP2, and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::resetTimestamp().

◆ ism330dhcx_timestamp_set()

int32_t ism330dhcx_timestamp_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables timestamp counter.

[set]

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

Definition at line 1535 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL10_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl10_c_t::timestamp_en.

Referenced by QwDevISM330DHCX::enableTimestamp().

◆ ism330dhcx_wkup_dur_get()

int32_t ism330dhcx_wkup_dur_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Wake up duration event(1LSb = 1 / ODR).

[get]

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

Definition at line 5418 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_wkup_dur_set()

int32_t ism330dhcx_wkup_dur_set ( stmdev_ctx_t * ctx,
uint8_t val )

Wake up duration event(1LSb = 1 / ODR).

[set]

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

Definition at line 5393 of file ism330dhcx_reg.c.

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

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().

◆ ism330dhcx_wkup_threshold_get()

int32_t ism330dhcx_wkup_threshold_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.

[get]

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

Definition at line 5328 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::wk_ths.

◆ ism330dhcx_wkup_threshold_set()

int32_t ism330dhcx_wkup_threshold_set ( stmdev_ctx_t * ctx,
uint8_t val )

Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.

[set]

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

Definition at line 5302 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::wk_ths.

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().

◆ ism330dhcx_wkup_ths_weight_get()

int32_t ism330dhcx_wkup_ths_weight_get ( stmdev_ctx_t * ctx,
ism330dhcx_wake_ths_w_t * val )

Weight of 1 LSB of wakeup threshold.

[get] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256

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

Definition at line 5267 of file ism330dhcx_reg.c.

References ISM330DHCX_LSb_FS_DIV_256, ISM330DHCX_LSb_FS_DIV_64, ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_DUR, and ism330dhcx_wake_up_dur_t::wake_ths_w.

◆ ism330dhcx_wkup_ths_weight_set()

int32_t ism330dhcx_wkup_ths_weight_set ( stmdev_ctx_t * ctx,
ism330dhcx_wake_ths_w_t val )

Weight of 1 LSB of wakeup threshold.

[set] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256

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

Definition at line 5239 of file ism330dhcx_reg.c.

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

Referenced by QwDevISM330DHCX::configureWakeUpOnInt1().

◆ ism330dhcx_write_reg()

int32_t ism330dhcx_write_reg ( stmdev_ctx_t * ctx,
uint8_t reg,
uint8_t * data,
uint16_t len )

Write generic device register.

Parameters
ctxread / write interface definitions(ptr)
regregister to write
datapointer to data to write in register reg(ptr)
lennumber of consecutive register to write
Return values
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 69 of file ism330dhcx_reg.c.

References stmdev_ctx_t::handle, reg, and stmdev_ctx_t::write_reg.

Referenced by ism330dhcx_4d_mode_set(), ism330dhcx_6d_threshold_set(), ism330dhcx_act_mode_set(), ism330dhcx_act_pin_notification_set(), ism330dhcx_act_sleep_dur_set(), ism330dhcx_all_on_int1_set(), ism330dhcx_auto_increment_set(), ism330dhcx_aux_den_mode_set(), ism330dhcx_aux_den_polarity_set(), ism330dhcx_aux_drdy_on_int2_set(), ism330dhcx_aux_gy_clamp_set(), ism330dhcx_aux_gy_full_scale_set(), ism330dhcx_aux_gy_hp_bandwidth_set(), ism330dhcx_aux_gy_lp1_bandwidth_set(), ism330dhcx_aux_gy_self_test_set(), ism330dhcx_aux_mode_set(), ism330dhcx_aux_pw_on_ctrl_set(), ism330dhcx_aux_sdo_ocs_mode_set(), ism330dhcx_aux_spi_mode_set(), ism330dhcx_aux_xl_bandwidth_set(), ism330dhcx_aux_xl_full_scale_set(), ism330dhcx_aux_xl_self_test_set(), ism330dhcx_batch_counter_threshold_set(), ism330dhcx_block_data_update_set(), ism330dhcx_boot_set(), ism330dhcx_compression_algo_init_set(), ism330dhcx_compression_algo_real_time_set(), ism330dhcx_compression_algo_set(), ism330dhcx_data_ready_mode_set(), ism330dhcx_den_enable_set(), ism330dhcx_den_mark_axis_x_set(), ism330dhcx_den_mark_axis_y_set(), ism330dhcx_den_mark_axis_z_set(), ism330dhcx_den_mode_set(), ism330dhcx_den_polarity_set(), ism330dhcx_device_conf_set(), ism330dhcx_emb_fsm_en_get(), ism330dhcx_emb_fsm_en_set(), ism330dhcx_ff_dur_set(), ism330dhcx_ff_threshold_set(), ism330dhcx_fifo_cnt_event_batch_set(), ism330dhcx_fifo_gy_batch_set(), ism330dhcx_fifo_mode_set(), ism330dhcx_fifo_pedo_batch_set(), ism330dhcx_fifo_stop_on_wtm_set(), ism330dhcx_fifo_temp_batch_set(), ism330dhcx_fifo_timestamp_decimation_set(), ism330dhcx_fifo_virtual_sens_odr_chg_set(), ism330dhcx_fifo_watermark_set(), ism330dhcx_fifo_xl_batch_set(), ism330dhcx_filter_settling_mask_set(), ism330dhcx_fsm_data_rate_set(), ism330dhcx_fsm_enable_set(), ism330dhcx_fsm_init_set(), ism330dhcx_gy_data_rate_set(), ism330dhcx_gy_filter_lp1_set(), ism330dhcx_gy_full_scale_set(), ism330dhcx_gy_hp_path_internal_set(), ism330dhcx_gy_lp1_bandwidth_set(), ism330dhcx_gy_power_mode_set(), ism330dhcx_gy_self_test_set(), ism330dhcx_gy_sleep_mode_set(), ism330dhcx_i2c_interface_set(), ism330dhcx_int_notification_set(), ism330dhcx_ln_pg_read_byte(), ism330dhcx_ln_pg_write(), ism330dhcx_ln_pg_write_byte(), ism330dhcx_long_clr_set(), ism330dhcx_long_cnt_set(), ism330dhcx_mem_bank_set(), ism330dhcx_mlc_data_rate_set(), ism330dhcx_mlc_set(), ism330dhcx_motion_sens_set(), ism330dhcx_odr_cal_reg_set(), ism330dhcx_pedo_sens_set(), ism330dhcx_pin_int1_route_set(), ism330dhcx_pin_int2_route_set(), ism330dhcx_pin_mode_set(), ism330dhcx_pin_polarity_set(), ism330dhcx_reset_set(), ism330dhcx_rounding_mode_set(), ism330dhcx_rst_batch_counter_set(), ism330dhcx_sdo_sa0_mode_set(), ism330dhcx_sh_batch_slave_0_set(), ism330dhcx_sh_batch_slave_1_set(), ism330dhcx_sh_batch_slave_2_set(), ism330dhcx_sh_batch_slave_3_set(), ism330dhcx_sh_cfg_write(), ism330dhcx_sh_data_rate_set(), ism330dhcx_sh_master_set(), ism330dhcx_sh_pass_through_set(), ism330dhcx_sh_pin_mode_set(), ism330dhcx_sh_reset_set(), ism330dhcx_sh_slave_connected_set(), ism330dhcx_sh_slv0_cfg_read(), ism330dhcx_sh_slv1_cfg_read(), ism330dhcx_sh_slv2_cfg_read(), ism330dhcx_sh_slv3_cfg_read(), ism330dhcx_sh_syncro_mode_set(), ism330dhcx_sh_write_mode_set(), ism330dhcx_spi_mode_set(), ism330dhcx_steps_reset(), ism330dhcx_tap_axis_priority_set(), ism330dhcx_tap_detection_on_x_set(), ism330dhcx_tap_detection_on_y_set(), ism330dhcx_tap_detection_on_z_set(), ism330dhcx_tap_dur_set(), ism330dhcx_tap_mode_set(), ism330dhcx_tap_quiet_set(), ism330dhcx_tap_shock_set(), ism330dhcx_tap_threshold_x_set(), ism330dhcx_tap_threshold_y_set(), ism330dhcx_tap_threshold_z_set(), ism330dhcx_tilt_sens_set(), ism330dhcx_timestamp_rst(), ism330dhcx_timestamp_set(), ism330dhcx_wkup_dur_set(), ism330dhcx_wkup_threshold_set(), ism330dhcx_wkup_ths_weight_set(), ism330dhcx_xl_data_rate_set(), ism330dhcx_xl_fast_settling_set(), ism330dhcx_xl_filter_lp2_set(), ism330dhcx_xl_full_scale_set(), ism330dhcx_xl_hp_path_internal_set(), ism330dhcx_xl_hp_path_on_out_set(), ism330dhcx_xl_lp2_on_6d_set(), ism330dhcx_xl_offset_weight_set(), ism330dhcx_xl_power_mode_set(), ism330dhcx_xl_self_test_set(), ism330dhcx_xl_usr_offset_on_wkup_set(), ism330dhcx_xl_usr_offset_set(), ism330dhcx_xl_usr_offset_x_set(), ism330dhcx_xl_usr_offset_y_set(), and ism330dhcx_xl_usr_offset_z_set().

◆ 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_fast_settling_get()

int32_t ism330dhcx_xl_fast_settling_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Enables accelerometer LPF2 and HPF fast-settling mode.

The filter sets the second samples after writing this bit. Active only during device exit from powerdown mode.[get]

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

Definition at line 3101 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl8_xl_t::fastsettl_mode_xl, ISM330DHCX_CTRL8_XL, and ism330dhcx_read_reg().

◆ ism330dhcx_xl_fast_settling_set()

int32_t ism330dhcx_xl_fast_settling_set ( stmdev_ctx_t * ctx,
uint8_t val )

Enables accelerometer LPF2 and HPF fast-settling mode.

The filter sets the second samples after writing this bit. Active only during device exit from powerdown mode.[set]

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

Definition at line 3073 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl8_xl_t::fastsettl_mode_xl, ISM330DHCX_CTRL8_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

◆ ism330dhcx_xl_filter_lp2_get()

int32_t ism330dhcx_xl_filter_lp2_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Accelerometer output from LPF2 filtering stage selection.

[get]

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

Definition at line 2680 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL1_XL, ism330dhcx_read_reg(), and ism330dhcx_ctrl1_xl_t::lpf2_xl_en.

◆ ism330dhcx_xl_filter_lp2_set()

int32_t ism330dhcx_xl_filter_lp2_set ( stmdev_ctx_t * ctx,
uint8_t val )

Accelerometer output from LPF2 filtering stage selection.

[set]

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

Definition at line 2655 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL1_XL, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl1_xl_t::lpf2_xl_en.

Referenced by QwDevISM330DHCX::setAccelFilterLP2().

◆ 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_hp_path_internal_get()

int32_t ism330dhcx_xl_hp_path_internal_get ( stmdev_ctx_t * ctx,
ism330dhcx_slope_fds_t * val )

HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions.

[get]

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

Definition at line 3149 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ISM330DHCX_USE_HPF, ISM330DHCX_USE_SLOPE, and ism330dhcx_tap_cfg0_t::slope_fds.

◆ ism330dhcx_xl_hp_path_internal_set()

int32_t ism330dhcx_xl_hp_path_internal_set ( stmdev_ctx_t * ctx,
ism330dhcx_slope_fds_t val )

HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions.

[set]

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

Definition at line 3122 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_TAP_CFG0, ism330dhcx_write_reg(), and ism330dhcx_tap_cfg0_t::slope_fds.

◆ ism330dhcx_xl_hp_path_on_out_get()

◆ ism330dhcx_xl_hp_path_on_out_set()

int32_t ism330dhcx_xl_hp_path_on_out_set ( stmdev_ctx_t * ctx,
ism330dhcx_hp_slope_xl_en_t val )

Accelerometer slope filter / high-pass filter selection on output.

[set]

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

Definition at line 2922 of file ism330dhcx_reg.c.

References ism330dhcx_ctrl8_xl_t::hp_ref_mode_xl, ism330dhcx_ctrl8_xl_t::hp_slope_xl_en, ism330dhcx_ctrl8_xl_t::hpcf_xl, ISM330DHCX_CTRL8_XL, ism330dhcx_read_reg(), and ism330dhcx_write_reg().

Referenced by QwDevISM330DHCX::setAccelSlopeFilter().

◆ ism330dhcx_xl_lp2_on_6d_get()

int32_t ism330dhcx_xl_lp2_on_6d_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Low pass filter 2 on 6D function selection.

[get]

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

Definition at line 2902 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL8_XL, ism330dhcx_read_reg(), and ism330dhcx_ctrl8_xl_t::low_pass_on_6d.

◆ ism330dhcx_xl_lp2_on_6d_set()

int32_t ism330dhcx_xl_lp2_on_6d_set ( stmdev_ctx_t * ctx,
uint8_t val )

Low pass filter 2 on 6D function selection.

[set]

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

Definition at line 2877 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL8_XL, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl8_xl_t::low_pass_on_6d.

◆ 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_self_test_get()

int32_t ism330dhcx_xl_self_test_get ( stmdev_ctx_t * ctx,
ism330dhcx_st_xl_t * val )

Linear acceleration sensor self-test enable.

[get]

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

Definition at line 2540 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL5_C, ism330dhcx_read_reg(), ISM330DHCX_XL_ST_DISABLE, ISM330DHCX_XL_ST_NEGATIVE, ISM330DHCX_XL_ST_POSITIVE, and ism330dhcx_ctrl5_c_t::st_xl.

◆ ism330dhcx_xl_self_test_set()

int32_t ism330dhcx_xl_self_test_set ( stmdev_ctx_t * ctx,
ism330dhcx_st_xl_t val )

Linear acceleration sensor self-test enable.

[set]

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

Definition at line 2514 of file ism330dhcx_reg.c.

References ISM330DHCX_CTRL5_C, ism330dhcx_read_reg(), ism330dhcx_write_reg(), and ism330dhcx_ctrl5_c_t::st_xl.

Referenced by QwDevISM330DHCX::setAccelSelfTest().

◆ 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_on_wkup_get()

int32_t ism330dhcx_xl_usr_offset_on_wkup_get ( stmdev_ctx_t * ctx,
uint8_t * val )

Wake up duration event( 1LSb = 1 / ODR ).

[get]

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

Definition at line 5373 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, and ism330dhcx_wake_up_ths_t::usr_off_on_wu.

◆ ism330dhcx_xl_usr_offset_on_wkup_set()

int32_t ism330dhcx_xl_usr_offset_on_wkup_set ( stmdev_ctx_t * ctx,
uint8_t val )

Wake up duration event( 1LSb = 1 / ODR ).

[set]

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

Definition at line 5347 of file ism330dhcx_reg.c.

References ism330dhcx_read_reg(), ISM330DHCX_WAKE_UP_THS, ism330dhcx_write_reg(), and ism330dhcx_wake_up_ths_t::usr_off_on_wu.

◆ 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.