![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
This section group all the functions concerning the fifo usage. More...

Functions | |
| int32_t | lsm6dso32_fifo_watermark_set (stmdev_ctx_t *ctx, uint16_t val) |
| FIFO watermark level selection.[set]. | |
| int32_t | lsm6dso32_fifo_watermark_get (stmdev_ctx_t *ctx, uint16_t *val) |
| FIFO watermark level selection.[get]. | |
| int32_t | lsm6dso32_compression_algo_init_set (stmdev_ctx_t *ctx, uint8_t val) |
| FIFO compression feature initialization request [set]. | |
| int32_t | lsm6dso32_compression_algo_init_get (stmdev_ctx_t *ctx, uint8_t *val) |
| FIFO compression feature initialization request [get]. | |
| int32_t | lsm6dso32_compression_algo_set (stmdev_ctx_t *ctx, lsm6dso32_uncoptr_rate_t val) |
| Enable and configure compression algo.[set]. | |
| int32_t | lsm6dso32_compression_algo_get (stmdev_ctx_t *ctx, lsm6dso32_uncoptr_rate_t *val) |
| Enable and configure compression algo.[get]. | |
| int32_t | lsm6dso32_fifo_virtual_sens_odr_chg_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enables ODR CHANGE virtual sensor to be batched in FIFO.[set]. | |
| int32_t | lsm6dso32_fifo_virtual_sens_odr_chg_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enables ODR CHANGE virtual sensor to be batched in FIFO.[get]. | |
| int32_t | lsm6dso32_compression_algo_real_time_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enables/Disables compression algorithm runtime.[set]. | |
| int32_t | lsm6dso32_compression_algo_real_time_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enables/Disables compression algorithm runtime.[get]. | |
| int32_t | lsm6dso32_fifo_stop_on_wtm_set (stmdev_ctx_t *ctx, uint8_t val) |
| Sensing chain FIFO stop values memorization at threshold level.[set]. | |
| int32_t | lsm6dso32_fifo_stop_on_wtm_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Sensing chain FIFO stop values memorization at threshold level.[get]. | |
| int32_t | lsm6dso32_fifo_xl_batch_set (stmdev_ctx_t *ctx, lsm6dso32_bdr_xl_t val) |
| Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.[set]. | |
| int32_t | lsm6dso32_fifo_xl_batch_get (stmdev_ctx_t *ctx, lsm6dso32_bdr_xl_t *val) |
| Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.[get]. | |
| int32_t | lsm6dso32_fifo_gy_batch_set (stmdev_ctx_t *ctx, lsm6dso32_bdr_gy_t val) |
| Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.[set]. | |
| int32_t | lsm6dso32_fifo_gy_batch_get (stmdev_ctx_t *ctx, lsm6dso32_bdr_gy_t *val) |
| Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.[get]. | |
| int32_t | lsm6dso32_fifo_mode_set (stmdev_ctx_t *ctx, lsm6dso32_fifo_mode_t val) |
| FIFO mode selection.[set]. | |
| int32_t | lsm6dso32_fifo_mode_get (stmdev_ctx_t *ctx, lsm6dso32_fifo_mode_t *val) |
| FIFO mode selection.[get]. | |
| int32_t | lsm6dso32_fifo_temp_batch_set (stmdev_ctx_t *ctx, lsm6dso32_odr_t_batch_t val) |
| Selects Batching Data Rate (writing frequency in FIFO) for temperature data.[set]. | |
| int32_t | lsm6dso32_fifo_temp_batch_get (stmdev_ctx_t *ctx, lsm6dso32_odr_t_batch_t *val) |
| Selects Batching Data Rate (writing frequency in FIFO) for temperature data.[get]. | |
| int32_t | lsm6dso32_fifo_timestamp_decimation_set (stmdev_ctx_t *ctx, lsm6dso32_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]. | |
| int32_t | lsm6dso32_fifo_timestamp_decimation_get (stmdev_ctx_t *ctx, lsm6dso32_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]. | |
| int32_t | lsm6dso32_fifo_cnt_event_batch_set (stmdev_ctx_t *ctx, lsm6dso32_trig_counter_bdr_t val) |
| Selects the trigger for the internal counter of batching events between XL and gyro.[set]. | |
| int32_t | lsm6dso32_fifo_cnt_event_batch_get (stmdev_ctx_t *ctx, lsm6dso32_trig_counter_bdr_t *val) |
| Selects the trigger for the internal counter of batching events between XL and gyro.[get]. | |
| int32_t | lsm6dso32_rst_batch_counter_set (stmdev_ctx_t *ctx, uint8_t val) |
| Resets the internal counter of batching vents for a single sensor. This bit is automatically reset to zero if it was set to ‘1’.[set]. | |
| int32_t | lsm6dso32_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]. | |
| int32_t | lsm6dso32_batch_counter_threshold_set (stmdev_ctx_t *ctx, uint16_t val) |
| Batch data rate counter.[set]. | |
| int32_t | lsm6dso32_batch_counter_threshold_get (stmdev_ctx_t *ctx, uint16_t *val) |
| Batch data rate counter.[get]. | |
| int32_t | lsm6dso32_fifo_data_level_get (stmdev_ctx_t *ctx, uint16_t *val) |
| Number of unread sensor data(TAG + 6 bytes) stored in FIFO.[get]. | |
| int32_t | lsm6dso32_fifo_status_get (stmdev_ctx_t *ctx, lsm6dso32_fifo_status2_t *val) |
| FIFO status.[get]. | |
| int32_t | lsm6dso32_fifo_full_flag_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Smart FIFO full status.[get]. | |
| int32_t | lsm6dso32_fifo_ovr_flag_get (stmdev_ctx_t *ctx, uint8_t *val) |
| FIFO overrun status.[get]. | |
| int32_t | lsm6dso32_fifo_wtm_flag_get (stmdev_ctx_t *ctx, uint8_t *val) |
| FIFO watermark status.[get]. | |
| int32_t | lsm6dso32_fifo_sensor_tag_get (stmdev_ctx_t *ctx, lsm6dso32_fifo_tag_t *val) |
| Identifies the sensor in FIFO_DATA_OUT.[get]. | |
| int32_t | lsm6dso32_fifo_pedo_batch_set (stmdev_ctx_t *ctx, uint8_t val) |
| : Enable FIFO batching of pedometer embedded function values.[set] | |
| int32_t | lsm6dso32_fifo_pedo_batch_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enable FIFO batching of pedometer embedded function values.[get]. | |
| int32_t | lsm6dso32_sh_batch_slave_0_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enable FIFO batching data of first slave.[set]. | |
| int32_t | lsm6dso32_sh_batch_slave_0_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enable FIFO batching data of first slave.[get]. | |
| int32_t | lsm6dso32_sh_batch_slave_1_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enable FIFO batching data of second slave.[set]. | |
| int32_t | lsm6dso32_sh_batch_slave_1_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enable FIFO batching data of second slave.[get]. | |
| int32_t | lsm6dso32_sh_batch_slave_2_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enable FIFO batching data of third slave.[set]. | |
| int32_t | lsm6dso32_sh_batch_slave_2_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enable FIFO batching data of third slave.[get]. | |
| int32_t | lsm6dso32_sh_batch_slave_3_set (stmdev_ctx_t *ctx, uint8_t val) |
| Enable FIFO batching data of fourth slave.[set]. | |
| int32_t | lsm6dso32_sh_batch_slave_3_get (stmdev_ctx_t *ctx, uint8_t *val) |
| Enable FIFO batching data of fourth slave.[get]. | |
This section group all the functions concerning the fifo usage.
| enum lsm6dso32_bdr_gy_t |
Definition at line 3361 of file lsm6dso32_reg.h.
| enum lsm6dso32_bdr_xl_t |
Definition at line 3341 of file lsm6dso32_reg.h.
| Enumerator | |
|---|---|
| LSM6DSO32_BYPASS_MODE | |
| LSM6DSO32_FIFO_MODE | |
| LSM6DSO32_STREAM_TO_FIFO_MODE | |
| LSM6DSO32_BYPASS_TO_STREAM_MODE | |
| LSM6DSO32_STREAM_MODE | |
| LSM6DSO32_BYPASS_TO_FIFO_MODE | |
Definition at line 3381 of file lsm6dso32_reg.h.
| enum lsm6dso32_fifo_tag_t |
Definition at line 3425 of file lsm6dso32_reg.h.
| Enumerator | |
|---|---|
| LSM6DSO32_TEMP_NOT_BATCHED | |
| LSM6DSO32_TEMP_BATCHED_AT_1Hz6 | |
| LSM6DSO32_TEMP_BATCHED_AT_12Hz5 | |
| LSM6DSO32_TEMP_BATCHED_AT_52Hz | |
Definition at line 3395 of file lsm6dso32_reg.h.
| Enumerator | |
|---|---|
| LSM6DSO32_NO_DECIMATION | |
| LSM6DSO32_DEC_1 | |
| LSM6DSO32_DEC_8 | |
| LSM6DSO32_DEC_32 | |
Definition at line 3407 of file lsm6dso32_reg.h.
| Enumerator | |
|---|---|
| LSM6DSO32_XL_BATCH_EVENT | |
| LSM6DSO32_GYRO_BATCH_EVENT | |
Definition at line 3419 of file lsm6dso32_reg.h.
| Enumerator | |
|---|---|
| LSM6DSO32_CMP_DISABLE | |
| LSM6DSO32_CMP_ALWAYS | |
| LSM6DSO32_CMP_8_TO_1 | |
| LSM6DSO32_CMP_16_TO_1 | |
| LSM6DSO32_CMP_32_TO_1 | |
Definition at line 3313 of file lsm6dso32_reg.h.
| int32_t lsm6dso32_batch_counter_threshold_get | ( | stmdev_ctx_t * | ctx, |
| uint16_t * | val | ||
| ) |
Batch data rate counter.[get].
| ctx | read / write interface definitions |
| 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 6023 of file lsm6dso32_reg.c.
References lsm6dso32_counter_bdr_reg1_t::cnt_bdr_th, LSM6DSO32_COUNTER_BDR_REG1, LSM6DSO32_COUNTER_BDR_REG2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_batch_counter_threshold_set | ( | stmdev_ctx_t * | ctx, |
| uint16_t | val | ||
| ) |
Batch data rate counter.[set].
| ctx | read / write interface definitions |
| 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 5987 of file lsm6dso32_reg.c.
References lsm6dso32_counter_bdr_reg1_t::cnt_bdr_th, lsm6dso32_counter_bdr_reg2_t::cnt_bdr_th, LSM6DSO32_COUNTER_BDR_REG1, LSM6DSO32_COUNTER_BDR_REG2, lsm6dso32_read_reg(), and lsm6dso32_write_reg().

