test sending sensor results over lora radio. Accelerometer and temp/pressure.

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

x_nucleo_iks01a2_accelero.h File Reference

x_nucleo_iks01a2_accelero.h File Reference

This file contains definitions for the x_nucleo_iks01a2_accelero.c. More...

Go to the source code of this file.

Functions

DrvStatusTypeDef BSP_ACCELERO_Init (ACCELERO_ID_t id, void **handle)
 Initialize an accelerometer sensor.
DrvStatusTypeDef BSP_ACCELERO_DeInit (void **handle)
 Deinitialize accelerometer sensor.
DrvStatusTypeDef BSP_ACCELERO_Sensor_Enable (void *handle)
 Enable accelerometer sensor.
DrvStatusTypeDef BSP_ACCELERO_Sensor_Disable (void *handle)
 Disable accelerometer sensor.
DrvStatusTypeDef BSP_ACCELERO_IsInitialized (void *handle, uint8_t *status)
 Check if the accelerometer sensor is initialized.
DrvStatusTypeDef BSP_ACCELERO_IsEnabled (void *handle, uint8_t *status)
 Check if the accelerometer sensor is enabled.
DrvStatusTypeDef BSP_ACCELERO_IsCombo (void *handle, uint8_t *status)
 Check if the accelerometer sensor is combo.
DrvStatusTypeDef BSP_ACCELERO_Get_Instance (void *handle, uint8_t *instance)
 Get the accelerometer sensor instance.
DrvStatusTypeDef BSP_ACCELERO_Get_WhoAmI (void *handle, uint8_t *who_am_i)
 Get the WHO_AM_I ID of the accelerometer sensor.
DrvStatusTypeDef BSP_ACCELERO_Check_WhoAmI (void *handle)
 Check the WHO_AM_I ID of the accelerometer sensor.
DrvStatusTypeDef BSP_ACCELERO_Get_Axes (void *handle, SensorAxes_t *acceleration)
 Get the accelerometer sensor axes.
DrvStatusTypeDef BSP_ACCELERO_Get_AxesRaw (void *handle, SensorAxesRaw_t *value)
 Get the accelerometer sensor raw axes.
DrvStatusTypeDef BSP_ACCELERO_Get_Sensitivity (void *handle, float *sensitivity)
 Get the accelerometer sensor sensitivity.
DrvStatusTypeDef BSP_ACCELERO_Get_ODR (void *handle, float *odr)
 Get the accelerometer sensor output data rate.
DrvStatusTypeDef BSP_ACCELERO_Set_ODR (void *handle, SensorOdr_t odr)
 Set the accelerometer sensor output data rate.
DrvStatusTypeDef BSP_ACCELERO_Set_ODR_Value (void *handle, float odr)
 Set the accelerometer sensor output data rate.
DrvStatusTypeDef BSP_ACCELERO_Get_FS (void *handle, float *fullScale)
 Get the accelerometer sensor full scale.
DrvStatusTypeDef BSP_ACCELERO_Set_FS (void *handle, SensorFs_t fullScale)
 Set the accelerometer sensor full scale.
DrvStatusTypeDef BSP_ACCELERO_Set_FS_Value (void *handle, float fullScale)
 Set the accelerometer sensor full scale.
DrvStatusTypeDef BSP_ACCELERO_Get_Axes_Status (void *handle, uint8_t *xyz_enabled)
 Get the accelerometer sensor axes status.
DrvStatusTypeDef BSP_ACCELERO_Set_Axes_Status (void *handle, uint8_t *enable_xyz)
 Set the enabled/disabled status of the accelerometer sensor axes.
DrvStatusTypeDef BSP_ACCELERO_Read_Reg (void *handle, uint8_t reg, uint8_t *data)
 Read the data from register.
DrvStatusTypeDef BSP_ACCELERO_Write_Reg (void *handle, uint8_t reg, uint8_t data)
 Write the data to register.
