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 concerning six position detection (6D). More...
Functions | |
int32_t | lis2dw12_6d_threshold_set (lis2dw12_ctx_t *ctx, uint8_t val) |
Threshold for 4D/6D function. | |
int32_t | lis2dw12_6d_threshold_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
Threshold for 4D/6D function. | |
int32_t | lis2dw12_4d_mode_set (lis2dw12_ctx_t *ctx, uint8_t val) |
4D orientation detection enable. | |
int32_t | lis2dw12_4d_mode_get (lis2dw12_ctx_t *ctx, uint8_t *val) |
4D orientation detection enable. | |
int32_t | lis2dw12_6d_src_get (lis2dw12_ctx_t *ctx, lis2dw12_sixd_src_t *val) |
Read the 6D tap source register. | |
int32_t | lis2dw12_6d_feed_data_set (lis2dw12_ctx_t *ctx, lis2dw12_lpass_on6d_t val) |
Data sent to 6D interrupt function. | |
int32_t | lis2dw12_6d_feed_data_get (lis2dw12_ctx_t *ctx, lis2dw12_lpass_on6d_t *val) |
Data sent to 6D interrupt function. |
Detailed Description
This section groups all the functions concerning six position detection (6D).
Function Documentation
int32_t lis2dw12_4d_mode_get | ( | lis2dw12_ctx_t * | ctx, |
uint8_t * | val | ||
) |
4D orientation detection enable.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of 4d_en in reg TAP_THS_X
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2504 of file lis2dw12_reg.c.
int32_t lis2dw12_4d_mode_set | ( | lis2dw12_ctx_t * | ctx, |
uint8_t | val | ||
) |
4D orientation detection enable.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of 4d_en in reg TAP_THS_X
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2482 of file lis2dw12_reg.c.
int32_t lis2dw12_6d_feed_data_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_lpass_on6d_t * | val | ||
) |
Data sent to 6D interrupt function.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of lpass_on6d in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2559 of file lis2dw12_reg.c.
int32_t lis2dw12_6d_feed_data_set | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_lpass_on6d_t | val | ||
) |
Data sent to 6D interrupt function.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of lpass_on6d in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2537 of file lis2dw12_reg.c.
int32_t lis2dw12_6d_src_get | ( | lis2dw12_ctx_t * | ctx, |
lis2dw12_sixd_src_t * | val | ||
) |
Read the 6D tap source register.
[get]
- Parameters:
-
ctx read / write interface definitions val union of registers from SIXD_SRC
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2523 of file lis2dw12_reg.c.
int32_t lis2dw12_6d_threshold_get | ( | lis2dw12_ctx_t * | ctx, |
uint8_t * | val | ||
) |
Threshold for 4D/6D function.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of 6d_ths in reg TAP_THS_X
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2463 of file lis2dw12_reg.c.
int32_t lis2dw12_6d_threshold_set | ( | lis2dw12_ctx_t * | ctx, |
uint8_t | val | ||
) |
Threshold for 4D/6D function.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of 6d_ths in reg TAP_THS_X
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 2442 of file lis2dw12_reg.c.
Generated on Thu Jul 14 2022 10:48:26 by 1.7.2