| int32_t lsm6dso32_compression_algo_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_uncoptr_rate_t * | val | ||
| ) |
Enable and configure compression algo.[get].
| ctx | read / write interface definitions |
| val | Get the values of uncoptr_rate in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5268 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl2_t::fifo_compr_rt_en, LSM6DSO32_CMP_16_TO_1, LSM6DSO32_CMP_32_TO_1, LSM6DSO32_CMP_8_TO_1, LSM6DSO32_CMP_ALWAYS, LSM6DSO32_CMP_DISABLE, LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), and lsm6dso32_fifo_ctrl2_t::uncoptr_rate.

| int32_t lsm6dso32_compression_algo_init_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
FIFO compression feature initialization request [get].
| ctx | read / write interface definitions |
| val | change the values of FIFO_COMPR_INIT in reg EMB_FUNC_INIT_B |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5183 of file lsm6dso32_reg.c.
References lsm6dso32_emb_func_init_b_t::fifo_compr_init, LSM6DSO32_EMB_FUNC_INIT_B, LSM6DSO32_EMBEDDED_FUNC_BANK, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), and LSM6DSO32_USER_BANK.

| int32_t lsm6dso32_compression_algo_init_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
FIFO compression feature initialization request [set].
| ctx | read / write interface definitions |
| val | change the values of FIFO_COMPR_INIT in reg EMB_FUNC_INIT_B |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5145 of file lsm6dso32_reg.c.
References lsm6dso32_emb_func_init_b_t::fifo_compr_init, LSM6DSO32_EMB_FUNC_INIT_B, LSM6DSO32_EMBEDDED_FUNC_BANK, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_USER_BANK, and lsm6dso32_write_reg().

