LPS22HH pressure sensor library

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LPS22HH_Interrupt_on_Threshold

LPS22HH_Interrupt_on_Threshold
[LPS22HH]

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:
ctxread / write interface definitions
valGet the values of pe in reg INTERRUPT_CFG
Return values:
interfacestatus (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:
ctxread / write interface definitions
valchange the values of pe in reg INTERRUPT_CFG
Return values:
interfacestatus (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:
ctxread / write interface definitions
buffbuffer that stores data read
Return values:
interfacestatus (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:
ctxread / write interface definitions
buffbuffer that contains data to write
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1422 of file lps22hh_reg.c.