|
ChibiOS 21.11.4
|

Version identification | |
| #define | EX_LIS3MDL_VERSION "1.1.3" |
| LIS3MDL driver version string. | |
| #define | EX_LIS3MDL_MAJOR 1 |
| LIS3MDL driver version major number. | |
| #define | EX_LIS3MDL_MINOR 1 |
| LIS3MDL driver version minor number. | |
| #define | EX_LIS3MDL_PATCH 3 |
| LIS3MDL driver version patch number. | |
| #define | LIS3MDL_COMP_NUMBER_OF_AXES 3U |
| LIS3MDL compass subsystem characteristics. | |
| #define | LIS3MDL_COMP_4GA 4.0f |
| #define | LIS3MDL_COMP_8GA 8.0f |
| #define | LIS3MDL_COMP_12GA 12.0f |
| #define | LIS3MDL_COMP_16GA 16.0f |
| #define | LIS3MDL_COMP_SENS_4GA 0.00014615f |
| #define | LIS3MDL_COMP_SENS_8GA 0.00029231f |
| #define | LIS3MDL_COMP_SENS_12GA 0.0004384f |
| #define | LIS3MDL_COMP_SENS_16GA 0.00058445f |
| #define | LIS3MDL_COMP_BIAS 0.0f |
LIS3MDL communication interfaces related bit masks | |
| #define | LIS3MDL_DI_MASK 0xFF |
| #define | LIS3MDL_DI(n) |
| #define | LIS3MDL_AD_MASK 0x3F |
| #define | LIS3MDL_AD(n) |
| #define | LIS3MDL_MS (1 << 6) |
| #define | LIS3MDL_RW (1 << 7) |
| #define | LIS3MDL_SUB_MS (1 << 7) |
LIS3MDL register addresses | |
| #define | LIS3MDL_AD_WHO_AM_I 0x0F |
| #define | LIS3MDL_AD_CTRL_REG1 0x20 |
| #define | LIS3MDL_AD_CTRL_REG2 0x21 |
| #define | LIS3MDL_AD_CTRL_REG3 0x22 |
| #define | LIS3MDL_AD_CTRL_REG4 0x23 |
| #define | LIS3MDL_AD_CTRL_REG5 0x24 |
| #define | LIS3MDL_AD_STATUS_REG 0x27 |
| #define | LIS3MDL_AD_OUT_X_L 0x28 |
| #define | LIS3MDL_AD_OUT_X_H 0x29 |
| #define | LIS3MDL_AD_OUT_Y_L 0x2A |
| #define | LIS3MDL_AD_OUT_Y_H 0x2B |
| #define | LIS3MDL_AD_OUT_Z_L 0x2C |
| #define | LIS3MDL_AD_OUT_Z_H 0x2D |
| #define | LIS3MDL_AD_TEMP_OUT_L 0x2E |
| #define | LIS3MDL_AD_TEMP_OUT_H 0x2F |
| #define | LIS3MDL_AD_INT_CFG 0x30 |
| #define | LIS3MDL_AD_INT_SOURCE 0x31 |
| #define | LIS3MDL_AD_INT_THS_L 0x32 |
| #define | LIS3MDL_AD_INT_THS_H 0x33 |
LIS3MDL_CTRL_REG1 register bits definitions | |
| #define | LIS3MDL_CTRL_REG1_MASK 0xFF |
| #define | LIS3MDL_CTRL_REG1_ST (1 << 0) |
| #define | LIS3MDL_CTRL_REG1_FAST_ODR (1 << 1) |
| #define | LIS3MDL_CTRL_REG1_DO0 (1 << 2) |
| #define | LIS3MDL_CTRL_REG1_DO1 (1 << 3) |
| #define | LIS3MDL_CTRL_REG1_DO2 (1 << 4) |
| #define | LIS3MDL_CTRL_REG1_OM0 (1 << 5) |
| #define | LIS3MDL_CTRL_REG1_OM1 (1 << 6) |
| #define | LIS3MDL_CTRL_REG1_TEMP_EN (1 << 7) |
LIS3MDL_CTRL_REG2 register bits definitions | |
| #define | LIS3MDL_CTRL_REG2_MASK 0x6C |
| #define | LIS3MDL_CTRL_REG2_SOFT_RST (1 << 2) |
| #define | LIS3MDL_CTRL_REG2_REBOOT (1 << 3) |
| #define | LIS3MDL_CTRL_REG2_FS_MASK 0x60 |
| #define | LIS3MDL_CTRL_REG2_FS0 (1 << 5) |
| #define | LIS3MDL_CTRL_REG2_FS1 (1 << 6) |
LIS3MDL_CTRL_REG3 register bits definitions | |
| #define | LIS3MDL_CTRL_REG3_MASK 0x27 |
| #define | LIS3MDL_CTRL_REG3_MD0 (1 << 0) |
| #define | LIS3MDL_CTRL_REG3_MD1 (1 << 1) |
| #define | LIS3MDL_CTRL_REG3_SIM (1 << 2) |
| #define | LIS3MDL_CTRL_REG3_LP (1 << 5) |
LIS3MDL_CTRL_REG4 register bits definitions | |
| #define | LIS3MDL_CTRL_REG4_MASK 0x0E |
| #define | LIS3MDL_CTRL_REG4_BLE (1 << 1) |
| #define | LIS3MDL_CTRL_REG4_OMZ0 (1 << 2) |
| #define | LIS3MDL_CTRL_REG4_OMZ1 (1 << 3) |
LIS3MDL_CTRL_REG5 register bits definitions | |
| #define | LIS3MDL_CTRL_REG5_MASK 0xC0 |
| #define | LIS3MDL_CTRL_REG5_BDU (1 << 6) |
| #define | LIS3MDL_CTRL_REG5_FAST_READ (1 << 7) |
Configuration options | |
| #define | LIS3MDL_USE_SPI FALSE |
| LIS3MDL SPI interface switch. | |
| #define | LIS3MDL_SHARED_SPI FALSE |
| LIS3MDL shared SPI switch. | |
| #define | LIS3MDL_USE_I2C TRUE |
| LIS3MDL I2C interface switch. | |
| #define | LIS3MDL_SHARED_I2C FALSE |
| LIS3MDL shared I2C switch. | |
| #define | LIS3MDL_USE_ADVANCED FALSE |
| LIS3MDL advanced configurations switch. | |
Data Structures | |
| struct | LIS3MDLConfig |
| LIS3MDL configuration structure. More... | |
| struct | LIS3MDLVMT |
LIS3MDL virtual methods table. More... | |
| struct | LIS3MDLDriver |
| LIS3MDL 3-axis compass class. More... | |
Macros | |
| #define | lis3mdlCompassGetAxesNumber(devp) |
| Return the number of axes of the BaseCompass. | |
| #define | lis3mdlCompassReadRaw(devp, axes) |
| Retrieves raw data from the BaseCompass. | |
| #define | lis3mdlCompassReadCooked(devp, axes) |
| Retrieves cooked data from the BaseCompass. | |
| #define | lis3mdlCompassSetBias(devp, bp) |
| Set bias values for the BaseCompass. | |
| #define | lis3mdlCompassResetBias(devp) |
| Reset bias values for the BaseCompass. | |
| #define | lis3mdlCompassSetSensitivity(devp, sp) |
| Set sensitivity values for the BaseCompass. | |
| #define | lis3mdlCompassResetSensitivity(devp) |
| Reset sensitivity values for the BaseCompass. | |
| #define | lis3mdlCompassSetFullScale(devp, fs) |
| Changes the LIS3MDLDriver compass fullscale value. | |
Functions | |
| msg_t | lis3mdlI2CReadRegister (I2CDriver *i2cp, lis3mdl_sad_t sad, uint8_t reg, uint8_t *rxbuf, size_t n) |
| Reads registers value using I2C. | |
| msg_t | lis3mdlI2CWriteRegister (I2CDriver *i2cp, lis3mdl_sad_t sad, uint8_t *txbuf, uint8_t n) |
| Writes a value into a register using I2C. | |
| static size_t | comp_get_axes_number (void *ip) |
| Return the number of axes of the BaseCompass. | |
| static msg_t | comp_read_raw (void *ip, int32_t axes[]) |
| Retrieves raw data from the BaseCompass. | |
| static msg_t | comp_read_cooked (void *ip, float axes[]) |
| Retrieves cooked data from the BaseCompass. | |
| static msg_t | comp_set_bias (void *ip, float *bp) |
| Set bias values for the BaseCompass. | |
| static msg_t | comp_reset_bias (void *ip) |
| Reset bias values for the BaseCompass. | |
| static msg_t | comp_set_sensivity (void *ip, float *sp) |
| Set sensitivity values for the BaseCompass. | |
| static msg_t | comp_reset_sensivity (void *ip) |
| Reset sensitivity values for the BaseCompass. | |
| static msg_t | comp_set_full_scale (LIS3MDLDriver *devp, lis3mdl_comp_fs_t fs) |
| Changes the LIS3MDLDriver compass fullscale value. | |
| void | lis3mdlObjectInit (LIS3MDLDriver *devp) |
| Initializes an instance. | |
| void | lis3mdlStart (LIS3MDLDriver *devp, const LIS3MDLConfig *config) |
| Configures and activates LIS3MDL Complex Driver peripheral. | |
| void | lis3mdlStop (LIS3MDLDriver *devp) |
| Deactivates the LIS3MDL Complex Driver peripheral. | |
Variables | |
| static const struct LIS3MDLVMT | vmt_device |
| static const struct BaseCompassVMT | vmt_compass |
| #define EX_LIS3MDL_VERSION "1.1.3" |
| #define EX_LIS3MDL_MAJOR 1 |
| #define EX_LIS3MDL_MINOR 1 |
| #define EX_LIS3MDL_PATCH 3 |
| #define LIS3MDL_COMP_NUMBER_OF_AXES 3U |
LIS3MDL compass subsystem characteristics.
Definition at line 70 of file lis3mdl.h.
Referenced by comp_get_axes_number(), comp_read_cooked(), comp_read_raw(), comp_reset_bias(), comp_reset_sensivity(), comp_set_bias(), comp_set_full_scale(), comp_set_sensivity(), lis3mdlObjectInit(), and lis3mdlStart().
| #define LIS3MDL_COMP_4GA 4.0f |
Definition at line 72 of file lis3mdl.h.
Referenced by comp_set_full_scale(), and lis3mdlStart().
| #define LIS3MDL_COMP_8GA 8.0f |
Definition at line 73 of file lis3mdl.h.
Referenced by comp_set_full_scale(), and lis3mdlStart().
| #define LIS3MDL_COMP_12GA 12.0f |
Definition at line 74 of file lis3mdl.h.
Referenced by comp_set_full_scale(), and lis3mdlStart().
| #define LIS3MDL_COMP_16GA 16.0f |
Definition at line 75 of file lis3mdl.h.
Referenced by comp_set_full_scale(), and lis3mdlStart().
| #define LIS3MDL_COMP_SENS_4GA 0.00014615f |
Definition at line 77 of file lis3mdl.h.
Referenced by comp_reset_sensivity(), and lis3mdlStart().
| #define LIS3MDL_COMP_SENS_8GA 0.00029231f |
Definition at line 78 of file lis3mdl.h.
Referenced by comp_reset_sensivity(), and lis3mdlStart().
| #define LIS3MDL_COMP_SENS_12GA 0.0004384f |
Definition at line 79 of file lis3mdl.h.
Referenced by comp_reset_sensivity(), and lis3mdlStart().
| #define LIS3MDL_COMP_SENS_16GA 0.00058445f |
Definition at line 80 of file lis3mdl.h.
Referenced by comp_reset_sensivity(), and lis3mdlStart().
| #define LIS3MDL_COMP_BIAS 0.0f |
Definition at line 82 of file lis3mdl.h.
Referenced by comp_reset_bias(), and lis3mdlStart().
| #define LIS3MDL_SUB_MS (1 << 7) |
Definition at line 96 of file lis3mdl.h.
Referenced by lis3mdlI2CReadRegister(), and lis3mdlI2CWriteRegister().
| #define LIS3MDL_AD_CTRL_REG1 0x20 |
Definition at line 104 of file lis3mdl.h.
Referenced by lis3mdlStart().
| #define LIS3MDL_AD_CTRL_REG2 0x21 |
Definition at line 105 of file lis3mdl.h.
Referenced by comp_set_full_scale().
| #define LIS3MDL_AD_CTRL_REG3 0x22 |
Definition at line 106 of file lis3mdl.h.
Referenced by lis3mdlStop().
| #define LIS3MDL_AD_OUT_X_L 0x28 |
Definition at line 110 of file lis3mdl.h.
Referenced by comp_read_raw().
| #define LIS3MDL_CTRL_REG1_OM0 (1 << 5) |
Definition at line 134 of file lis3mdl.h.
Referenced by lis3mdlStart().
| #define LIS3MDL_CTRL_REG1_OM1 (1 << 6) |
Definition at line 135 of file lis3mdl.h.
Referenced by lis3mdlStart().
| #define LIS3MDL_CTRL_REG2_FS_MASK 0x60 |
Definition at line 146 of file lis3mdl.h.
Referenced by comp_set_full_scale().
| #define LIS3MDL_CTRL_REG3_MD0 (1 << 0) |
Definition at line 156 of file lis3mdl.h.
Referenced by lis3mdlStop().
| #define LIS3MDL_CTRL_REG3_MD1 (1 << 1) |
Definition at line 157 of file lis3mdl.h.
Referenced by lis3mdlStop().
| #define LIS3MDL_USE_SPI FALSE |
| #define LIS3MDL_SHARED_SPI FALSE |
| #define LIS3MDL_USE_I2C TRUE |
| #define LIS3MDL_SHARED_I2C FALSE |
| #define LIS3MDL_USE_ADVANCED FALSE |
| #define _lis3msl_methods_alone |
LIS3MDL specific methods.
| #define _lis3mdl_methods |
| #define _lis3mdl_data |
LIS3MDLDriver specific data.
| #define lis3mdlCompassGetAxesNumber | ( | devp | ) |
Return the number of axes of the BaseCompass.
| [in] | devp | pointer to LIS3MDLDriver. |
| #define lis3mdlCompassReadRaw | ( | devp, | |
| axes ) |
Retrieves raw data from the BaseCompass.
| [in] | devp | pointer to BaseCompass 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. |
| #define lis3mdlCompassReadCooked | ( | devp, | |
| axes ) |
Retrieves cooked data from the BaseCompass.
| [in] | devp | pointer to BaseCompass 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. |
| #define lis3mdlCompassSetBias | ( | devp, | |
| bp ) |
Set bias values for the BaseCompass.
| [in] | devp | pointer to BaseCompass interface. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
| #define lis3mdlCompassResetBias | ( | devp | ) |
Reset bias values for the BaseCompass.
| [in] | devp | pointer to LIS3MDLDriver. |
| MSG_OK | if the function succeeded. |
| #define lis3mdlCompassSetSensitivity | ( | devp, | |
| sp ) |
Set sensitivity values for the BaseCompass.
| [in] | devp | pointer to LIS3MDLDriver. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
| #define lis3mdlCompassResetSensitivity | ( | devp | ) |
Reset sensitivity values for the BaseCompass.
| [in] | devp | pointer to LIS3MDLDriver. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
| #define lis3mdlCompassSetFullScale | ( | devp, | |
| fs ) |
Changes the LIS3MDLDriver compass fullscale value.
| [in] | devp | pointer to LIS3MDLDriver. |
| [in] | fs | new fullscale value. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
| typedef struct LIS3MDLDriver LIS3MDLDriver |
| enum lis3mdl_sad_t |
| enum lis3mdl_comp_fs_t |
| enum lis3mdl_comp_odr_t |
LIS3MDL output data rate.
| enum lis3mdl_comp_lp_t |
| enum lis3mdl_comp_md_t |
| enum lis3mdl_comp_omxy_t |
| enum lis3mdl_comp_omz_t |
| enum lis3mdl_temp_t |
| enum lis3mdl_bdu_t |
| enum lis3mdl_end_t |
| enum lis3mdl_state_t |
| msg_t lis3mdlI2CReadRegister | ( | I2CDriver * | i2cp, |
| lis3mdl_sad_t | sad, | ||
| uint8_t | reg, | ||
| uint8_t * | rxbuf, | ||
| size_t | n ) |
Reads registers value using I2C.
| [in] | i2cp | pointer to the I2C interface |
| [in] | sad | slave address without R bit |
| [in] | reg | first sub-register address |
| [out] | rxbuf | pointer to an output buffer |
| [in] | n | number of consecutive register to read |
Definition at line 62 of file lis3mdl.c.
References i2cMasterTransmitTimeout(), LIS3MDL_SUB_MS, and TIME_INFINITE.
Referenced by comp_read_raw(), and comp_set_full_scale().