| int32_t lsm6dso32_compression_algo_real_time_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Enables/Disables compression algorithm runtime.[get].
| ctx | read / write interface definitions |
| val | change the values of fifo_compr_rt_en in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5385 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl2_t::fifo_compr_rt_en, LSM6DSO32_FIFO_CTRL2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_compression_algo_real_time_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Enables/Disables compression algorithm runtime.[set].
| ctx | read / write interface definitions |
| val | change the values of fifo_compr_rt_en in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5360 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl2_t::fifo_compr_rt_en, LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), and lsm6dso32_write_reg().

| int32_t lsm6dso32_compression_algo_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_uncoptr_rate_t | val | ||
| ) |
Enable and configure compression algo.[set].
| ctx | read / write interface definitions |
| val | change the values of uncoptr_rate in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5215 of file lsm6dso32_reg.c.
References lsm6dso32_emb_func_en_b_t::fifo_compr_en, lsm6dso32_fifo_ctrl2_t::fifo_compr_rt_en, LSM6DSO32_EMB_FUNC_EN_B, LSM6DSO32_EMBEDDED_FUNC_BANK, LSM6DSO32_FIFO_CTRL2, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_USER_BANK, lsm6dso32_write_reg(), and lsm6dso32_fifo_ctrl2_t::uncoptr_rate.

