|
ChibiOS 21.11.4
|

Version identification | |
| #define | EX_LIS3DSH_VERSION "1.1.3" |
| LIS3DSH driver version string. | |
| #define | EX_LIS3DSH_MAJOR 1 |
| LIS3DSH driver version major number. | |
| #define | EX_LIS3DSH_MINOR 1 |
| LIS3DSH driver version minor number. | |
| #define | EX_LIS3DSH_PATCH 3 |
| LIS3DSH driver version patch number. | |
| #define | LIS3DSH_ACC_NUMBER_OF_AXES 3U |
| LIS3DSH accelerometer subsystem characteristics. | |
| #define | LIS3DSH_ACC_2G 2.0f |
| #define | LIS3DSH_ACC_4G 4.0f |
| #define | LIS3DSH_ACC_6G 6.0f |
| #define | LIS3DSH_ACC_8G 8.0f |
| #define | LIS3DSH_ACC_16G 16.0f |
| #define | LIS3DSH_ACC_SENS_2G 0.06f |
| #define | LIS3DSH_ACC_SENS_4G 0.12f |
| #define | LIS3DSH_ACC_SENS_6G 0.18f |
| #define | LIS3DSH_ACC_SENS_8G 0.24f |
| #define | LIS3DSH_ACC_SENS_16G 0.73f |
| #define | LIS3DSH_ACC_BIAS 0.0f |
LIS3DSH communication interfaces related bit masks | |
| #define | LIS3DSH_DI_MASK 0xFF |
| #define | LIS3DSH_DI(n) |
| #define | LIS3DSH_AD_MASK 0x3F |
| #define | LIS3DSH_AD(n) |
| #define | LIS3DSH_MS (1 << 6) |
| #define | LIS3DSH_RW (1 << 7) |
LIS3DSH_CTRL_REG1 register bits definitions | |
| #define | LIS3DSH_CTRL_REG1_MASK 0xE9 |
| #define | LIS3DSH_CTRL_REG1_SM1_EN (1 << 0) |
| #define | LIS3DSH_CTRL_REG1_SM1_PIN (1 << 3) |
| #define | LIS3DSH_CTRL_REG1_HYST0_1 (1 << 5) |
| #define | LIS3DSH_CTRL_REG1_HYST1_1 (1 << 6) |
| #define | LIS3DSH_CTRL_REG1_HYST2_1 (1 << 7) |
LIS3DSH_CTRL_REG2 register bits definitions | |
| #define | LIS3DSH_CTRL_REG2_MASK 0xE9 |
| #define | LIS3DSH_CTRL_REG2_SM2_EN (1 << 0) |
| #define | LIS3DSH_CTRL_REG2_SM2_PIN (1 << 3) |
| #define | LIS3DSH_CTRL_REG2_HYST0_2 (1 << 5) |
| #define | LIS3DSH_CTRL_REG2_HYST1_2 (1 << 6) |
| #define | LIS3DSH_CTRL_REG2_HYST2_2 (1 << 7) |
LIS3DSH_CTRL_REG3 register bits definitions | |
| #define | LIS3DSH_CTRL_REG3_MASK 0xFF |
| #define | LIS3DSH_CTRL_REG3_STRT (1 << 0) |
| #define | LIS3DSH_CTRL_REG3_VFILT (1 << 2) |
| #define | LIS3DSH_CTRL_REG3_INT1_EN (1 << 3) |
| #define | LIS3DSH_CTRL_REG3_INT2_EN (1 << 4) |
| #define | LIS3DSH_CTRL_REG3_IEL (1 << 5) |
| #define | LIS3DSH_CTRL_REG3_IEA (1 << 6) |
| #define | LIS3DSH_CTRL_REG3_DR_EN (1 << 7) |
LIS3DSH_CTRL_REG4 register bits definitions | |
| #define | LIS3DSH_CTRL_REG4_MASK 0xFF |
| #define | LIS3DSH_CTRL_REG4_XEN (1 << 0) |
| #define | LIS3DSH_CTRL_REG4_YEN (1 << 1) |
| #define | LIS3DSH_CTRL_REG4_ZEN (1 << 2) |
| #define | LIS3DSH_CTRL_REG4_BDU (1 << 3) |
| #define | LIS3DSH_CTRL_REG4_ODR_0 (1 << 4) |
| #define | LIS3DSH_CTRL_REG4_ODR_1 (1 << 5) |
| #define | LIS3DSH_CTRL_REG4_ODR_2 (1 << 6) |
| #define | LIS3DSH_CTRL_REG4_ODR_3 (1 << 7) |
LIS3DSH_CTRL_REG5 register bits definitions | |
| #define | LIS3DSH_CTRL_REG5_MASK 0xFF |
| #define | LIS3DSH_CTRL_REG5_SIM (1 << 0) |
| #define | LIS3DSH_CTRL_REG5_ST1 (1 << 1) |
| #define | LIS3DSH_CTRL_REG5_ST2 (1 << 2) |
| #define | LIS3DSH_CTRL_REG5_FS_MASK 0x38 |
| #define | LIS3DSH_CTRL_REG5_FS0 (1 << 3) |
| #define | LIS3DSH_CTRL_REG5_FS1 (1 << 4) |
| #define | LIS3DSH_CTRL_REG5_FS2 (1 << 5) |
| #define | LIS3DSH_CTRL_REG5_BW1 (1 << 6) |
| #define | LIS3DSH_CTRL_REG5_BW2 (1 << 7) |
LIS3DSH_CTRL_REG6 register bits definitions | |
| #define | LIS3DSH_CTRL_REG6_MASK 0xFF |
| #define | LIS3DSH_CTRL_REG6_P2_BOOT (1 << 0) |
| #define | LIS3DSH_CTRL_REG6_P1_OVRUN (1 << 1) |
| #define | LIS3DSH_CTRL_REG6_P1_WTM (1 << 2) |
| #define | LIS3DSH_CTRL_REG6_P1_EMPTY (1 << 3) |
| #define | LIS3DSH_CTRL_REG6_ADD_INC (1 << 4) |
| #define | LIS3DSH_CTRL_REG6_WTM_EN (1 << 5) |
| #define | LIS3DSH_CTRL_REG6_FIFO_EN (1 << 6) |
| #define | LIS3DSH_CTRL_REG6_BOOT (1 << 7) |
Configuration options | |
| #define | LIS3DSH_USE_SPI TRUE |
| LIS3DSH SPI interface switch. | |
| #define | LIS3DSH_SHARED_SPI FALSE |
| LIS3DSH shared SPI switch. | |
| #define | LIS3DSH_USE_I2C FALSE |
| LIS3DSH I2C interface switch. | |
| #define | LIS3DSH_SHARED_I2C FALSE |
| LIS3DSH shared I2C switch. | |
| #define | LIS3DSH_USE_ADVANCED FALSE |
| LIS3DSH advanced configurations switch. | |
Data Structures | |
| struct | LIS3DSHConfig |
| LIS3DSH configuration structure. More... | |
| struct | LIS3DSHVMT |
LIS3DSH virtual methods table. More... | |
| struct | LIS3DSHDriver |
| LIS3DSH 3-axis accelerometer class. More... | |
Macros | |
| #define | lis3dshAccelerometerGetAxesNumber(devp) |
| Return the number of axes of the BaseAccelerometer. | |
| #define | lis3dshAccelerometerReadRaw(devp, axes) |
| Retrieves raw data from the BaseAccelerometer. | |
| #define | lis3dshAccelerometerReadCooked(devp, axes) |
| Retrieves cooked data from the BaseAccelerometer. | |
| #define | lis3dshAccelerometerSetBias(devp, bp) |
| Set bias values for the BaseAccelerometer. | |
| #define | lis3dshAccelerometerResetBias(devp) |
| Reset bias values for the BaseAccelerometer. | |
| #define | lis3dshAccelerometerSetSensitivity(devp, sp) |
| Set sensitivity values for the BaseAccelerometer. | |
| #define | lis3dshAccelerometerResetSensitivity(devp) |
| Reset sensitivity values for the BaseAccelerometer. | |
| #define | lis3dshAccelerometerSetFullScale(devp, fs) |
| Changes the LIS3DSHDriver accelerometer fullscale value. | |
Functions | |
| static void | lis3dshSPIReadRegister (SPIDriver *spip, uint8_t reg, size_t n, uint8_t *b) |
| Reads a generic register value using SPI. | |
| static void | lis3dshSPIWriteRegister (SPIDriver *spip, uint8_t reg, size_t n, uint8_t *b) |
| Writes a value into a generic register using SPI. | |
| static size_t | acc_get_axes_number (void *ip) |
| Return the number of axes of the BaseAccelerometer. | |
| static msg_t | acc_read_raw (void *ip, int32_t axes[]) |
| Retrieves raw data from the BaseAccelerometer. | |
| static msg_t | acc_read_cooked (void *ip, float axes[]) |
| Retrieves cooked data from the BaseAccelerometer. | |
| static msg_t | acc_set_bias (void *ip, float *bp) |
| Set bias values for the BaseAccelerometer. | |
| static msg_t | acc_reset_bias (void *ip) |
| Reset bias values for the BaseAccelerometer. | |
| static msg_t | acc_set_sensivity (void *ip, float *sp) |
| Set sensitivity values for the BaseAccelerometer. | |
| static msg_t | acc_reset_sensivity (void *ip) |
| Reset sensitivity values for the BaseAccelerometer. | |
| static msg_t | acc_set_full_scale (LIS3DSHDriver *devp, lis3dsh_acc_fs_t fs) |
| Changes the LIS3DSHDriver accelerometer fullscale value. | |
| void | lis3dshObjectInit (LIS3DSHDriver *devp) |
| Initializes an instance. | |
| void | lis3dshStart (LIS3DSHDriver *devp, const LIS3DSHConfig *config) |
| Configures and activates LIS3DSH Complex Driver peripheral. | |
| void | lis3dshStop (LIS3DSHDriver *devp) |
| Deactivates the LIS3DSH Complex Driver peripheral. | |
Variables | |
| static const struct LIS3DSHVMT | vmt_device |
| static const struct BaseAccelerometerVMT | vmt_accelerometer |
| #define EX_LIS3DSH_VERSION "1.1.3" |
| #define EX_LIS3DSH_MAJOR 1 |
| #define EX_LIS3DSH_MINOR 1 |
| #define EX_LIS3DSH_PATCH 3 |
| #define LIS3DSH_ACC_NUMBER_OF_AXES 3U |
LIS3DSH accelerometer subsystem characteristics.
Definition at line 72 of file lis3dsh.h.
Referenced by acc_get_axes_number(), acc_read_cooked(), acc_read_raw(), acc_reset_bias(), acc_reset_sensivity(), acc_set_bias(), acc_set_full_scale(), acc_set_sensivity(), lis3dshObjectInit(), and lis3dshStart().
| #define LIS3DSH_ACC_2G 2.0f |
Definition at line 74 of file lis3dsh.h.
Referenced by acc_set_full_scale(), and lis3dshStart().
| #define LIS3DSH_ACC_4G 4.0f |
Definition at line 75 of file lis3dsh.h.
Referenced by acc_set_full_scale(), and lis3dshStart().
| #define LIS3DSH_ACC_6G 6.0f |
Definition at line 76 of file lis3dsh.h.
Referenced by acc_set_full_scale(), and lis3dshStart().
| #define LIS3DSH_ACC_8G 8.0f |
Definition at line 77 of file lis3dsh.h.
Referenced by acc_set_full_scale(), and lis3dshStart().
| #define LIS3DSH_ACC_16G 16.0f |
Definition at line 78 of file lis3dsh.h.
Referenced by acc_set_full_scale(), and lis3dshStart().
| #define LIS3DSH_ACC_SENS_2G 0.06f |
Definition at line 80 of file lis3dsh.h.
Referenced by acc_reset_sensivity(), and lis3dshStart().
| #define LIS3DSH_ACC_SENS_4G 0.12f |
Definition at line 81 of file lis3dsh.h.
Referenced by acc_reset_sensivity(), and lis3dshStart().
| #define LIS3DSH_ACC_SENS_6G 0.18f |
Definition at line 82 of file lis3dsh.h.
Referenced by acc_reset_sensivity(), and lis3dshStart().
| #define LIS3DSH_ACC_SENS_8G 0.24f |
Definition at line 83 of file lis3dsh.h.
Referenced by acc_reset_sensivity(), and lis3dshStart().
| #define LIS3DSH_ACC_SENS_16G 0.73f |
Definition at line 84 of file lis3dsh.h.
Referenced by acc_reset_sensivity(), and lis3dshStart().
| #define LIS3DSH_ACC_BIAS 0.0f |
Definition at line 86 of file lis3dsh.h.
Referenced by acc_reset_bias(), and lis3dshStart().
| #define LIS3DSH_RW (1 << 7) |
Definition at line 98 of file lis3dsh.h.
Referenced by lis3dshSPIReadRegister().
| #define LIS3DSH_AD_CTRL_REG4 0x20 |
Definition at line 125 of file lis3dsh.h.
Referenced by lis3dshStart(), and lis3dshStop().
| #define LIS3DSH_AD_CTRL_REG5 0x24 |
Definition at line 129 of file lis3dsh.h.
Referenced by acc_set_full_scale(), and lis3dshStart().
| #define LIS3DSH_AD_CTRL_REG6 0x25 |
Definition at line 130 of file lis3dsh.h.
Referenced by lis3dshStart().
| #define LIS3DSH_AD_OUT_X_L 0x28 |
Definition at line 132 of file lis3dsh.h.
Referenced by acc_read_raw().
| #define LIS3DSH_CTRL_REG4_XEN (1 << 0) |
Definition at line 248 of file lis3dsh.h.
Referenced by lis3dshStart().
| #define LIS3DSH_CTRL_REG4_YEN (1 << 1) |
Definition at line 249 of file lis3dsh.h.
Referenced by lis3dshStart().
| #define LIS3DSH_CTRL_REG4_ZEN (1 << 2) |
Definition at line 250 of file lis3dsh.h.
Referenced by lis3dshStart().
| #define LIS3DSH_CTRL_REG5_FS_MASK 0x38 |
Definition at line 266 of file lis3dsh.h.
Referenced by acc_set_full_scale().
| #define LIS3DSH_CTRL_REG6_ADD_INC (1 << 4) |
Definition at line 283 of file lis3dsh.h.
Referenced by lis3dshStart().
| #define LIS3DSH_USE_SPI TRUE |
| #define LIS3DSH_SHARED_SPI FALSE |
| #define LIS3DSH_USE_I2C FALSE |
| #define LIS3DSH_SHARED_I2C FALSE |
| #define LIS3DSH_USE_ADVANCED FALSE |
| #define _lis3dsh_methods_alone |
LIS3DSH specific methods.
| #define _lis3dsh_methods |
| #define _lis3dsh_data |
LIS3DSHDriver specific data.
| #define lis3dshAccelerometerGetAxesNumber | ( | devp | ) |
Return the number of axes of the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| #define lis3dshAccelerometerReadRaw | ( | devp, | |
| axes ) |
Retrieves raw data from the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| [out] | axes | a buffer which would be filled with raw data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
| #define lis3dshAccelerometerReadCooked | ( | devp, | |
| axes ) |
Retrieves cooked data from the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| [out] | axes | a buffer which would be filled with cooked data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
| #define lis3dshAccelerometerSetBias | ( | devp, | |
| bp ) |
Set bias values for the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
| #define lis3dshAccelerometerResetBias | ( | devp | ) |
Reset bias values for the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| MSG_OK | if the function succeeded. |
| #define lis3dshAccelerometerSetSensitivity | ( | devp, | |
| sp ) |
Set sensitivity values for the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
| #define lis3dshAccelerometerResetSensitivity | ( | devp | ) |
Reset sensitivity values for the BaseAccelerometer.
| [in] | devp | pointer to LIS3DSHDriver. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
| #define lis3dshAccelerometerSetFullScale | ( | devp, | |
| fs ) |
Changes the LIS3DSHDriver accelerometer fullscale value.
| [in] | devp | pointer to LIS3DSHDriver. |
| [in] | fs | new fullscale value. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
| typedef struct LIS3DSHDriver LIS3DSHDriver |
| enum lis3dsh_acc_fs_t |
| enum lis3dsh_acc_odr_t |
LIS3DSH output data rate.
| enum lis3dsh_acc_bw_t |
| enum lis3dsh_acc_bdu_t |
| enum lis3dsh_state_t |
|
static |
Reads a generic register value using SPI.
| [in] | spip | pointer to the SPI interface |
| [in] | reg | starting register address |
| [in] | n | number of adjacent registers to write |
| [in] | b | pointer to a buffer. |
Definition at line 60 of file lis3dsh.c.
References LIS3DSH_RW, spiReceive(), spiSelect(), spiSend(), and spiUnselect().
Referenced by acc_read_raw(), and acc_set_full_scale().

