ST / LPS22HH

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LPS22HH_Interrupt_Pins

LPS22HH_Interrupt_Pins
[LPS22HH]

This section groups all the functions that manage interrupt pins. More...

Functions

int32_t lps22hh_int_notification_set (lps22hh_ctx_t *ctx, lps22hh_lir_t val)
 Latch interrupt request to the INT_SOURCE (24h) register.
int32_t lps22hh_int_notification_get (lps22hh_ctx_t *ctx, lps22hh_lir_t *val)
 Latch interrupt request to the INT_SOURCE (24h) register.
int32_t lps22hh_pin_mode_set (lps22hh_ctx_t *ctx, lps22hh_pp_od_t val)
 Push-pull/open drain selection on interrupt pads.
int32_t lps22hh_pin_mode_get (lps22hh_ctx_t *ctx, lps22hh_pp_od_t *val)
 Push-pull/open drain selection on interrupt pads.
int32_t lps22hh_pin_polarity_set (lps22hh_ctx_t *ctx, lps22hh_int_h_l_t val)
 Interrupt active-high/low.
int32_t lps22hh_pin_polarity_get (lps22hh_ctx_t *ctx, lps22hh_int_h_l_t *val)
 Interrupt active-high/low.
int32_t lps22hh_pin_int_route_set (lps22hh_ctx_t *ctx, lps22hh_ctrl_reg3_t *val)
 Select the signal that need to route on int pad.
int32_t lps22hh_pin_int_route_get (lps22hh_ctx_t *ctx, lps22hh_ctrl_reg3_t *val)
 Select the signal that need to route on int pad.

Detailed Description

This section groups all the functions that manage interrupt pins.


Function Documentation

int32_t lps22hh_int_notification_get ( lps22hh_ctx_t *  ctx,
lps22hh_lir_t *  val 
)

Latch interrupt request to the INT_SOURCE (24h) register.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of lir in reg INTERRUPT_CFG
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1180 of file lps22hh_reg.c.

int32_t lps22hh_int_notification_set ( lps22hh_ctx_t *  ctx,
lps22hh_lir_t  val 
)

Latch interrupt request to the INT_SOURCE (24h) register.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of lir in reg INTERRUPT_CFG
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1159 of file lps22hh_reg.c.

int32_t lps22hh_pin_int_route_get ( lps22hh_ctx_t *  ctx,
lps22hh_ctrl_reg3_t *  val 
)

Select the signal that need to route on int pad.

[get]

Parameters:
ctxread / write interface definitions
valregisters CTRL_REG3
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1330 of file lps22hh_reg.c.

int32_t lps22hh_pin_int_route_set ( lps22hh_ctx_t *  ctx,
lps22hh_ctrl_reg3_t *  val 
)

Select the signal that need to route on int pad.

[set]

Parameters:
ctxread / write interface definitions
valregisters CTRL_REG3
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1314 of file lps22hh_reg.c.

int32_t lps22hh_pin_mode_get ( lps22hh_ctx_t *  ctx,
lps22hh_pp_od_t *  val 
)

Push-pull/open drain selection on interrupt pads.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of pp_od in reg CTRL_REG2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1231 of file lps22hh_reg.c.

int32_t lps22hh_pin_mode_set ( lps22hh_ctx_t *  ctx,
lps22hh_pp_od_t  val 
)

Push-pull/open drain selection on interrupt pads.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of pp_od in reg CTRL_REG2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1209 of file lps22hh_reg.c.

int32_t lps22hh_pin_polarity_get ( lps22hh_ctx_t *  ctx,
lps22hh_int_h_l_t *  val 
)

Interrupt active-high/low.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of int_h_l in reg CTRL_REG2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1284 of file lps22hh_reg.c.

int32_t lps22hh_pin_polarity_set ( lps22hh_ctx_t *  ctx,
lps22hh_int_h_l_t  val 
)

Interrupt active-high/low.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of int_h_l in reg CTRL_REG2
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 1262 of file lps22hh_reg.c.