| int32_t lsm6dso32_fifo_cnt_event_batch_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_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 |
| val | Get the values of trig_counter_bdr in reg COUNTER_BDR_REG1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5899 of file lsm6dso32_reg.c.
References LSM6DSO32_COUNTER_BDR_REG1, LSM6DSO32_GYRO_BATCH_EVENT, lsm6dso32_read_reg(), LSM6DSO32_XL_BATCH_EVENT, and lsm6dso32_counter_bdr_reg1_t::trig_counter_bdr.

| int32_t lsm6dso32_fifo_cnt_event_batch_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_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 |
| val | change the values of trig_counter_bdr in reg COUNTER_BDR_REG1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5870 of file lsm6dso32_reg.c.
References LSM6DSO32_COUNTER_BDR_REG1, lsm6dso32_read_reg(), lsm6dso32_write_reg(), and lsm6dso32_counter_bdr_reg1_t::trig_counter_bdr.

| int32_t lsm6dso32_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 |
| val | change the values of diff_fifo in reg FIFO_STATUS1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6052 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_status1_t::diff_fifo, LSM6DSO32_FIFO_STATUS1, LSM6DSO32_FIFO_STATUS2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_fifo_full_flag_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Smart FIFO full status.[get].
| ctx | read / write interface definitions |
| val | change the values of fifo_full_ia in reg FIFO_STATUS2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6099 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_status2_t::fifo_full_ia, LSM6DSO32_FIFO_STATUS2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_fifo_gy_batch_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_bdr_gy_t * | val | ||
| ) |
Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.[get].
| ctx | read / write interface definitions |
| val | Get the values of bdr_gy in reg FIFO_CTRL3 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5579 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl3_t::bdr_gy, LSM6DSO32_FIFO_CTRL3, LSM6DSO32_GY_BATCHED_AT_104Hz, LSM6DSO32_GY_BATCHED_AT_12Hz5, LSM6DSO32_GY_BATCHED_AT_1667Hz, LSM6DSO32_GY_BATCHED_AT_208Hz, LSM6DSO32_GY_BATCHED_AT_26Hz, LSM6DSO32_GY_BATCHED_AT_3333Hz, LSM6DSO32_GY_BATCHED_AT_417Hz, LSM6DSO32_GY_BATCHED_AT_52Hz, LSM6DSO32_GY_BATCHED_AT_6667Hz, LSM6DSO32_GY_BATCHED_AT_6Hz5, LSM6DSO32_GY_BATCHED_AT_833Hz, LSM6DSO32_GY_NOT_BATCHED, and lsm6dso32_read_reg().

| int32_t lsm6dso32_fifo_gy_batch_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_bdr_gy_t | val | ||
| ) |
Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.[set].
| ctx | read / write interface definitions |
| val | change the values of bdr_gy in reg FIFO_CTRL3 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5553 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl3_t::bdr_gy, LSM6DSO32_FIFO_CTRL3, lsm6dso32_read_reg(), and lsm6dso32_write_reg().

