LPS22HH pressure sensor library

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LPS22HH_Serial_Interface

LPS22HH_Serial_Interface
[LPS22HH]

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:
ctxread / write interface definitions
valGet the values of i2c_disable in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of i2c_disable in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of int_en_i3c in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of int_en_i3c in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valGet the values of sda_pu_en in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of sda_pu_en in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valGet the values of sdo_pu_en in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of sdo_pu_en in reg IF_CTRL
Return values:
interfacestatus (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:
ctxread / write interface definitions
valGet the values of sim in reg CTRL_REG1
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of sim in reg CTRL_REG1
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1097 of file lps22hh_reg.c.