|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
This section groups all the data output functions. More...
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. | |
This section groups all the data output functions.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (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().
| 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]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (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().
| int32_t ism330dhcx_fifo_out_raw_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
FIFO data output.
[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (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().
| int32_t ism330dhcx_mlc_out_get | ( | stmdev_ctx_t * | ctx, |
| uint8_t * | buff ) |
prgsens_out: [get] Output value of all MLCx decision trees.
| 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.
| int32_t ism330dhcx_number_of_steps_get | ( | stmdev_ctx_t * | ctx, |
| uint16_t * | val ) |
Step counter output register.
[get]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (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.
| int32_t ism330dhcx_rounding_mode_get | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_rounding_t * | val ) |
Gyroscope UI chain full-scale selection.
[get]
| ctx | Read / write interface definitions.(ptr) |
| val | Get the values of rounding in reg CTRL5_C |
| Interface | status (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.
| int32_t ism330dhcx_rounding_mode_set | ( | stmdev_ctx_t * | ctx, |
| ism330dhcx_rounding_t | val ) |
Circular burst-mode (rounding) read of the output registers.
[set]
| ctx | Read / write interface definitions.(ptr) |
| val | Change the values of rounding in reg CTRL5_C |
| Interface | status (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.
| int32_t ism330dhcx_steps_reset | ( | stmdev_ctx_t * | ctx | ) |
Reset step counter register.
[get]
| ctx | Read / write interface definitions.(ptr) |
| Interface | status (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.
| 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]
| ctx | Read / write interface definitions.(ptr) |
| buff | Buffer that stores data read |
| Interface | status (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().