LELEC2811 - I&S / LSM6DSO

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

LSM6DSO_interrupt_pins

LSM6DSO_interrupt_pins

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

Functions

int32_t lsm6dso_int1_mode_set (lsm6dso_ctx_t *ctx, lsm6dso_int1_pd_en_t val)
 Connect/Disconnect INT1 internal pull-down.
int32_t lsm6dso_int1_mode_get (lsm6dso_ctx_t *ctx, lsm6dso_int1_pd_en_t *val)
 Connect/Disconnect INT1 internal pull-down.
int32_t lsm6dso_pin_int1_route_set (lsm6dso_ctx_t *ctx, lsm6dso_pin_int1_route_t *val)
 Select the signal that need to route on int1 pad.
int32_t lsm6dso_pin_int1_route_get (lsm6dso_ctx_t *ctx, lsm6dso_pin_int1_route_t *val)
 Select the signal that need to route on int1 pad.
int32_t lsm6dso_pin_int2_route_set (lsm6dso_ctx_t *ctx, lsm6dso_pin_int2_route_t *val)
 Select the signal that need to route on int2 pad.
int32_t lsm6dso_pin_int2_route_get (lsm6dso_ctx_t *ctx, lsm6dso_pin_int2_route_t *val)
 Select the signal that need to route on int2 pad.
int32_t lsm6dso_pin_mode_set (lsm6dso_ctx_t *ctx, lsm6dso_pp_od_t val)
 Push-pull/open drain selection on interrupt pads.
int32_t lsm6dso_pin_mode_get (lsm6dso_ctx_t *ctx, lsm6dso_pp_od_t *val)
 Push-pull/open drain selection on interrupt pads.
int32_t lsm6dso_pin_polarity_set (lsm6dso_ctx_t *ctx, lsm6dso_h_lactive_t val)
 Interrupt active-high/low.
int32_t lsm6dso_pin_polarity_get (lsm6dso_ctx_t *ctx, lsm6dso_h_lactive_t *val)
 Interrupt active-high/low.
int32_t lsm6dso_all_on_int1_set (lsm6dso_ctx_t *ctx, uint8_t val)
 All interrupt signals become available on INT1 pin.
int32_t lsm6dso_all_on_int1_get (lsm6dso_ctx_t *ctx, uint8_t *val)
 All interrupt signals become available on INT1 pin.
int32_t lsm6dso_int_notification_set (lsm6dso_ctx_t *ctx, lsm6dso_lir_t val)
 Interrupt notification mode.
int32_t lsm6dso_int_notification_get (lsm6dso_ctx_t *ctx, lsm6dso_lir_t *val)
 Interrupt notification mode.

Detailed Description

This section groups all the functions that manage interrup pins.


Function Documentation

int32_t lsm6dso_all_on_int1_get ( lsm6dso_ctx_t *  ctx,
uint8_t *  val 
)

All interrupt signals become available on INT1 pin.

[get]

Parameters:
ctxread / write interface definitions
valchange the values of int2_on_int1 in reg CTRL4_C

Definition at line 3919 of file lsm6dso_reg.c.

int32_t lsm6dso_all_on_int1_set ( lsm6dso_ctx_t *  ctx,
uint8_t  val 
)

All interrupt signals become available on INT1 pin.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of int2_on_int1 in reg CTRL4_C

Definition at line 3898 of file lsm6dso_reg.c.

int32_t lsm6dso_int1_mode_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_int1_pd_en_t *  val 
)

Connect/Disconnect INT1 internal pull-down.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of pd_dis_int1 in reg I3C_BUS_AVB

Definition at line 3477 of file lsm6dso_reg.c.

int32_t lsm6dso_int1_mode_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_int1_pd_en_t  val 
)

Connect/Disconnect INT1 internal pull-down.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of pd_dis_int1 in reg I3C_BUS_AVB

Definition at line 3457 of file lsm6dso_reg.c.

int32_t lsm6dso_int_notification_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_lir_t *  val 
)

Interrupt notification mode.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of lir in reg TAP_CFG0

Definition at line 3974 of file lsm6dso_reg.c.

int32_t lsm6dso_int_notification_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_lir_t  val 
)

Interrupt notification mode.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of lir in reg TAP_CFG0

Definition at line 3937 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_int1_route_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_pin_int1_route_t *  val 
)

Select the signal that need to route on int1 pad.

[get]

Parameters:
ctxread / write interface definitions
valstruct of registers: INT1_CTRL, MD1_CFG, EMB_FUNC_INT1, FSM_INT1_A, FSM_INT1_B

Definition at line 3613 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_int1_route_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_pin_int1_route_t *  val 
)

Select the signal that need to route on int1 pad.

[set]

Parameters:
ctxread / write interface definitions
valstruct of registers: INT1_CTRL, MD1_CFG, EMB_FUNC_INT1, FSM_INT1_A, FSM_INT1_B

Definition at line 3506 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_int2_route_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_pin_int2_route_t *  val 
)

Select the signal that need to route on int2 pad.

[get]

Parameters:
ctxread / write interface definitions
valunion of registers INT2_CTRL, MD2_CFG, EMB_FUNC_INT2, FSM_INT2_A, FSM_INT2_B

Definition at line 3762 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_int2_route_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_pin_int2_route_t *  val 
)

Select the signal that need to route on int2 pad.

[set]

Parameters:
ctxread / write interface definitions
valunion of registers INT2_CTRL, MD2_CFG, EMB_FUNC_INT2, FSM_INT2_A, FSM_INT2_B

Definition at line 3654 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_mode_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_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 CTRL3_C

Definition at line 3821 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_mode_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_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 CTRL3_C

Definition at line 3801 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_polarity_get ( lsm6dso_ctx_t *  ctx,
lsm6dso_h_lactive_t *  val 
)

Interrupt active-high/low.

[get]

Parameters:
ctxread / write interface definitions
valGet the values of h_lactive in reg CTRL3_C

Definition at line 3870 of file lsm6dso_reg.c.

int32_t lsm6dso_pin_polarity_set ( lsm6dso_ctx_t *  ctx,
lsm6dso_h_lactive_t  val 
)

Interrupt active-high/low.

[set]

Parameters:
ctxread / write interface definitions
valchange the values of h_lactive in reg CTRL3_C

Definition at line 3849 of file lsm6dso_reg.c.