|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
This section group all the functions concerning the fifo usage. More...
Functions | |
| 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. | |
This section group all the functions concerning the fifo usage.
| int32_t ism330dhcx_batch_counter_threshold_get | ( | stmdev_ctx_t * | ctx, |
| uint16_t * | val ) |
Batch data rate counter.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of cnt_bdr_th in reg COUNTER_BDR_REG2 and COUNTER_BDR_REG1. |
| Interface | status (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().
| int32_t ism330dhcx_batch_counter_threshold_set | ( | stmdev_ctx_t * | ctx, |
| uint16_t | val ) |
Batch data rate counter.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of cnt_bdr_th in reg COUNTER_BDR_REG2 and COUNTER_BDR_REG1. |
| Interface | status (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().
| int32_t ism330dhcx_compression_algo_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_uncoptr_rate_t * | val ) |
Enable and configure compression algo.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of uncoptr_rate in reg FIFO_CTRL2 |
| Interface | status (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.
| int32_t ism330dhcx_compression_algo_init_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
FIFO compression feature initialization request.
[get].
| ctx | Read / write interface definitions.(ptr) |
| val | change the values of FIFO_COMPR_INIT in reg EMB_FUNC_INIT_B |
| Interface | status (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.
| int32_t ism330dhcx_compression_algo_init_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
FIFO compression feature initialization request.
[set].
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of FIFO_COMPR_INIT in reg EMB_FUNC_INIT_B |
| Interface | status (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().
| int32_t ism330dhcx_compression_algo_real_time_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enables/Disables compression algorithm runtime.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fifo_compr_rt_en in reg FIFO_CTRL2 |
| Interface | status (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().
| int32_t ism330dhcx_compression_algo_real_time_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enables/Disables compression algorithm runtime[set].
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fifo_compr_rt_en in reg FIFO_CTRL2 |
| Interface | status (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().
| int32_t ism330dhcx_compression_algo_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_uncoptr_rate_t | val ) |
Enable and configure compression algo.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of uncoptr_rate in reg FIFO_CTRL2 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of trig_counter_bdr in reg COUNTER_BDR_REG1 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of trig_counter_bdr in reg COUNTER_BDR_REG1 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of diff_fifo in reg FIFO_STATUS1 |
| Interface | status (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().
| int32_t ism330dhcx_fifo_full_flag_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Smart FIFO full status.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fifo_full_ia in reg FIFO_STATUS2 |
| Interface | status (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().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of bdr_gy in reg FIFO_CTRL3 |
| Interface | status (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().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of bdr_gy in reg FIFO_CTRL3 |
| Interface | status (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().
| int32_t ism330dhcx_fifo_mode_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fifo_mode_t * | val ) |
FIFO mode selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of fifo_mode in reg FIFO_CTRL4 |
| Interface | status (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.
| int32_t ism330dhcx_fifo_mode_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fifo_mode_t | val ) |
FIFO mode selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fifo_mode in reg FIFO_CTRL4 |
| Interface | status (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().
| int32_t ism330dhcx_fifo_ovr_flag_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
FIFO overrun status.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fifo_over_run_latched in reg FIFO_STATUS2 |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 7589 of file ism330dhcx_reg.c.
References ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().
| int32_t ism330dhcx_fifo_pedo_batch_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enable FIFO batching of pedometer embedded function values.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of pedo_fifo_en in reg ISM330DHCX_EMB_FUNC_FIFO_CFG |
| Interface | status (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.
| int32_t ism330dhcx_fifo_pedo_batch_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enable FIFO batching of pedometer embedded function values.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of gbias_fifo_en in reg ISM330DHCX_EMB_FUNC_FIFO_CFG |
| Interface | status (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.
| int32_t ism330dhcx_fifo_sensor_tag_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fifo_tag_t * | val ) |
Identifies the sensor in FIFO_DATA_OUT.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of tag_sensor in reg FIFO_DATA_OUT_TAG |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 7627 of file ism330dhcx_reg.c.
References ISM330DHCX_CFG_CHANGE_TAG, ISM330DHCX_FIFO_DATA_OUT_TAG, ISM330DHCX_GAME_ROTATION_TAG, ISM330DHCX_GEOMAG_ROTATION_TAG, ISM330DHCX_GYRO_2XC_TAG, ISM330DHCX_GYRO_3XC_TAG, ISM330DHCX_GYRO_NC_T_1_TAG, ISM330DHCX_GYRO_NC_T_2_TAG, ISM330DHCX_GYRO_NC_TAG, ism330dhcx_read_reg(), ISM330DHCX_ROTATION_TAG, ISM330DHCX_SENSORHUB_NACK_TAG, ISM330DHCX_SENSORHUB_SLAVE0_TAG, ISM330DHCX_SENSORHUB_SLAVE1_TAG, ISM330DHCX_SENSORHUB_SLAVE2_TAG, ISM330DHCX_SENSORHUB_SLAVE3_TAG, ISM330DHCX_STEP_CPUNTER_TAG, ISM330DHCX_TEMPERATURE_TAG, ISM330DHCX_TIMESTAMP_TAG, ISM330DHCX_XL_2XC_TAG, ISM330DHCX_XL_3XC_TAG, ISM330DHCX_XL_NC_T_1_TAG, ISM330DHCX_XL_NC_T_2_TAG, ISM330DHCX_XL_NC_TAG, and ism330dhcx_fifo_data_out_tag_t::tag_sensor.
| int32_t ism330dhcx_fifo_status_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_fifo_status2_t * | val ) |
Smart FIFO status.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Registers FIFO_STATUS2 |
| Interface | status (MANDATORY: return 0 -> no Error). |
Definition at line 7551 of file ism330dhcx_reg.c.
References ISM330DHCX_FIFO_STATUS2, and ism330dhcx_read_reg().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of stop_on_wtm in reg FIFO_CTRL2 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of stop_on_wtm in reg FIFO_CTRL2 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of odr_t_batch in reg FIFO_CTRL4 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of odr_t_batch in reg FIFO_CTRL4 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of odr_ts_batch in reg FIFO_CTRL4 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of odr_ts_batch in reg FIFO_CTRL4 |
| Interface | status (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().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of odrchg_en in reg FIFO_CTRL2 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of odrchg_en in reg FIFO_CTRL2 |
| Interface | status (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.
| int32_t ism330dhcx_fifo_watermark_get | ( | stmdev_ctx_t * | ctx, |
| uint16_t * | val ) |
FIFO watermark level selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wtm in reg FIFO_CTRL1 |
| Interface | status (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.
| int32_t ism330dhcx_fifo_watermark_set | ( | stmdev_ctx_t * | ctx, |
| uint16_t | val ) |
FIFO watermark level selection.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of wtm in reg FIFO_CTRL1 |
| Interface | status (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().
| int32_t ism330dhcx_fifo_wtm_flag_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
FIFO watermark status.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of fifo_wtm_ia in reg FIFO_STATUS2 |
| Interface | status (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().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of bdr_xl in reg FIFO_CTRL3 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of bdr_xl in reg FIFO_CTRL3 |
| Interface | status (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().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of rst_counter_bdr in reg COUNTER_BDR_REG1 |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of rst_counter_bdr in reg COUNTER_BDR_REG1 |
| Interface | status (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.
| int32_t ism330dhcx_sh_batch_slave_0_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enable FIFO batching data of first slave.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_0_en in reg SLV0_CONFIG |
| Interface | status (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.
| int32_t ism330dhcx_sh_batch_slave_0_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enable FIFO batching data of first slave.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_0_en in reg SLV0_CONFIG |
| Interface | status (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().
| int32_t ism330dhcx_sh_batch_slave_1_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enable FIFO batching data of second slave.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_1_en in reg SLV1_CONFIG |
| Interface | status (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.
| int32_t ism330dhcx_sh_batch_slave_1_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enable FIFO batching data of second slave.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_1_en in reg SLV1_CONFIG |
| Interface | status (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().
| int32_t ism330dhcx_sh_batch_slave_2_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enable FIFO batching data of third slave.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_2_en in reg SLV2_CONFIG |
| Interface | status (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.
| int32_t ism330dhcx_sh_batch_slave_2_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enable FIFO batching data of third slave.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_2_en in reg SLV2_CONFIG |
| Interface | status (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().
| int32_t ism330dhcx_sh_batch_slave_3_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val ) |
Enable FIFO batching data of fourth slave.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_3_en in reg SLV3_CONFIG |
| Interface | status (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.
| int32_t ism330dhcx_sh_batch_slave_3_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val ) |
Enable FIFO batching data of fourth slave.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of batch_ext_sens_3_en in reg SLV3_CONFIG |
| Interface | status (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().