ST / LSM6DSOX

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

output

output

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

Functions

int32_t lsm6dsox_rounding_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_rounding_t val)
 Circular burst-mode (rounding) read of the output registers.
int32_t lsm6dsox_rounding_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_rounding_t *val)
 Gyroscope UI chain full-scale selection.
int32_t lsm6dsox_rounding_on_status_set (lsm6dsox_ctx_t *ctx, lsm6dsox_rounding_status_t val)
 rounding_on_status: [set] Source register rounding function in ALL_INT_SRC (1Ah), WAKE_UP_SRC(1Bh), TAP_SRC (1Ch), D6D_SRC (1Dh), STATUS_REG (1Eh) and EMB_FUNC_STATUS_MAINPAGE(35h), FSM_STATUS_A_MAINPAGE (36h), FSM_STATUS_B_MAINPAGE (37h), MLC_STATUS_MAINPAGE (38h), STATUS_MASTER_MAINPAGE (39h), FIFO_STATUS1 (3Ah), FIFO_STATUS2(3Bh).
int32_t lsm6dsox_rounding_on_status_get (lsm6dsox_ctx_t *ctx, lsm6dsox_rounding_status_t *val)
 rounding_on_status: [get] Source register rounding function in ALL_INT_SRC (1Ah), WAKE_UP_SRC(1Bh), TAP_SRC (1Ch), D6D_SRC (1Dh), STATUS_REG (1Eh) and EMB_FUNC_STATUS_MAINPAGE(35h), FSM_STATUS_A_MAINPAGE (36h), FSM_STATUS_B_MAINPAGE (37h), MLC_STATUS_MAINPAGE (38h), STATUS_MASTER_MAINPAGE (39h), FIFO_STATUS1 (3Ah), FIFO_STATUS2(3Bh).
int32_t lsm6dsox_temperature_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 Temperature data output register (r).
int32_t lsm6dsox_angular_rate_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 Angular rate sensor.
int32_t lsm6dsox_acceleration_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 Linear acceleration output register.
int32_t lsm6dsox_fifo_out_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 FIFO data output [get].
int32_t lsm6dsox_ois_angular_rate_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 ois_angular_rate_raw: [get] OIS angular rate sensor.
int32_t lsm6dsox_ois_acceleration_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 ois_acceleration_raw: [get] OIS Linear acceleration output register.
int32_t lsm6dsox_aux_temperature_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 aux_temperature_raw: [get] Temperature from auxiliary interface.
int32_t lsm6dsox_aux_ois_angular_rate_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 aux_ois_angular_rate_raw: [get] OIS angular rate sensor from auxiliary interface.
int32_t lsm6dsox_aux_ois_acceleration_raw_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 aux_ois_acceleration_raw: [get] OIS linear acceleration output register from auxiliary interface.
int32_t lsm6dsox_number_of_steps_get (lsm6dsox_ctx_t *ctx, uint8_t *buff)
 Step counter output register.
int32_t lsm6dsox_steps_reset (lsm6dsox_ctx_t *ctx)
 Reset step counter register.
