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
LSM6DSOX_Sensor_hub
This section groups all the functions that manage the sensor hub. More...
Functions | |
int32_t | lsm6dsox_sh_read_data_raw_get (lsm6dsox_ctx_t *ctx, lsm6dsox_emb_sh_read_t *val, uint8_t len) |
Sensor hub output registers. | |
int32_t | lsm6dsox_sh_slave_connected_set (lsm6dsox_ctx_t *ctx, lsm6dsox_aux_sens_on_t val) |
Number of external sensors to be read by the sensor hub. | |
int32_t | lsm6dsox_sh_slave_connected_get (lsm6dsox_ctx_t *ctx, lsm6dsox_aux_sens_on_t *val) |
Number of external sensors to be read by the sensor hub. | |
int32_t | lsm6dsox_sh_master_set (lsm6dsox_ctx_t *ctx, uint8_t val) |
Sensor hub I2C master enable. | |
int32_t | lsm6dsox_sh_master_get (lsm6dsox_ctx_t *ctx, uint8_t *val) |
Sensor hub I2C master enable. | |
int32_t | lsm6dsox_sh_pin_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_shub_pu_en_t val) |
Master I2C pull-up enable. | |
int32_t | lsm6dsox_sh_pin_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_shub_pu_en_t *val) |
Master I2C pull-up enable. | |
int32_t | lsm6dsox_sh_pass_through_set (lsm6dsox_ctx_t *ctx, uint8_t val) |
I2C interface pass-through. | |
int32_t | lsm6dsox_sh_pass_through_get (lsm6dsox_ctx_t *ctx, uint8_t *val) |
I2C interface pass-through. | |
int32_t | lsm6dsox_sh_syncro_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_start_config_t val) |
Sensor hub trigger signal selection. | |
int32_t | lsm6dsox_sh_syncro_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_start_config_t *val) |
Sensor hub trigger signal selection. | |
int32_t | lsm6dsox_sh_write_mode_set (lsm6dsox_ctx_t *ctx, lsm6dsox_write_once_t val) |
Slave 0 write operation is performed only at the first sensor hub cycle. | |
int32_t | lsm6dsox_sh_write_mode_get (lsm6dsox_ctx_t *ctx, lsm6dsox_write_once_t *val) |
Slave 0 write operation is performed only at the first sensor hub cycle. | |
int32_t | lsm6dsox_sh_reset_set (lsm6dsox_ctx_t *ctx) |
Reset Master logic and output registers. | |
int32_t | lsm6dsox_sh_reset_get (lsm6dsox_ctx_t *ctx, uint8_t *val) |
Reset Master logic and output registers. | |
int32_t | lsm6dsox_sh_data_rate_set (lsm6dsox_ctx_t *ctx, lsm6dsox_shub_odr_t val) |
Rate at which the master communicates. | |
int32_t | lsm6dsox_sh_data_rate_get (lsm6dsox_ctx_t *ctx, lsm6dsox_shub_odr_t *val) |
Rate at which the master communicates. | |
int32_t | lsm6dsox_sh_cfg_write (lsm6dsox_ctx_t *ctx, lsm6dsox_sh_cfg_write_t *val) |
Configure slave 0 for perform a write. | |
int32_t | lsm6dsox_sh_slv0_cfg_read (lsm6dsox_ctx_t *ctx, lsm6dsox_sh_cfg_read_t *val) |
Configure slave 0 for perform a read. | |
int32_t | lsm6dsox_sh_slv1_cfg_read (lsm6dsox_ctx_t *ctx, lsm6dsox_sh_cfg_read_t *val) |
Configure slave 0 for perform a write/read. | |
int32_t | lsm6dsox_sh_slv2_cfg_read (lsm6dsox_ctx_t *ctx, lsm6dsox_sh_cfg_read_t *val) |
Configure slave 0 for perform a write/read. | |
int32_t | lsm6dsox_sh_slv3_cfg_read (lsm6dsox_ctx_t *ctx, lsm6dsox_sh_cfg_read_t *val) |
Configure slave 0 for perform a write/read. | |
int32_t | lsm6dsox_sh_status_get (lsm6dsox_ctx_t *ctx, lsm6dsox_status_master_t *val) |
Sensor hub source register. |
Detailed Description
This section groups all the functions that manage the sensor hub.
Function Documentation
int32_t lsm6dsox_sh_cfg_write | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_sh_cfg_write_t * | val | ||
) |
Configure slave 0 for perform a write.
[set]
- Parameters:
-
ctx read / write interface definitions val a structure that contain - uint8_t slv1_add; 8 bit i2c device address
- uint8_t slv1_subadd; 8 bit register device address
- uint8_t slv1_data; 8 bit data to write
Definition at line 8697 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_data_rate_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_shub_odr_t * | val | ||
) |
Rate at which the master communicates.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of shub_odr in reg slv1_CONFIG
Definition at line 8653 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_data_rate_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_shub_odr_t | val | ||
) |
Rate at which the master communicates.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of shub_odr in reg slv1_CONFIG
Definition at line 8626 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_master_get | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | val | ||
) |
Sensor hub I2C master enable.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of master_on in reg MASTER_CONFIG
Definition at line 8307 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_master_set | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t | val | ||
) |
Sensor hub I2C master enable.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of master_on in reg MASTER_CONFIG
Definition at line 8281 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_pass_through_get | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | val | ||
) |
I2C interface pass-through.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of pass_through_mode in reg MASTER_CONFIG
Definition at line 8422 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_pass_through_set | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t | val | ||
) |
I2C interface pass-through.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of pass_through_mode in reg MASTER_CONFIG
Definition at line 8394 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_pin_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_shub_pu_en_t * | val | ||
) |
Master I2C pull-up enable.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of shub_pu_en in reg MASTER_CONFIG
Definition at line 8358 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_pin_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_shub_pu_en_t | val | ||
) |
Master I2C pull-up enable.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of shub_pu_en in reg MASTER_CONFIG
Definition at line 8331 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_read_data_raw_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_emb_sh_read_t * | val, | ||
uint8_t | len | ||
) |
Sensor hub output registers.
[get]
- Parameters:
-
ctx read / write interface definitions val union of registers from SENSOR_HUB_1 to SENSOR_HUB_18
Definition at line 8189 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_reset_get | ( | lsm6dsox_ctx_t * | ctx, |
uint8_t * | val | ||
) |
Reset Master logic and output registers.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of rst_master_regs in reg MASTER_CONFIG
Definition at line 8603 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_reset_set | ( | lsm6dsox_ctx_t * | ctx ) |
Reset Master logic and output registers.
[set]
- Parameters:
-
ctx read / write interface definitions
Definition at line 8572 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_slave_connected_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_aux_sens_on_t * | val | ||
) |
Number of external sensors to be read by the sensor hub.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of aux_sens_on in reg MASTER_CONFIG
Definition at line 8240 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_slave_connected_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_aux_sens_on_t | val | ||
) |
Number of external sensors to be read by the sensor hub.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of aux_sens_on in reg MASTER_CONFIG
Definition at line 8213 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_slv0_cfg_read | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_sh_cfg_read_t * | val | ||
) |
Configure slave 0 for perform a read.
[set]
- Parameters:
-
ctx read / write interface definitions val Structure that contain - uint8_t slv1_add; 8 bit i2c device address
- uint8_t slv1_subadd; 8 bit register device address
- uint8_t slv1_len; num of bit to read
Definition at line 8732 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_slv1_cfg_read | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_sh_cfg_read_t * | val | ||
) |
Configure slave 0 for perform a write/read.
[set]
- Parameters:
-
ctx read / write interface definitions val Structure that contain - uint8_t slv1_add; 8 bit i2c device address
- uint8_t slv1_subadd; 8 bit register device address
- uint8_t slv1_len; num of bit to read
Definition at line 8775 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_slv2_cfg_read | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_sh_cfg_read_t * | val | ||
) |
Configure slave 0 for perform a write/read.
[set]
- Parameters:
-
ctx read / write interface definitions val Structure that contain - uint8_t slv2_add; 8 bit i2c device address
- uint8_t slv2_subadd; 8 bit register device address
- uint8_t slv2_len; num of bit to read
Definition at line 8818 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_slv3_cfg_read | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_sh_cfg_read_t * | val | ||
) |
Configure slave 0 for perform a write/read.
[set]
- Parameters:
-
ctx read / write interface definitions val Structure that contain - uint8_t slv3_add; 8 bit i2c device address
- uint8_t slv3_subadd; 8 bit register device address
- uint8_t slv3_len; num of bit to read
Definition at line 8860 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_status_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_status_master_t * | val | ||
) |
Sensor hub source register.
[get]
- Parameters:
-
ctx read / write interface definitions val union of registers from STATUS_MASTER to
Definition at line 8899 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_syncro_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_start_config_t * | val | ||
) |
Sensor hub trigger signal selection.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of start_config in reg MASTER_CONFIG
Definition at line 8474 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_syncro_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_start_config_t | val | ||
) |
Sensor hub trigger signal selection.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of start_config in reg MASTER_CONFIG
Definition at line 8446 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_write_mode_get | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_write_once_t * | val | ||
) |
Slave 0 write operation is performed only at the first sensor hub cycle.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of write_once in reg MASTER_CONFIG
Definition at line 8538 of file lsm6dsox_reg.c.
int32_t lsm6dsox_sh_write_mode_set | ( | lsm6dsox_ctx_t * | ctx, |
lsm6dsox_write_once_t | val | ||
) |
Slave 0 write operation is performed only at the first sensor hub cycle.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of write_once in reg MASTER_CONFIG
Definition at line 8509 of file lsm6dsox_reg.c.
Generated on Tue Jul 12 2022 20:15:24 by
