test sending sensor results over lora radio. Accelerometer and temp/pressure.
This file provides a set of high-level functions needed to manage the LIS2DH12 sensor. More...
Go to the source code of this file.
Functions | |
static DrvStatusTypeDef | LIS2DH12_Get_Axes_Raw_Data (DrvContextTypeDef *handle, int16_t *pData) |
Get the LIS2DH12 accelerometer sensor raw axes data. | |
static DrvStatusTypeDef | LIS2DH12_Set_ODR_When_Enabled (DrvContextTypeDef *handle, SensorOdr_t odr) |
Set the LIS2DH12 accelerometer sensor output data rate when enabled. | |
static DrvStatusTypeDef | LIS2DH12_Set_ODR_When_Disabled (DrvContextTypeDef *handle, SensorOdr_t odr) |
Set the LIS2DH12 accelerometer sensor output data rate when disabled. | |
static DrvStatusTypeDef | LIS2DH12_Set_ODR_Value_When_Enabled (DrvContextTypeDef *handle, float odr) |
Set the LIS2DH12 accelerometer sensor output data rate when enabled. | |
static DrvStatusTypeDef | LIS2DH12_Set_ODR_Value_When_Disabled (DrvContextTypeDef *handle, float odr) |
Set the LIS2DH12 accelerometer sensor output data rate when disabled. | |
static DrvStatusTypeDef | LIS2DH12_Init (DrvContextTypeDef *handle) |
Initialize the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_DeInit (DrvContextTypeDef *handle) |
Deinitialize the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Sensor_Enable (DrvContextTypeDef *handle) |
Enable the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Sensor_Disable (DrvContextTypeDef *handle) |
Disable the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Get_WhoAmI (DrvContextTypeDef *handle, uint8_t *who_am_i) |
Get the WHO_AM_I ID of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Check_WhoAmI (DrvContextTypeDef *handle) |
Check the WHO_AM_I ID of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Get_Axes (DrvContextTypeDef *handle, SensorAxes_t *acceleration) |
Get the LIS2DH12 accelerometer sensor axes. | |
static DrvStatusTypeDef | LIS2DH12_Get_AxesRaw (DrvContextTypeDef *handle, SensorAxesRaw_t *value) |
Get the LIS2DH12 accelerometer sensor raw axes. | |
static DrvStatusTypeDef | LIS2DH12_Get_Sensitivity (DrvContextTypeDef *handle, float *sensitivity) |
Get the LIS2DH12 accelerometer sensor sensitivity. | |
static DrvStatusTypeDef | LIS2DH12_Get_ODR (DrvContextTypeDef *handle, float *odr) |
Get the LIS2DH12 accelerometer sensor output data rate. | |
static DrvStatusTypeDef | LIS2DH12_Set_ODR (DrvContextTypeDef *handle, SensorOdr_t odr) |
Set the LIS2DH12 accelerometer sensor output data rate. | |
static DrvStatusTypeDef | LIS2DH12_Set_ODR_Value (DrvContextTypeDef *handle, float odr) |
Set the LIS2DH12 accelerometer sensor output data rate. | |
static DrvStatusTypeDef | LIS2DH12_Get_FS (DrvContextTypeDef *handle, float *fullScale) |
Get the LIS2DH12 accelerometer sensor full scale. | |
static DrvStatusTypeDef | LIS2DH12_Set_FS (DrvContextTypeDef *handle, SensorFs_t fullScale) |
Set the LIS2DH12 accelerometer sensor full scale. | |
static DrvStatusTypeDef | LIS2DH12_Set_FS_Value (DrvContextTypeDef *handle, float fullScale) |
Set the LIS2DH12 accelerometer sensor full scale. | |
static DrvStatusTypeDef | LIS2DH12_Get_Axes_Status (DrvContextTypeDef *handle, uint8_t *xyz_enabled) |
Get the LIS2DH12 accelerometer sensor axes enabled/disabled status. | |
static DrvStatusTypeDef | LIS2DH12_Set_Axes_Status (DrvContextTypeDef *handle, uint8_t *enable_xyz) |
Set the LIS2DH12 accelerometer sensor axes enabled/disabled. | |
static DrvStatusTypeDef | LIS2DH12_Read_Reg (DrvContextTypeDef *handle, uint8_t reg, uint8_t *data) |
Read the data from register. | |
static DrvStatusTypeDef | LIS2DH12_Write_Reg (DrvContextTypeDef *handle, uint8_t reg, uint8_t data) |
Write the data to register. | |
static DrvStatusTypeDef | LIS2DH12_Get_DRDY_Status (DrvContextTypeDef *handle, uint8_t *status) |
Get data ready status. | |
static DrvStatusTypeDef | LIS2DH12_FIFO_Get_Overrun_Status (DrvContextTypeDef *handle, uint8_t *status) |
Get status of FIFO_OVR flag. | |
static DrvStatusTypeDef | LIS2DH12_FIFO_Get_Num_Of_Samples (DrvContextTypeDef *handle, uint16_t *nSamples) |
Get number of unread FIFO samples. | |
static DrvStatusTypeDef | LIS2DH12_FIFO_Set_Mode (DrvContextTypeDef *handle, uint8_t mode) |
Set FIFO mode. | |
static DrvStatusTypeDef | LIS2DH12_FIFO_Set_INT1_FIFO_Overrun (DrvContextTypeDef *handle, uint8_t status) |
Set FIFO_OVR interrupt on INT1 pin. | |
static DrvStatusTypeDef | LIS2DH12_Get_AxesSuperRaw (DrvContextTypeDef *handle, int16_t *pData, ACTIVE_AXIS_t axl_axis) |
Get the LIS2DH12 accelerometer sensor super raw axes. | |
static DrvStatusTypeDef | LIS2DH12_Get_OpMode (DrvContextTypeDef *handle, OP_MODE_t *axl_opMode) |
Get the Operating Mode of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Set_OpMode (DrvContextTypeDef *handle, OP_MODE_t axl_opMode) |
Set the Operating Mode of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Get_Active_Axis (DrvContextTypeDef *handle, ACTIVE_AXIS_t *axl_axis) |
Get the active axis of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Set_Active_Axis (DrvContextTypeDef *handle, ACTIVE_AXIS_t axl_axis) |
Set the active axis of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Enable_HP_Filter (DrvContextTypeDef *handle) |
Enable the HP Filter of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Disable_HP_Filter (DrvContextTypeDef *handle) |
Disable the HP Filter of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_ClearDRDY (DrvContextTypeDef *handle, ACTIVE_AXIS_t axl_axis) |
Clear DRDY of the LIS2DH12 sensor. | |
static DrvStatusTypeDef | LIS2DH12_Set_INT1_DRDY (DrvContextTypeDef *handle, INT1_DRDY_CONFIG_t axl_drdyStatus) |
Set DRDY enable/disable of the LIS2DH12 sensor on INT1. | |
Variables | |
LIS2DH12_ExtDrv_t | LIS2DH12_ExtDrv |
LIS2DH12 accelero extended features driver internal structure. | |
ACCELERO_Drv_t | LIS2DH12_Drv |
LIS2DH12 accelero driver structure. |
Detailed Description
This file provides a set of high-level functions needed to manage the LIS2DH12 sensor.
- Attention:
© COPYRIGHT(c) 2018 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file LIS2DH12_ACC_driver_HL.c.
Generated on Tue Jul 12 2022 16:29:50 by 1.7.2