int32_t lsm6dsox_mlc_out_get (lsm6dsox_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

int32_t lsm6dsox_acceleration_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

Linear acceleration output register.

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

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read

Definition at line 1424 of file lsm6dsox_reg.c.

int32_t lsm6dsox_angular_rate_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

Angular rate sensor.

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

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read

Definition at line 1409 of file lsm6dsox_reg.c.

int32_t lsm6dsox_aux_ois_acceleration_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

aux_ois_acceleration_raw: [get] OIS linear acceleration output register from auxiliary interface.

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

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

Definition at line 1513 of file lsm6dsox_reg.c.

int32_t lsm6dsox_aux_ois_angular_rate_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

aux_ois_angular_rate_raw: [get] OIS angular rate sensor from auxiliary interface.

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

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

Definition at line 1498 of file lsm6dsox_reg.c.

int32_t lsm6dsox_aux_temperature_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

aux_temperature_raw: [get] Temperature from auxiliary interface.

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

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

Definition at line 1483 of file lsm6dsox_reg.c.

int32_t lsm6dsox_fifo_out_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

FIFO data output [get].

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read

Definition at line 1438 of file lsm6dsox_reg.c.

int32_t lsm6dsox_mlc_out_get ( lsm6dsox_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 1571 of file lsm6dsox_reg.c.

int32_t lsm6dsox_number_of_steps_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

Step counter output register.

[get]

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read

Definition at line 1525 of file lsm6dsox_reg.c.

int32_t lsm6dsox_ois_acceleration_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

ois_acceleration_raw: [get] OIS Linear acceleration output register.

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

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

Definition at line 1468 of file lsm6dsox_reg.c.

int32_t lsm6dsox_ois_angular_rate_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

ois_angular_rate_raw: [get] OIS angular rate sensor.

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

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

Definition at line 1454 of file lsm6dsox_reg.c.

int32_t lsm6dsox_rounding_mode_get ( lsm6dsox_ctx_t *  ctx,
lsm6dsox_rounding_t *  val 
)

Gyroscope UI chain full-scale selection.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of rounding in reg CTRL5_C

Definition at line 1288 of file lsm6dsox_reg.c.

int32_t lsm6dsox_rounding_mode_set ( lsm6dsox_ctx_t *  ctx,
lsm6dsox_rounding_t  val 
)

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

[set]

Parameters:
ctxread / write interface definitions
valchange the values of rounding in reg CTRL5_C

Definition at line 1267 of file lsm6dsox_reg.c.

int32_t lsm6dsox_rounding_on_status_get ( lsm6dsox_ctx_t *  ctx,
lsm6dsox_rounding_status_t *  val 
)

rounding_on_status: [get] Source register rounding function in ALL_INT_SRC (1Ah), WAKE_UP_SRC(1Bh), TAP_SRC (1Ch), D6D_SRC (1Dh), STATUS_REG (1Eh) and EMB_FUNC_STATUS_MAINPAGE(35h), FSM_STATUS_A_MAINPAGE (36h), FSM_STATUS_B_MAINPAGE (37h), MLC_STATUS_MAINPAGE (38h), STATUS_MASTER_MAINPAGE (39h), FIFO_STATUS1 (3Ah), FIFO_STATUS2(3Bh).

Parameters:
ctxread / write interface definitions
lsm6dsox_rounding_status_t,:Get the values of rounding_status in reg CTRL7_G

Definition at line 1364 of file lsm6dsox_reg.c.

int32_t lsm6dsox_rounding_on_status_set ( lsm6dsox_ctx_t *  ctx,
lsm6dsox_rounding_status_t  val 
)

rounding_on_status: [set] Source register rounding function in ALL_INT_SRC (1Ah), WAKE_UP_SRC(1Bh), TAP_SRC (1Ch), D6D_SRC (1Dh), STATUS_REG (1Eh) and EMB_FUNC_STATUS_MAINPAGE(35h), FSM_STATUS_A_MAINPAGE (36h), FSM_STATUS_B_MAINPAGE (37h), MLC_STATUS_MAINPAGE (38h), STATUS_MASTER_MAINPAGE (39h), FIFO_STATUS1 (3Ah), FIFO_STATUS2(3Bh).

Parameters:
ctxread / write interface definitions
lsm6dsox_rounding_status_t,:change the values of rounding_status in reg CTRL7_G

Definition at line 1332 of file lsm6dsox_reg.c.

int32_t lsm6dsox_steps_reset ( lsm6dsox_ctx_t *  ctx )

Reset step counter register.

[get]

Parameters:
ctxread / write interface definitions

Definition at line 1545 of file lsm6dsox_reg.c.

int32_t lsm6dsox_temperature_raw_get ( lsm6dsox_ctx_t *  ctx,
uint8_t *  buff 
)

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
buffbuffer that stores data read

Definition at line 1394 of file lsm6dsox_reg.c.