| msg_t lis3mdlI2CWriteRegister | ( | I2CDriver * | i2cp, |
| lis3mdl_sad_t | sad, | ||
| uint8_t * | txbuf, | ||
| uint8_t | n ) |
Writes a value into a register using I2C.
| [in] | i2cp | pointer to the I2C interface |
| [in] | sad | slave address without R bit |
| [in] | txbuf | buffer containing sub-address value in first position and values to write |
| [in] | n | size of txbuf less one (not considering the first element) |
Definition at line 85 of file lis3mdl.c.
References i2cMasterTransmitTimeout(), LIS3MDL_SUB_MS, and TIME_INFINITE.
Referenced by comp_set_full_scale(), lis3mdlStart(), and lis3mdlStop().

|
static |
Return the number of axes of the BaseCompass.
| [in] | ip | pointer to BaseCompass interface |
Definition at line 102 of file lis3mdl.c.
References LIS3MDL_COMP_NUMBER_OF_AXES, and osalDbgCheck.
|
static |
Retrieves raw data from the BaseCompass.
| [in] | ip | pointer to BaseCompass 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 124 of file lis3mdl.c.
References I2C_READY, i2cAcquireBus(), i2cReleaseBus(), i2cStart(), LIS3MDL_AD_OUT_X_L, LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_READY, lis3mdlI2CReadRegister(), MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
Referenced by comp_read_cooked().

