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 common useful functions. More...
Functions | |
| int32_t | iis2dlpc_device_id_get (iis2dlpc_ctx_t *ctx, uint8_t *buff) |
| Device Who am I. | |
| int32_t | iis2dlpc_auto_increment_set (iis2dlpc_ctx_t *ctx, uint8_t val) |
| Register address automatically incremented during multiple byte access with a serial interface. | |
| int32_t | iis2dlpc_auto_increment_get (iis2dlpc_ctx_t *ctx, uint8_t *val) |
| Register address automatically incremented during multiple byte access with a serial interface. | |
| int32_t | iis2dlpc_reset_set (iis2dlpc_ctx_t *ctx, uint8_t val) |
| Software reset. | |
| int32_t | iis2dlpc_reset_get (iis2dlpc_ctx_t *ctx, uint8_t *val) |
| Software reset. | |
| int32_t | iis2dlpc_boot_set (iis2dlpc_ctx_t *ctx, uint8_t val) |
| Reboot memory content. | |
| int32_t | iis2dlpc_boot_get (iis2dlpc_ctx_t *ctx, uint8_t *val) |
| Reboot memory content. | |
| int32_t | iis2dlpc_self_test_set (iis2dlpc_ctx_t *ctx, iis2dlpc_st_t val) |
| Sensor self-test enable. | |
| int32_t | iis2dlpc_self_test_get (iis2dlpc_ctx_t *ctx, iis2dlpc_st_t *val) |
| Sensor self-test enable. | |
| int32_t | iis2dlpc_data_ready_mode_set (iis2dlpc_ctx_t *ctx, iis2dlpc_drdy_pulsed_t val) |
| Data-ready pulsed / letched mode. | |
| int32_t | iis2dlpc_data_ready_mode_get (iis2dlpc_ctx_t *ctx, iis2dlpc_drdy_pulsed_t *val) |
| Data-ready pulsed / letched mode. | |
Detailed Description
This section groups common useful functions.
Function Documentation
| int32_t iis2dlpc_auto_increment_get | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Register address automatically incremented during multiple byte access with a serial interface.
[get]
- Parameters:
-
ctx read / write interface definitions val change the values of if_add_inc in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 777 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_auto_increment_set | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Register address automatically incremented during multiple byte access with a serial interface.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of if_add_inc in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 755 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_boot_get | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Reboot memory content.
Reload the calibration parameters.[get]
- Parameters:
-
ctx read / write interface definitions val change the values of boot in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 858 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_boot_set | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Reboot memory content.
Reload the calibration parameters.[set]
- Parameters:
-
ctx read / write interface definitions val change the values of boot in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 837 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_data_ready_mode_get | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_drdy_pulsed_t * | val | ||
| ) |
Data-ready pulsed / letched mode.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of drdy_pulsed in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 954 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_data_ready_mode_set | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_drdy_pulsed_t | val | ||
| ) |
Data-ready pulsed / letched mode.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of drdy_pulsed in reg CTRL_REG7
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 931 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_device_id_get | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t * | buff | ||
| ) |
Device Who am I.
[get]
- Parameters:
-
ctx read / write interface definitions buff buffer that stores data read
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 739 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_reset_get | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Software reset.
Restore the default values in user registers.[get]
- Parameters:
-
ctx read / write interface definitions val change the values of soft_reset in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 818 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_reset_set | ( | iis2dlpc_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Software reset.
Restore the default values in user registers.[set]
- Parameters:
-
ctx read / write interface definitions val change the values of soft_reset in reg CTRL2
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 796 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_self_test_get | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_st_t * | val | ||
| ) |
Sensor self-test enable.
[get]
- Parameters:
-
ctx read / write interface definitions val Get the values of st in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 899 of file iis2dlpc_reg.c.
| int32_t iis2dlpc_self_test_set | ( | iis2dlpc_ctx_t * | ctx, |
| iis2dlpc_st_t | val | ||
| ) |
Sensor self-test enable.
[set]
- Parameters:
-
ctx read / write interface definitions val change the values of st in reg CTRL3
- Return values:
-
interface status (MANDATORY: return 0 -> no Error)
Definition at line 877 of file iis2dlpc_reg.c.
Generated on Tue Jul 12 2022 14:14:49 by
1.7.2