Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
configuration
This section groups all the functions concerning device basic configuration. More...
Functions | |
| int32_t | lsm6dsox_id_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_id_t *val) |
| Device "Who am I". | |
| int32_t | lsm6dsox_init_set (lsm6dsox_ctx_t *ctx, lsm6dsox_init_t val) |
| Re-initialize the device. | |
| int32_t | lsm6dsox_bus_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_bus_mode_t val) |
| Configures the bus operating mode. | |
| int32_t | lsm6dsox_bus_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_bus_mode_t *val) |
| Get the bus operating mode. | |
| int32_t | lsm6dsox_status_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_status_t *val) |
| Get the status of the device. | |
| int32_t | lsm6dsox_pin_conf_set (lsm6dsox_ctx_t *ctx, lsm6dsox_pin_conf_t val) |
| Electrical pin configuration. | |
| int32_t | lsm6dsox_pin_conf_get (lsm6dsox_ctx_t *ctx, lsm6dsox_pin_conf_t *val) |
| Electrical pin configuration. | |
| int32_t | lsm6dsox_interrupt_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_int_mode_t val) |
| Interrupt pins hardware signal configuration. | |
| int32_t | lsm6dsox_interrupt_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_int_mode_t *val) |
| Interrupt pins hardware signal configuration. | |
| int32_t | lsm6dsox_pin_int1_route_set (lsm6dsox_ctx_t *ctx, lsm6dsox_pin_int1_route_t val) |
| Route interrupt signals on int1 pin. | |
| int32_t | lsm6dsox_pin_int1_route_get (lsm6dsox_ctx_t *ctx, lsm6dsox_pin_int1_route_t *val) |
| Route interrupt signals on int1 pin. | |
| int32_t | lsm6dsox_pin_int2_route_set (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_pin_int2_route_t val) |
| Route interrupt signals on int2 pin. | |
| int32_t | lsm6dsox_pin_int2_route_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_pin_int2_route_t *val) |
| Route interrupt signals on int2 pin. | |
| int32_t | lsm6dsox_all_sources_get (lsm6dsox_ctx_t *ctx, lsm6dsox_all_sources_t *val) |
| Get the status of all the interrupt sources. | |
| int32_t | lsm6dsox_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_md_t *val) |
| Sensor conversion parameters selection. | |
| int32_t | lsm6dsox_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_md_t *val) |
| Sensor conversion parameters selection. | |
| int32_t | lsm6dsox_data_get (lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, lsm6dsox_md_t *md, lsm6dsox_data_t *data) |
| Read data in engineering unit. | |
| int32_t | lsm6dsox_embedded_sens_set (lsm6dsox_ctx_t *ctx, lsm6dsox_emb_sens_t *val) |
| Embedded functions. | |
| int32_t | lsm6dsox_embedded_sens_get (lsm6dsox_ctx_t *ctx, lsm6dsox_emb_sens_t *emb_sens) |
| Embedded functions. | |
| int32_t | lsm6dsox_embedded_sens_off (lsm6dsox_ctx_t *ctx) |
| turn off all embedded functions. | |
Detailed Description
This section groups all the functions concerning device basic configuration.
Function Documentation
| int32_t lsm6dsox_all_sources_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_all_sources_t * | val | ||
| ) |
Get the status of all the interrupt sources.
[get]
- Parameters:
-
ctx communication interface handler.(ptr) val the status of all the interrupt sources.(ptr)
Definition at line 10340 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_bus_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_bus_mode_t * | val | ||
| ) |
Get the bus operating mode.
[get]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val retrieves the bus operating mode for both the main and the auxiliary interface.(ptr)
Definition at line 9373 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_bus_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_bus_mode_t | val | ||
| ) |
Configures the bus operating mode.
[set]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val configures the bus operating mode for both the main and the auxiliary interface.
Definition at line 9287 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_data_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_md_t * | md, | ||
| lsm6dsox_data_t * | data | ||
| ) |
Read data in engineering unit.
[get]
- Parameters:
-
ctx communication interface handler.(ptr) md the sensor conversion parameters.(ptr)
Definition at line 11431 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_embedded_sens_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_emb_sens_t * | emb_sens | ||
| ) |
Embedded functions.
[get]
- Parameters:
-
ctx read / write interface definitions val get the values of registers EMB_FUNC_EN_A e EMB_FUNC_EN_B.
Definition at line 11628 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_embedded_sens_off | ( | lsm6dsox_ctx_t * | ctx ) |
turn off all embedded functions.
[get]
- Parameters:
-
ctx read / write interface definitions val get the values of registers EMB_FUNC_EN_A e EMB_FUNC_EN_B.
Definition at line 11667 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_embedded_sens_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_emb_sens_t * | val | ||
| ) |
Embedded functions.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of registers EMB_FUNC_EN_A e EMB_FUNC_EN_B.
Definition at line 11581 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_id_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_id_t * | val | ||
| ) |
Device "Who am I".
[get]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val ID values read from the two interfaces. ID values will be the same.(ptr)
Definition at line 9189 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_init_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_init_t | val | ||
| ) |
Re-initialize the device.
[set]
- Parameters:
-
ctx communication interface handler.(ptr) val re-initialization mode. Refer to datasheet and application note for more information about differencies beetween boot and sw_reset procedure.
Definition at line 9217 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_interrupt_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_int_mode_t * | val | ||
| ) |
Interrupt pins hardware signal configuration.
[get]
- Parameters:
-
ctx communication interface handler.(ptr) val the pins hardware signal settings.(ptr)
Definition at line 9631 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_interrupt_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_int_mode_t | val | ||
| ) |
Interrupt pins hardware signal configuration.
[set]
- Parameters:
-
ctx communication interface handler.(ptr) val the pins hardware signal settings.
Definition at line 9587 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_md_t * | val | ||
| ) |
Sensor conversion parameters selection.
[get]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val get the sensor conversion parameters.(ptr)
Definition at line 10901 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_md_t * | val | ||
| ) |
Sensor conversion parameters selection.
[set]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val set the sensor conversion parameters by checking the constraints of the device.(ptr)
Definition at line 10478 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_pin_conf_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_pin_conf_t * | val | ||
| ) |
Electrical pin configuration.
[get]
- Parameters:
-
ctx communication interface handler.(ptr) val the electrical settings for the configurable pins.(ptr)
Definition at line 9556 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_pin_conf_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_pin_conf_t | val | ||
| ) |
Electrical pin configuration.
[set]
- Parameters:
-
ctx communication interface handler.(ptr) val the electrical settings for the configurable pins.
Definition at line 9516 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_pin_int1_route_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_pin_int1_route_t * | val | ||
| ) |
Route interrupt signals on int1 pin.
[get]
- Parameters:
-
ctx communication interface handler.(ptr) val the signals that are routed on int1 pin.(ptr)
Definition at line 9878 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_pin_int1_route_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_pin_int1_route_t | val | ||
| ) |
Route interrupt signals on int1 pin.
[set]
- Parameters:
-
ctx communication interface handler.(ptr) val the signals to route on int1 pin.
Definition at line 9669 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_pin_int2_route_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_pin_int2_route_t * | val | ||
| ) |
Route interrupt signals on int2 pin.
[get]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val the signals that are routed on int2 pin.(ptr)
Definition at line 10209 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_pin_int2_route_set | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_pin_int2_route_t | val | ||
| ) |
Route interrupt signals on int2 pin.
[set]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val the signals to route on int2 pin.
Definition at line 9999 of file lsm6dsox_reg.c.
| int32_t lsm6dsox_status_get | ( | lsm6dsox_ctx_t * | ctx, |
| lsm6dsox_ctx_t * | aux_ctx, | ||
| lsm6dsox_status_t * | val | ||
| ) |
Get the status of the device.
[get]
- Parameters:
-
ctx communication interface handler. Use NULL to ingnore this interface.(ptr) aux_ctx auxiliary communication interface handler. Use NULL to ingnore this interface.(ptr) val the status of the device.(ptr)
Definition at line 9463 of file lsm6dsox_reg.c.
Generated on Tue Jul 12 2022 20:15:24 by
1.7.2