Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
This section groups all the functions concerning six position detection (6D). More...
Functions | |
| int32_t | iis2dlpc_6d_threshold_set (iis2dlpc_ctx_t *ctx, uint8_t val) |
| Threshold for 4D/6D function. | |
| int32_t | iis2dlpc_6d_threshold_get (iis2dlpc_ctx_t *ctx, uint8_t *val) |
| Threshold for 4D/6D function. | |
| int32_t | iis2dlpc_4d_mode_set (iis2dlpc_ctx_t *ctx, uint8_t val) |
| 4D orientation detection enable. | |
| int32_t | iis2dlpc_4d_mode_get (iis2dlpc_ctx_t *ctx, uint8_t *val) |
| 4D orientation detection enable. | |
| int32_t | iis2dlpc_6d_src_get (iis2dlpc_ctx_t *ctx, iis2dlpc_sixd_src_t *val) |
| Read the 6D tap source register. | |
| int32_t | iis2dlpc_6d_feed_data_set (iis2dlpc_ctx_t *ctx, iis2dlpc_lpass_on6d_t val) |
| Data sent to 6D interrupt function. | |
| int32_t | iis2dlpc_6d_feed_data_get (iis2dlpc_ctx_t *ctx, iis2dlpc_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 iis2dlpc_4d_mode_get | ( | iis2dlpc_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 2513 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_4d_mode_set | ( | iis2dlpc_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 2491 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_6d_feed_data_get | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_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 2568 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_6d_feed_data_set | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_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 2546 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_6d_src_get | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_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 2532 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_6d_threshold_get | ( | iis2dlpc_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 2472 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_6d_threshold_set | ( | iis2dlpc_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 2451 of file iis2dlpc_reg.c.
Generated on Tue Jul 12 2022 14:14:49 by
1.7.2