|
static |
Retrieves cooked data from the BaseCompass.
| [in] | ip | pointer to BaseCompass 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 178 of file lis3mdl.c.
References comp_read_raw(), LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_READY, objGetInstance, osalDbgAssert, and osalDbgCheck.

|
static |
Set bias values for the BaseCompass.
| [in] | ip | pointer to BaseCompass interface. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
Definition at line 212 of file lis3mdl.c.
References LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset bias values for the BaseCompass.
| [in] | ip | pointer to BaseCompass interface. |
| MSG_OK | if the function succeeded. |
Definition at line 241 of file lis3mdl.c.
References LIS3MDL_COMP_BIAS, LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Set sensitivity values for the BaseCompass.
| [in] | ip | pointer to BaseCompass interface. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
Definition at line 271 of file lis3mdl.c.
References LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset sensitivity values for the BaseCompass.
| [in] | ip | pointer to BaseCompass interface. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
Definition at line 300 of file lis3mdl.c.
References FALSE, LIS3MDL_COMP_FS_12GA, LIS3MDL_COMP_FS_16GA, LIS3MDL_COMP_FS_4GA, LIS3MDL_COMP_FS_8GA, LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_COMP_SENS_12GA, LIS3MDL_COMP_SENS_16GA, LIS3MDL_COMP_SENS_4GA, LIS3MDL_COMP_SENS_8GA, LIS3MDL_READY, MSG_OK, MSG_RESET, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Changes the LIS3MDLDriver compass fullscale value.
| [in] | devp | pointer to LIS3MDLDriver interface. |
| [in] | fs | new fullscale value. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | otherwise. |
Definition at line 345 of file lis3mdl.c.
References I2C_READY, i2cAcquireBus(), i2cReleaseBus(), i2cStart(), LIS3MDL_AD_CTRL_REG2, LIS3MDL_COMP_12GA, LIS3MDL_COMP_16GA, LIS3MDL_COMP_4GA, LIS3MDL_COMP_8GA, LIS3MDL_COMP_FS_12GA, LIS3MDL_COMP_FS_16GA, LIS3MDL_COMP_FS_4GA, LIS3MDL_COMP_FS_8GA, LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_CTRL_REG2_FS_MASK, LIS3MDL_READY, lis3mdlI2CReadRegister(), lis3mdlI2CWriteRegister(), MSG_OK, MSG_RESET, osalDbgAssert, and osalDbgCheck.

