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

This section group all the functions concerning the fifo usage. More...

Collaboration diagram for ISM330DHCX_fifo:

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.

Detailed Description

This section group all the functions concerning the fifo usage.

Function Documentation

◆ 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_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_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_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_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_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().