3-axis MEMS ultra low power accelerometer
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3
This section groups all the functions concerning main serial interface management (not auxiliary) More...
Functions | |
int32_t | lis2dw12_spi_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_sim_t val) |
SPI Serial Interface Mode selection. | |
int32_t | lis2dw12_spi_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_sim_t *val) |
SPI Serial Interface Mode selection. | |
int32_t | lis2dw12_i2c_interface_set (lis2dw12_ctx_t *ctx, lis2dw12_i2c_disable_t val) |
Disable / Enable I2C interface. | |
int32_t | lis2dw12_i2c_interface_get (lis2dw12_ctx_t *ctx, lis2dw12_i2c_disable_t *val) |
Disable / Enable I2C interface. | |
int32_t | lis2dw12_cs_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_cs_pu_disc_t val) |
Disconnect CS pull-up. | |
int32_t | lis2dw12_cs_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_cs_pu_disc_t *val) |
Disconnect CS pull-up. |
Detailed Description
This section groups all the functions concerning main serial interface management (not auxiliary)
Function Documentation
int32_t lis2dw12_cs_mode_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_cs_pu_disc_t * | val | ||
) |
Disconnect CS pull-up.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of cs_pu_disc in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1297 of file lis2dw12_reg.c.
int32_t lis2dw12_cs_mode_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_cs_pu_disc_t | val | ||
) |
Disconnect CS pull-up.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of cs_pu_disc in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1276 of file lis2dw12_reg.c.
int32_t lis2dw12_i2c_interface_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_i2c_disable_t * | val | ||
) |
Disable / Enable I2C interface.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of i2c_disable in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1246 of file lis2dw12_reg.c.
int32_t lis2dw12_i2c_interface_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_i2c_disable_t | val | ||
) |
Disable / Enable I2C interface.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of i2c_disable in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1224 of file lis2dw12_reg.c.
int32_t lis2dw12_spi_mode_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_sim_t * | val | ||
) |
SPI Serial Interface Mode selection.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of sim in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1194 of file lis2dw12_reg.c.
int32_t lis2dw12_spi_mode_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_sim_t | val | ||
) |
SPI Serial Interface Mode selection.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of sim in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1173 of file lis2dw12_reg.c.
Generated on Thu Jul 14 2022 10:48:26 by 1.7.2