| void lis3mdlObjectInit | ( | LIS3MDLDriver * | devp | ) |
Initializes an instance.
| [out] | devp | pointer to the LIS3MDLDriver object |
Definition at line 450 of file lis3mdl.c.
References LIS3MDLDriver::comp_if, LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_STOP, BaseCompass::vmt, LIS3MDLDriver::vmt, vmt_compass, and vmt_device.
| void lis3mdlStart | ( | LIS3MDLDriver * | devp, |
| const LIS3MDLConfig * | config ) |
Configures and activates LIS3MDL Complex Driver peripheral.
| [in] | devp | pointer to the LIS3MDLDriver object |
| [in] | config | pointer to the LIS3MDLConfig object |
Definition at line 469 of file lis3mdl.c.
References hal_i2c_driver::config, FALSE, i2cAcquireBus(), LIS3MDLConfig::i2cp, i2cReleaseBus(), i2cStart(), LIS3MDL_AD_CTRL_REG1, LIS3MDL_COMP_12GA, LIS3MDL_COMP_16GA, LIS3MDL_COMP_4GA, LIS3MDL_COMP_8GA, LIS3MDL_COMP_BIAS, LIS3MDL_COMP_FS_12GA, LIS3MDL_COMP_FS_16GA, LIS3MDL_COMP_FS_4GA, LIS3MDL_COMP_FS_8GA, LIS3MDL_COMP_NUMBER_OF_AXES, LIS3MDL_COMP_SENS_12GA, LIS3MDL_COMP_SENS_16GA, LIS3MDL_COMP_SENS_4GA, LIS3MDL_COMP_SENS_8GA, LIS3MDL_CTRL_REG1_OM0, LIS3MDL_CTRL_REG1_OM1, LIS3MDL_READY, LIS3MDL_STOP, lis3mdlI2CWriteRegister(), osalDbgAssert, osalDbgCheck, and osalThreadSleepMilliseconds.

| void lis3mdlStop | ( | LIS3MDLDriver * | devp | ) |
Deactivates the LIS3MDL Complex Driver peripheral.
| [in] | devp | pointer to the LIS3MDLDriver object |
Definition at line 602 of file lis3mdl.c.
References i2cAcquireBus(), i2cReleaseBus(), i2cStart(), i2cStop(), LIS3MDL_AD_CTRL_REG3, LIS3MDL_CTRL_REG3_MD0, LIS3MDL_CTRL_REG3_MD1, LIS3MDL_READY, LIS3MDL_STOP, lis3mdlI2CWriteRegister(), osalDbgAssert, and osalDbgCheck.

|
static |
|
static |
Definition at line 433 of file lis3mdl.c.
Referenced by lis3mdlObjectInit(), lsm303agrObjectInit(), and lsm303dlhcObjectInit().