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

This section groups all the data output functions. More...

Collaboration diagram for output:

Functions

int32_t ism330dhcx_rounding_mode_set (stmdev_ctx_t *ctx, ism330dhcx_rounding_t val)
 Circular burst-mode (rounding) read of the output registers.
int32_t ism330dhcx_rounding_mode_get (stmdev_ctx_t *ctx, ism330dhcx_rounding_t *val)
 Gyroscope UI chain full-scale selection.
int32_t ism330dhcx_temperature_raw_get (stmdev_ctx_t *ctx, int16_t *val)
 Temperature data output register (r).
int32_t ism330dhcx_angular_rate_raw_get (stmdev_ctx_t *ctx, int16_t *val)
 Angular rate sensor.
int32_t ism330dhcx_acceleration_raw_get (stmdev_ctx_t *ctx, int16_t *val)
 Linear acceleration output register.
int32_t ism330dhcx_fifo_out_raw_get (stmdev_ctx_t *ctx, uint8_t *buff)
 FIFO data output.
int32_t ism330dhcx_number_of_steps_get (stmdev_ctx_t *ctx, uint16_t *val)
 Step counter output register.
int32_t ism330dhcx_steps_reset (stmdev_ctx_t *ctx)
 Reset step counter register.
int32_t ism330dhcx_mlc_out_get (stmdev_ctx_t *ctx, uint8_t *buff)
 prgsens_out: [get] Output value of all MLCx decision trees.

Detailed Description

This section groups all the data output functions.

Function Documentation

◆ ism330dhcx_acceleration_raw_get()

int32_t ism330dhcx_acceleration_raw_get ( stmdev_ctx_t * ctx,
int16_t * val )

Linear acceleration output register.

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

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

Definition at line 1730 of file ism330dhcx_reg.c.

References ISM330DHCX_OUTX_L_A, and ism330dhcx_read_reg().

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

◆ ism330dhcx_angular_rate_raw_get()

int32_t ism330dhcx_angular_rate_raw_get ( stmdev_ctx_t * ctx,
int16_t * val )

Angular rate sensor.

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

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

Definition at line 1705 of file ism330dhcx_reg.c.

References ISM330DHCX_OUTX_L_G, and ism330dhcx_read_reg().

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

◆ ism330dhcx_fifo_out_raw_get()

int32_t ism330dhcx_fifo_out_raw_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

FIFO data output.

[get]

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

Definition at line 1754 of file ism330dhcx_reg.c.

References ISM330DHCX_FIFO_DATA_OUT_X_L, and ism330dhcx_read_reg().

◆ ism330dhcx_mlc_out_get()

int32_t ism330dhcx_mlc_out_get ( stmdev_ctx_t * ctx,
uint8_t * buff )

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

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

Definition at line 1833 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_number_of_steps_get()

int32_t ism330dhcx_number_of_steps_get ( stmdev_ctx_t * ctx,
uint16_t * val )

Step counter output register.

[get]

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

Definition at line 1770 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_rounding_mode_get()

int32_t ism330dhcx_rounding_mode_get ( stmdev_ctx_t * ctx,
ism330dhcx_rounding_t * val )

Gyroscope UI chain full-scale selection.

[get]

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

Definition at line 1640 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_rounding_mode_set()

int32_t ism330dhcx_rounding_mode_set ( stmdev_ctx_t * ctx,
ism330dhcx_rounding_t val )

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

[set]

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

Definition at line 1614 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_steps_reset()

int32_t ism330dhcx_steps_reset ( stmdev_ctx_t * ctx)

Reset step counter register.

[get]

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

Definition at line 1799 of file ism330dhcx_reg.c.

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

◆ ism330dhcx_temperature_raw_get()

int32_t ism330dhcx_temperature_raw_get ( stmdev_ctx_t * ctx,
int16_t * val )

Temperature data output register (r).

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

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

Definition at line 1684 of file ism330dhcx_reg.c.

References ISM330DHCX_OUT_TEMP_L, and ism330dhcx_read_reg().

Referenced by QwDevISM330DHCX::getTemp().