3-axis MEMS ultra low power accelerometer
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3
This section groups all the functions that manage interrupt pins. More...
Functions | |
int32_t | lis2dw12_pin_polarity_set (lis2dw12_ctx_t *ctx, lis2dw12_h_lactive_t val) |
Interrupt active-high/low. | |
int32_t | lis2dw12_pin_polarity_get (lis2dw12_ctx_t *ctx, lis2dw12_h_lactive_t *val) |
Interrupt active-high/low. | |
int32_t | lis2dw12_int_notification_set (lis2dw12_ctx_t *ctx, lis2dw12_lir_t val) |
Latched/pulsed interrupt. | |
int32_t | lis2dw12_int_notification_get (lis2dw12_ctx_t *ctx, lis2dw12_lir_t *val) |
Latched/pulsed interrupt. | |
int32_t | lis2dw12_pin_mode_set (lis2dw12_ctx_t *ctx, lis2dw12_pp_od_t val) |
Push-pull/open drain selection on interrupt pads. | |
int32_t | lis2dw12_pin_mode_get (lis2dw12_ctx_t *ctx, lis2dw12_pp_od_t *val) |
Push-pull/open drain selection on interrupt pads. | |
int32_t | lis2dw12_pin_int1_route_set (lis2dw12_ctx_t *ctx, lis2dw12_ctrl4_int1_pad_ctrl_t *val) |
Select the signal that need to route on int1 pad. | |
int32_t | lis2dw12_pin_int1_route_get (lis2dw12_ctx_t *ctx, lis2dw12_ctrl4_int1_pad_ctrl_t *val) |
Select the signal that need to route on int1 pad. | |
int32_t | lis2dw12_pin_int2_route_set (lis2dw12_ctx_t *ctx, lis2dw12_ctrl5_int2_pad_ctrl_t *val) |
Select the signal that need to route on int2 pad. | |
int32_t | lis2dw12_pin_int2_route_get (lis2dw12_ctx_t *ctx, lis2dw12_ctrl5_int2_pad_ctrl_t *val) |
Select the signal that need to route on int2 pad. | |
int32_t | lis2dw12_all_on_int1_set (lis2dw12_ctx_t *ctx, uint8_t val) |
All interrupt signals become available on INT1 pin. | |
int32_t | lis2dw12_all_on_int1_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
All interrupt signals become available on INT1 pin. |
Detailed Description
This section groups all the functions that manage interrupt pins.
Function Documentation
int32_t lis2dw12_all_on_int1_get | ( | lis2dw12_ctx_t * | ctx, |
uint8_t * | val | ||
) |
All interrupt signals become available on INT1 pin.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of int2_on_int1 in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1610 of file lis2dw12_reg.c.
int32_t lis2dw12_all_on_int1_set | ( | lis2dw12_ctx_t * | ctx, |
uint8_t | val | ||
) |
All interrupt signals become available on INT1 pin.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of int2_on_int1 in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1589 of file lis2dw12_reg.c.
int32_t lis2dw12_int_notification_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_lir_t * | val | ||
) |
Latched/pulsed interrupt.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of lir in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1412 of file lis2dw12_reg.c.
int32_t lis2dw12_int_notification_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_lir_t | val | ||
) |
Latched/pulsed interrupt.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of lir in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1390 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_int1_route_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_ctrl4_int1_pad_ctrl_t * | val | ||
) |
Select the signal that need to route on int1 pad.
[get]
- Parameters:
-
ctx read / write interface definitions val register CTRL4_INT1_PAD_CTRL.
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1524 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_int1_route_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_ctrl4_int1_pad_ctrl_t * | val | ||
) |
Select the signal that need to route on int1 pad.
[set]
- Parameters:
-
ctx read / write interface definitions val register CTRL4_INT1_PAD_CTRL.
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1492 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_int2_route_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_ctrl5_int2_pad_ctrl_t * | val | ||
) |
Select the signal that need to route on int2 pad.
[get]
- Parameters:
-
ctx read / write interface definitions val register CTRL5_INT2_PAD_CTRL
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1573 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_int2_route_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_ctrl5_int2_pad_ctrl_t * | val | ||
) |
Select the signal that need to route on int2 pad.
[set]
- Parameters:
-
ctx read / write interface definitions val register CTRL5_INT2_PAD_CTRL.
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1541 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_mode_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_pp_od_t * | val | ||
) |
Push-pull/open drain selection on interrupt pads.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of pp_od in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1463 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_mode_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_pp_od_t | val | ||
) |
Push-pull/open drain selection on interrupt pads.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of pp_od in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1442 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_polarity_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_h_lactive_t * | val | ||
) |
Interrupt active-high/low.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of h_lactive in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1360 of file lis2dw12_reg.c.
int32_t lis2dw12_pin_polarity_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_h_lactive_t | val | ||
) |
Interrupt active-high/low.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of h_lactive in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 1338 of file lis2dw12_reg.c.
Generated on Thu Jul 14 2022 10:48:26 by 1.7.2