| int32_t lsm6dso32_fifo_mode_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_fifo_mode_t * | val | ||
| ) |
FIFO mode selection.[get].
| ctx | read / write interface definitions |
| val | Get the values of fifo_mode in reg FIFO_CTRL4 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5678 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl4_t::fifo_mode, LSM6DSO32_BYPASS_MODE, LSM6DSO32_BYPASS_TO_FIFO_MODE, LSM6DSO32_BYPASS_TO_STREAM_MODE, LSM6DSO32_FIFO_CTRL4, LSM6DSO32_FIFO_MODE, lsm6dso32_read_reg(), LSM6DSO32_STREAM_MODE, and LSM6DSO32_STREAM_TO_FIFO_MODE.

| int32_t lsm6dso32_fifo_mode_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_fifo_mode_t | val | ||
| ) |
FIFO mode selection.[set].
| ctx | read / write interface definitions |
| val | change the values of fifo_mode in reg FIFO_CTRL4 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5653 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl4_t::fifo_mode, LSM6DSO32_FIFO_CTRL4, lsm6dso32_read_reg(), and lsm6dso32_write_reg().

| int32_t lsm6dso32_fifo_ovr_flag_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
FIFO overrun status.[get].
| ctx | read / write interface definitions |
| val | change the values of fifo_over_run_latched in reg FIFO_STATUS2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6119 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_status2_t::fifo_ovr_ia, LSM6DSO32_FIFO_STATUS2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_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 |
| val | change the values of pedo_fifo_en in reg LSM6DSO32_EMB_FUNC_FIFO_CFG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6299 of file lsm6dso32_reg.c.
References LSM6DSO32_EMB_FUNC_FIFO_CFG, LSM6DSO32_EMBEDDED_FUNC_BANK, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_USER_BANK, and lsm6dso32_emb_func_fifo_cfg_t::pedo_fifo_en.

| int32_t lsm6dso32_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 |
| val | change the values of gbias_fifo_en in reg LSM6DSO32_EMB_FUNC_FIFO_CFG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6262 of file lsm6dso32_reg.c.
References LSM6DSO32_EMB_FUNC_FIFO_CFG, LSM6DSO32_EMBEDDED_FUNC_BANK, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_USER_BANK, lsm6dso32_write_reg(), and lsm6dso32_emb_func_fifo_cfg_t::pedo_fifo_en.

| int32_t lsm6dso32_fifo_sensor_tag_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_fifo_tag_t * | val | ||
| ) |
Identifies the sensor in FIFO_DATA_OUT.[get].
| ctx | read / write interface definitions |
| val | change the values of tag_sensor in reg FIFO_DATA_OUT_TAG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6157 of file lsm6dso32_reg.c.
References LSM6DSO32_CFG_CHANGE_TAG, LSM6DSO32_FIFO_DATA_OUT_TAG, LSM6DSO32_GYRO_2XC_TAG, LSM6DSO32_GYRO_3XC_TAG, LSM6DSO32_GYRO_NC_T_1_TAG, LSM6DSO32_GYRO_NC_T_2_TAG, LSM6DSO32_GYRO_NC_TAG, lsm6dso32_read_reg(), LSM6DSO32_SENSORHUB_NACK_TAG, LSM6DSO32_SENSORHUB_SLAVE0_TAG, LSM6DSO32_SENSORHUB_SLAVE1_TAG, LSM6DSO32_SENSORHUB_SLAVE2_TAG, LSM6DSO32_SENSORHUB_SLAVE3_TAG, LSM6DSO32_STEP_COUNTER_TAG, LSM6DSO32_TEMPERATURE_TAG, LSM6DSO32_TIMESTAMP_TAG, LSM6DSO32_XL_2XC_TAG, LSM6DSO32_XL_3XC_TAG, LSM6DSO32_XL_NC_T_1_TAG, LSM6DSO32_XL_NC_T_2_TAG, LSM6DSO32_XL_NC_TAG, and lsm6dso32_fifo_data_out_tag_t::tag_sensor.

| int32_t lsm6dso32_fifo_status_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_fifo_status2_t * | val | ||
| ) |
FIFO status.[get].
| ctx | read / write interface definitions |
| val | registers FIFO_STATUS2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6081 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_STATUS2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_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 |
| val | change the values of stop_on_wtm in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5431 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), and lsm6dso32_fifo_ctrl2_t::stop_on_wtm.

| int32_t lsm6dso32_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 |
| val | change the values of stop_on_wtm in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5406 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), lsm6dso32_write_reg(), and lsm6dso32_fifo_ctrl2_t::stop_on_wtm.