DrvStatusTypeDef BSP_ACCELERO_Get_DRDY_Status (void *handle, uint8_t *status)
 Get accelerometer data ready status.
DrvStatusTypeDef BSP_ACCELERO_Enable_Free_Fall_Detection_Ext (void *handle, SensorIntPin_t int_pin)
 Enable the free fall detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_Free_Fall_Detection_Ext (void *handle)
 Disable the free fall detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Free_Fall_Detection_Status_Ext (void *handle, uint8_t *status)
 Get the status of the free fall detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Free_Fall_Threshold_Ext (void *handle, uint8_t thr)
 Set the free fall detection threshold (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Enable_Pedometer_Ext (void *handle)
 Enable the pedometer feature (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_Pedometer_Ext (void *handle)
 Disable the pedometer feature (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Pedometer_Status_Ext (void *handle, uint8_t *status)
 Get the pedometer status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Step_Count_Ext (void *handle, uint16_t *step_count)
 Get the step counter (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Reset_Step_Counter_Ext (void *handle)
 Reset of the step counter (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Pedometer_Threshold_Ext (void *handle, uint8_t thr)
 Set the pedometer threshold (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Enable_Tilt_Detection_Ext (void *handle, SensorIntPin_t int_pin)
 Enable the tilt detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_Tilt_Detection_Ext (void *handle)
 Disable the tilt detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Tilt_Detection_Status_Ext (void *handle, uint8_t *status)
 Get the tilt detection status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Enable_Wake_Up_Detection_Ext (void *handle, SensorIntPin_t int_pin)
 Enable the wake up detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_Wake_Up_Detection_Ext (void *handle)
 Disable the wake up detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Wake_Up_Detection_Status_Ext (void *handle, uint8_t *status)
 Get the status of the wake up detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Wake_Up_Threshold_Ext (void *handle, uint8_t thr)
 Set the wake up threshold (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Enable_Single_Tap_Detection_Ext (void *handle, SensorIntPin_t int_pin)
 Enable the single tap detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_Single_Tap_Detection_Ext (void *handle)
 Disable the single tap detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Single_Tap_Detection_Status_Ext (void *handle, uint8_t *status)
 Get the single tap detection status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Enable_Double_Tap_Detection_Ext (void *handle, SensorIntPin_t int_pin)
 Enable the double tap detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_Double_Tap_Detection_Ext (void *handle)
 Disable the double tap detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Double_Tap_Detection_Status_Ext (void *handle, uint8_t *status)
 Get the double tap detection status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Threshold_Ext (void *handle, uint8_t thr)
 Set the tap threshold (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Shock_Time_Ext (void *handle, uint8_t time)
 Set the tap shock time window (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Quiet_Time_Ext (void *handle, uint8_t time)
 Set the tap quiet time window (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Duration_Time_Ext (void *handle, uint8_t time)
 Set the tap duration of the time window (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Enable_6D_Orientation_Ext (void *handle, SensorIntPin_t int_pin)
 Enable the 6D orientation detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Disable_6D_Orientation_Ext (void *handle)
 Disable the 6D orientation detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_Status_Ext (void *handle, uint8_t *status)
 Get the status of the 6D orientation detection (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_XL_Ext (void *handle, uint8_t *xl)
 Get the 6D orientation XL axis (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_XH_Ext (void *handle, uint8_t *xh)
 Get the 6D orientation XH axis (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_YL_Ext (void *handle, uint8_t *yl)
 Get the 6D orientation YL axis (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_YH_Ext (void *handle, uint8_t *yh)
 Get the 6D orientation YH axis (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_ZL_Ext (void *handle, uint8_t *zl)
 Get the 6D orientation ZL axis (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_ZH_Ext (void *handle, uint8_t *zh)
 Get the 6D orientation ZH axis (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_Get_Event_Status_Ext (void *handle, ACCELERO_Event_Status_t *status)
 Get the status of all hardware events (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_ODR_Value_Ext (void *handle, float odr)
 Set FIFO output data rate (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Full_Status_Ext (void *handle, uint8_t *status)
 Get FIFO full status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Empty_Status_Ext (void *handle, uint8_t *status)
 Get FIFO empty status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Overrun_Status_Ext (void *handle, uint8_t *status)
 Get FIFO_OVR bit status (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Pattern_Ext (void *handle, uint16_t *pattern)
 Get FIFO pattern (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Data_Ext (void *handle, uint8_t *aData)
 Get FIFO data (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Num_Of_Samples_Ext (void *handle, uint16_t *nSamples)
 Get number of unread FIFO samples (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Decimation_Ext (void *handle, uint8_t decimation)
 Set FIFO decimation for accelerometer (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Axis_Ext (void *handle, int32_t *acceleration)
 Get single accelero axis from the FIFO (available only for LSM6DSL sensor)
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Mode_Ext (void *handle, uint8_t mode)
 Set FIFO mode.
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_INT1_FIFO_Full_Ext (void *handle, uint8_t status)
 Set FIFO_FULL interrupt on INT1 pin.
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_INT1_FIFO_Overrun_Ext (void *handle, uint8_t status)
 Set FIFO_OVR interrupt on INT1 pin.
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Watermark_Level_Ext (void *handle, uint16_t watermark)
 Set FIFO watermark level.
DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Stop_On_Fth_Ext (void *handle, uint8_t status)
 Set FIFO to stop on FTH interrupt.
DrvStatusTypeDef BSP_ACCELERO_Set_Interrupt_Latch_Ext (void *handle, uint8_t status)
 Set interrupt latch.
DrvStatusTypeDef BSP_ACCELERO_Set_SelfTest_Ext (void *handle, uint8_t status)
 Set accelero self-test.
DrvStatusTypeDef BSP_ACCELERO_Get_SuperRawAxes_Ext (void *handle, int16_t *acceleration, ACTIVE_AXIS_t axis)
 Get the accelerometer sensor super raw data from one axis.
DrvStatusTypeDef BSP_ACCELERO_Get_OpMode_Ext (void *handle, OP_MODE_t *opMode)
 Get the accelerometer sensor operating mode.
DrvStatusTypeDef BSP_ACCELERO_Set_OpMode_Ext (void *handle, OP_MODE_t opMode)
 Set the accelerometer sensor operating mode.
DrvStatusTypeDef BSP_ACCELERO_Get_Active_Axis_Ext (void *handle, ACTIVE_AXIS_t *axis)
 Set the accelerometer sensor active axis.
DrvStatusTypeDef BSP_ACCELERO_Set_Active_Axis_Ext (void *handle, ACTIVE_AXIS_t axis)
 Set the accelerometer sensor active axis.
DrvStatusTypeDef BSP_ACCELERO_Enable_HP_Filter_Ext (void *handle)
 Enable the accelerometer sensor HP Filter.
DrvStatusTypeDef BSP_ACCELERO_Disable_HP_Filter_Ext (void *handle)
 Disable the accelerometer sensor HP Filter.
DrvStatusTypeDef BSP_ACCELERO_ClearDRDY_Ext (void *handle, ACTIVE_AXIS_t axisActive)
 Clear the accelerometer sensor DRDY.
DrvStatusTypeDef BSP_ACCELERO_Set_INT1_DRDY_Ext (void *handle, INT1_DRDY_CONFIG_t drdyStatus)
 Set the accelerometer sensor DRDY on INT1.
DrvStatusTypeDef BSP_LIS2DH12_AVAIL_Ext (void **handle)
 Check if LIS2DH12 sensor is available.

Detailed Description

This file contains definitions for the x_nucleo_iks01a2_accelero.c.

Author:
MEMS Application Team
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 x_nucleo_iks01a2_accelero.h.