|
static |
Writes a value into a generic register using SPI.
| [in] | spip | pointer to the SPI interface |
| [in] | reg | starting register address |
| [in] | n | number of adjacent registers to write |
| [in] | b | pointer to a buffer of values. |
Definition at line 80 of file lis3dsh.c.
References spiSelect(), spiSend(), and spiUnselect().
Referenced by acc_set_full_scale(), lis3dshStart(), and lis3dshStop().

|
static |
Return the number of axes of the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
Definition at line 98 of file lis3dsh.c.
References LIS3DSH_ACC_NUMBER_OF_AXES.
|
static |
Retrieves raw data from the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
| [out] | axes | a buffer which would be filled with raw data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 120 of file lis3dsh.c.
References LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_AD_OUT_X_L, LIS3DSH_READY, lis3dshSPIReadRegister(), MSG_OK, objGetInstance, osalDbgAssert, osalDbgCheck, SPI_READY, spiAcquireBus(), spiReleaseBus(), and spiStart().
Referenced by acc_read_cooked().

|
static |
Retrieves cooked data from the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
| [out] | axes | a buffer which would be filled with cooked data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 176 of file lis3dsh.c.
References acc_read_raw(), LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_READY, objGetInstance, osalDbgAssert, and osalDbgCheck.

|
static |
Set bias values for the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
Definition at line 209 of file lis3dsh.c.
References LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset bias values for the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
| MSG_OK | if the function succeeded. |
Definition at line 238 of file lis3dsh.c.
References LIS3DSH_ACC_BIAS, LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Set sensitivity values for the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
Definition at line 268 of file lis3dsh.c.
References LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset sensitivity values for the BaseAccelerometer.
| [in] | ip | pointer to BaseAccelerometer interface. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
Definition at line 297 of file lis3dsh.c.
References FALSE, LIS3DSH_ACC_FS_16G, LIS3DSH_ACC_FS_2G, LIS3DSH_ACC_FS_4G, LIS3DSH_ACC_FS_6G, LIS3DSH_ACC_FS_8G, LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_ACC_SENS_16G, LIS3DSH_ACC_SENS_2G, LIS3DSH_ACC_SENS_4G, LIS3DSH_ACC_SENS_6G, LIS3DSH_ACC_SENS_8G, LIS3DSH_READY, MSG_OK, MSG_RESET, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Changes the LIS3DSHDriver accelerometer fullscale value.
| [in] | devp | pointer to LIS3DSHDriver interface. |
| [in] | fs | new fullscale value. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
Definition at line 346 of file lis3dsh.c.
References LIS3DSH_ACC_16G, LIS3DSH_ACC_2G, LIS3DSH_ACC_4G, LIS3DSH_ACC_6G, LIS3DSH_ACC_8G, LIS3DSH_ACC_FS_16G, LIS3DSH_ACC_FS_2G, LIS3DSH_ACC_FS_4G, LIS3DSH_ACC_FS_6G, LIS3DSH_ACC_FS_8G, LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_AD_CTRL_REG5, LIS3DSH_CTRL_REG5_FS_MASK, LIS3DSH_READY, lis3dshSPIReadRegister(), lis3dshSPIWriteRegister(), MSG_OK, MSG_RESET, osalDbgAssert, osalDbgCheck, SPI_READY, spiAcquireBus(), spiReleaseBus(), and spiStart().