| int32_t lsm6dso32_fifo_temp_batch_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_odr_t_batch_t * | val | ||
| ) |
Selects Batching Data Rate (writing frequency in FIFO) for temperature data.[get].
| ctx | read / write interface definitions |
| val | Get the values of odr_t_batch in reg FIFO_CTRL4 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5755 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL4, lsm6dso32_read_reg(), LSM6DSO32_TEMP_BATCHED_AT_12Hz5, LSM6DSO32_TEMP_BATCHED_AT_1Hz6, LSM6DSO32_TEMP_BATCHED_AT_52Hz, LSM6DSO32_TEMP_NOT_BATCHED, and lsm6dso32_fifo_ctrl4_t::odr_t_batch.

| int32_t lsm6dso32_fifo_temp_batch_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_odr_t_batch_t | val | ||
| ) |
Selects Batching Data Rate (writing frequency in FIFO) for temperature data.[set].
| ctx | read / write interface definitions |
| val | change the values of odr_t_batch in reg FIFO_CTRL4 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5729 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL4, lsm6dso32_read_reg(), lsm6dso32_write_reg(), and lsm6dso32_fifo_ctrl4_t::odr_t_batch.

| int32_t lsm6dso32_fifo_timestamp_decimation_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_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 |
| val | Get the values of odr_ts_batch in reg FIFO_CTRL4 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5826 of file lsm6dso32_reg.c.
References LSM6DSO32_DEC_1, LSM6DSO32_DEC_32, LSM6DSO32_DEC_8, LSM6DSO32_FIFO_CTRL4, LSM6DSO32_NO_DECIMATION, lsm6dso32_read_reg(), and lsm6dso32_fifo_ctrl4_t::odr_ts_batch.

| int32_t lsm6dso32_fifo_timestamp_decimation_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_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 |
| val | change the values of odr_ts_batch in reg FIFO_CTRL4 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5799 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL4, lsm6dso32_read_reg(), lsm6dso32_write_reg(), and lsm6dso32_fifo_ctrl4_t::odr_ts_batch.

| int32_t lsm6dso32_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 |
| val | change the values of odrchg_en in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5339 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), and lsm6dso32_fifo_ctrl2_t::odrchg_en.

| int32_t lsm6dso32_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 |
| val | change the values of odrchg_en in reg FIFO_CTRL2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5314 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), lsm6dso32_write_reg(), and lsm6dso32_fifo_ctrl2_t::odrchg_en.

| int32_t lsm6dso32_fifo_watermark_get | ( | stmdev_ctx_t * | ctx, |
| uint16_t * | val | ||
| ) |
FIFO watermark level selection.[get].
| ctx | read / write interface definitions |
| val | change the values of wtm in reg FIFO_CTRL1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5117 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL1, LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), and lsm6dso32_fifo_ctrl1_t::wtm.

| int32_t lsm6dso32_fifo_watermark_set | ( | stmdev_ctx_t * | ctx, |
| uint16_t | val | ||
| ) |
FIFO watermark level selection.[set].
| ctx | read / write interface definitions |
| val | change the values of wtm in reg FIFO_CTRL1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5083 of file lsm6dso32_reg.c.
References LSM6DSO32_FIFO_CTRL1, LSM6DSO32_FIFO_CTRL2, lsm6dso32_read_reg(), lsm6dso32_write_reg(), lsm6dso32_fifo_ctrl1_t::wtm, and lsm6dso32_fifo_ctrl2_t::wtm.

| int32_t lsm6dso32_fifo_wtm_flag_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
FIFO watermark status.[get].
| ctx | read / write interface definitions |
| val | change the values of fifo_wtm_ia in reg FIFO_STATUS2 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6138 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_status2_t::fifo_wtm_ia, LSM6DSO32_FIFO_STATUS2, and lsm6dso32_read_reg().

