LPS22HH pressure sensor library
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
This section groups all the functions that manage the interrupt on threshold event generation. More...
Functions | |
int32_t | lps22hh_int_on_threshold_set (lps22hh_ctx_t *ctx, lps22hh_pe_t val) |
Enable interrupt generation on pressure low/high event. | |
int32_t | lps22hh_int_on_threshold_get (lps22hh_ctx_t *ctx, lps22hh_pe_t *val) |
Enable interrupt generation on pressure low/high event. | |
int32_t | lps22hh_int_treshold_set (lps22hh_ctx_t *ctx, uint16_t buff) |
User-defined threshold value for pressure interrupt event. | |
int32_t | lps22hh_int_treshold_get (lps22hh_ctx_t *ctx, uint16_t *buff) |
User-defined threshold value for pressure interrupt event. |
Detailed Description
This section groups all the functions that manage the interrupt on threshold event generation.
Function Documentation
int32_t lps22hh_int_on_threshold_get | ( | lps22hh_ctx_t * | ctx, |
lps22hh_pe_t * | val | ||
) |
Enable interrupt generation on pressure low/high event.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of pe in reg INTERRUPT_CFG
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1386 of file lps22hh_reg.c.
int32_t lps22hh_int_on_threshold_set | ( | lps22hh_ctx_t * | ctx, |
lps22hh_pe_t | val | ||
) |
Enable interrupt generation on pressure low/high event.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of pe in reg INTERRUPT_CFG
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1359 of file lps22hh_reg.c.
int32_t lps22hh_int_treshold_get | ( | lps22hh_ctx_t * | ctx, |
uint16_t * | buff | ||
) |
User-defined threshold value for pressure interrupt event.
[get]
- Parameters:
-
ctx read / write interface definitions buff buffer that stores data read
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1448 of file lps22hh_reg.c.
int32_t lps22hh_int_treshold_set | ( | lps22hh_ctx_t * | ctx, |
uint16_t | buff | ||
) |
User-defined threshold value for pressure interrupt event.
[set]
- Parameters:
-
ctx read / write interface definitions buff buffer that contains data to write
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1422 of file lps22hh_reg.c.
Generated on Wed Jul 13 2022 17:27:40 by 1.7.2