| void lis3dshObjectInit | ( | LIS3DSHDriver * | devp | ) |
Initializes an instance.
| [out] | devp | pointer to the LIS3DSHDriver object |
Definition at line 453 of file lis3dsh.c.
References LIS3DSHDriver::acc_if, LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_STOP, BaseAccelerometer::vmt, LIS3DSHDriver::vmt, vmt_accelerometer, and vmt_device.
| void lis3dshStart | ( | LIS3DSHDriver * | devp, |
| const LIS3DSHConfig * | config ) |
Configures and activates LIS3DSH Complex Driver peripheral.
| [in] | devp | pointer to the LIS3DSHDriver object |
| [in] | config | pointer to the LIS3DSHConfig object |
Definition at line 472 of file lis3dsh.c.
References FALSE, LIS3DSH_ACC_16G, LIS3DSH_ACC_2G, LIS3DSH_ACC_4G, LIS3DSH_ACC_6G, LIS3DSH_ACC_8G, LIS3DSH_ACC_BIAS, LIS3DSH_ACC_FS_16G, LIS3DSH_ACC_FS_2G, LIS3DSH_ACC_FS_4G, LIS3DSH_ACC_FS_6G, LIS3DSH_ACC_FS_8G, LIS3DSH_ACC_NUMBER_OF_AXES, LIS3DSH_ACC_SENS_16G, LIS3DSH_ACC_SENS_2G, LIS3DSH_ACC_SENS_4G, LIS3DSH_ACC_SENS_6G, LIS3DSH_ACC_SENS_8G, LIS3DSH_AD_CTRL_REG4, LIS3DSH_AD_CTRL_REG5, LIS3DSH_AD_CTRL_REG6, LIS3DSH_CTRL_REG4_XEN, LIS3DSH_CTRL_REG4_YEN, LIS3DSH_CTRL_REG4_ZEN, LIS3DSH_CTRL_REG6_ADD_INC, LIS3DSH_READY, LIS3DSH_STOP, lis3dshSPIWriteRegister(), osalDbgAssert, osalDbgCheck, osalThreadSleepMilliseconds, spiAcquireBus(), spiReleaseBus(), and spiStart().

| void lis3dshStop | ( | LIS3DSHDriver * | devp | ) |
Deactivates the LIS3DSH Complex Driver peripheral.
| [in] | devp | pointer to the LIS3DSHDriver object |
Definition at line 618 of file lis3dsh.c.
References LIS3DSH_AD_CTRL_REG4, LIS3DSH_READY, LIS3DSH_STOP, lis3dshSPIWriteRegister(), osalDbgAssert, osalDbgCheck, spiAcquireBus(), spiReleaseBus(), spiStart(), and spiStop().

|
static |
|
static |