| int32_t lsm6dso32_fifo_xl_batch_get | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_bdr_xl_t * | val | ||
| ) |
Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.[get].
| ctx | read / write interface definitions |
| val | Get the values of bdr_xl in reg FIFO_CTRL3 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5478 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl3_t::bdr_xl, LSM6DSO32_FIFO_CTRL3, lsm6dso32_read_reg(), LSM6DSO32_XL_BATCHED_AT_104Hz, LSM6DSO32_XL_BATCHED_AT_12Hz5, LSM6DSO32_XL_BATCHED_AT_1667Hz, LSM6DSO32_XL_BATCHED_AT_208Hz, LSM6DSO32_XL_BATCHED_AT_26Hz, LSM6DSO32_XL_BATCHED_AT_3333Hz, LSM6DSO32_XL_BATCHED_AT_417Hz, LSM6DSO32_XL_BATCHED_AT_52Hz, LSM6DSO32_XL_BATCHED_AT_6667Hz, LSM6DSO32_XL_BATCHED_AT_6Hz5, LSM6DSO32_XL_BATCHED_AT_833Hz, and LSM6DSO32_XL_NOT_BATCHED.

| int32_t lsm6dso32_fifo_xl_batch_set | ( | stmdev_ctx_t * | ctx, |
| lsm6dso32_bdr_xl_t | val | ||
| ) |
Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.[set].
| ctx | read / write interface definitions |
| val | change the values of bdr_xl in reg FIFO_CTRL3 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5452 of file lsm6dso32_reg.c.
References lsm6dso32_fifo_ctrl3_t::bdr_xl, LSM6DSO32_FIFO_CTRL3, lsm6dso32_read_reg(), and lsm6dso32_write_reg().

| int32_t lsm6dso32_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 |
| val | change the values of rst_counter_bdr in reg COUNTER_BDR_REG1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5965 of file lsm6dso32_reg.c.
References LSM6DSO32_COUNTER_BDR_REG1, lsm6dso32_read_reg(), and lsm6dso32_counter_bdr_reg1_t::rst_counter_bdr.

| int32_t lsm6dso32_rst_batch_counter_set | ( | stmdev_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Resets the internal counter of batching vents for a single sensor. This bit is automatically reset to zero if it was set to ‘1’.[set].
| ctx | read / write interface definitions |
| val | change the values of rst_counter_bdr in reg COUNTER_BDR_REG1 |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 5936 of file lsm6dso32_reg.c.
References LSM6DSO32_COUNTER_BDR_REG1, lsm6dso32_read_reg(), lsm6dso32_write_reg(), and lsm6dso32_counter_bdr_reg1_t::rst_counter_bdr.

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_0_en in reg SLV0_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6365 of file lsm6dso32_reg.c.
References lsm6dso32_slv0_config_t::batch_ext_sens_0_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV0_CONFIG, and LSM6DSO32_USER_BANK.

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_0_en in reg SLV0_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6330 of file lsm6dso32_reg.c.
References lsm6dso32_slv0_config_t::batch_ext_sens_0_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV0_CONFIG, LSM6DSO32_USER_BANK, and lsm6dso32_write_reg().

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_1_en in reg SLV1_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6431 of file lsm6dso32_reg.c.
References lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV1_CONFIG, and LSM6DSO32_USER_BANK.

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_1_en in reg SLV1_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6396 of file lsm6dso32_reg.c.
References lsm6dso32_slv1_config_t::batch_ext_sens_1_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV1_CONFIG, LSM6DSO32_USER_BANK, and lsm6dso32_write_reg().

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_2_en in reg SLV2_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6497 of file lsm6dso32_reg.c.
References lsm6dso32_slv2_config_t::batch_ext_sens_2_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV2_CONFIG, and LSM6DSO32_USER_BANK.

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_2_en in reg SLV2_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6462 of file lsm6dso32_reg.c.
References lsm6dso32_slv2_config_t::batch_ext_sens_2_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV2_CONFIG, LSM6DSO32_USER_BANK, and lsm6dso32_write_reg().

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_3_en in reg SLV3_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6563 of file lsm6dso32_reg.c.
References lsm6dso32_slv3_config_t::batch_ext_sens_3_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV3_CONFIG, and LSM6DSO32_USER_BANK.

| int32_t lsm6dso32_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 |
| val | change the values of batch_ext_sens_3_en in reg SLV3_CONFIG |
| interface | status (MANDATORY: return 0 -> no Error) |
Definition at line 6528 of file lsm6dso32_reg.c.
References lsm6dso32_slv3_config_t::batch_ext_sens_3_en, lsm6dso32_mem_bank_set(), lsm6dso32_read_reg(), LSM6DSO32_SENSOR_HUB_BANK, LSM6DSO32_SLV3_CONFIG, LSM6DSO32_USER_BANK, and lsm6dso32_write_reg().
