LPS22HH pressure sensor library
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
This section groups all the functions concerning serial interface management. More...
Functions | |
int32_t | lps22hh_i2c_interface_set (lps22hh_ctx_t *ctx, lps22hh_i2c_disable_t val) |
Enable/Disable I2C interface. | |
int32_t | lps22hh_i2c_interface_get (lps22hh_ctx_t *ctx, lps22hh_i2c_disable_t *val) |
Enable/Disable I2C interface. | |
int32_t | lps22hh_i3c_interface_set (lps22hh_ctx_t *ctx, lps22hh_i3c_disable_t val) |
I3C Enable/Disable communication protocol. | |
int32_t | lps22hh_i3c_interface_get (lps22hh_ctx_t *ctx, lps22hh_i3c_disable_t *val) |
I3C Enable/Disable communication protocol. | |
int32_t | lps22hh_sdo_sa0_mode_set (lps22hh_ctx_t *ctx, lps22hh_pu_en_t val) |
Enable/Disable pull-up on SDO pin. | |
int32_t | lps22hh_sdo_sa0_mode_get (lps22hh_ctx_t *ctx, lps22hh_pu_en_t *val) |
Enable/Disable pull-up on SDO pin. | |
int32_t | lps22hh_sda_mode_set (lps22hh_ctx_t *ctx, lps22hh_pu_en_t val) |
Connect/Disconnect SDO/SA0 internal pull-up. | |
int32_t | lps22hh_sda_mode_get (lps22hh_ctx_t *ctx, lps22hh_pu_en_t *val) |
Connect/Disconnect SDO/SA0 internal pull-up. | |
int32_t | lps22hh_spi_mode_set (lps22hh_ctx_t *ctx, lps22hh_sim_t val) |
SPI Serial Interface Mode selection. | |
int32_t | lps22hh_spi_mode_get (lps22hh_ctx_t *ctx, lps22hh_sim_t *val) |
SPI Serial Interface Mode selection. |
Detailed Description
This section groups all the functions concerning serial interface management.
Function Documentation
int32_t lps22hh_i2c_interface_get | ( | lps22hh_ctx_t * | ctx, |
lps22hh_i2c_disable_t * | val | ||
) |
Enable/Disable I2C interface.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of i2c_disable in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 912 of file lps22hh_reg.c.
int32_t lps22hh_i2c_interface_set | ( | lps22hh_ctx_t * | ctx, |
lps22hh_i2c_disable_t | val | ||
) |
Enable/Disable I2C interface.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of i2c_disable in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 890 of file lps22hh_reg.c.
int32_t lps22hh_i3c_interface_get | ( | lps22hh_ctx_t * | ctx, |
lps22hh_i3c_disable_t * | val | ||
) |
I3C Enable/Disable communication protocol.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of int_en_i3c in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 965 of file lps22hh_reg.c.
int32_t lps22hh_i3c_interface_set | ( | lps22hh_ctx_t * | ctx, |
lps22hh_i3c_disable_t | val | ||
) |
I3C Enable/Disable communication protocol.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of int_en_i3c in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 942 of file lps22hh_reg.c.
int32_t lps22hh_sda_mode_get | ( | lps22hh_ctx_t * | ctx, |
lps22hh_pu_en_t * | val | ||
) |
Connect/Disconnect SDO/SA0 internal pull-up.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of sda_pu_en in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1069 of file lps22hh_reg.c.
int32_t lps22hh_sda_mode_set | ( | lps22hh_ctx_t * | ctx, |
lps22hh_pu_en_t | val | ||
) |
Connect/Disconnect SDO/SA0 internal pull-up.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of sda_pu_en in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1048 of file lps22hh_reg.c.
int32_t lps22hh_sdo_sa0_mode_get | ( | lps22hh_ctx_t * | ctx, |
lps22hh_pu_en_t * | val | ||
) |
Enable/Disable pull-up on SDO pin.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of sdo_pu_en in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1019 of file lps22hh_reg.c.
int32_t lps22hh_sdo_sa0_mode_set | ( | lps22hh_ctx_t * | ctx, |
lps22hh_pu_en_t | val | ||
) |
Enable/Disable pull-up on SDO pin.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of sdo_pu_en in reg IF_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 998 of file lps22hh_reg.c.
int32_t lps22hh_spi_mode_get | ( | lps22hh_ctx_t * | ctx, |
lps22hh_sim_t * | val | ||
) |
SPI Serial Interface Mode selection.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of sim in reg CTRL_REG1
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1118 of file lps22hh_reg.c.
int32_t lps22hh_spi_mode_set | ( | lps22hh_ctx_t * | ctx, |
lps22hh_sim_t | val | ||
) |
SPI Serial Interface Mode selection.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of sim in reg CTRL_REG1
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1097 of file lps22hh_reg.c.
Generated on Wed Jul 13 2022 17:27:40 by 1.7.2