STSW-STLKT01
|
This file provides the Accelerometer driver for the Sensor Tile board. More...
#include "SensorTile_accelero.h"
Go to the source code of this file.
Functions | |
static DrvStatusTypeDef | BSP_LSM6DSM_ACCELERO_Init (void **handle) |
static DrvStatusTypeDef | BSP_LSM303AGR_ACCELERO_Init (void **handle) |
DrvStatusTypeDef | BSP_ACCELERO_Init (ACCELERO_ID_t id, void **handle) |
Initialize an accelerometer sensor. More... | |
DrvStatusTypeDef | BSP_ACCELERO_DeInit (void **handle) |
Deinitialize accelerometer sensor. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Sensor_Enable (void *handle) |
Enable accelerometer sensor. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Sensor_Disable (void *handle) |
Disable accelerometer sensor. More... | |
DrvStatusTypeDef | BSP_ACCELERO_IsInitialized (void *handle, uint8_t *status) |
Check if the accelerometer sensor is initialized. More... | |
DrvStatusTypeDef | BSP_ACCELERO_IsEnabled (void *handle, uint8_t *status) |
Check if the accelerometer sensor is enabled. More... | |
DrvStatusTypeDef | BSP_ACCELERO_IsCombo (void *handle, uint8_t *status) |
Check if the accelerometer sensor is combo. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Instance (void *handle, uint8_t *instance) |
Get the accelerometer sensor instance. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_WhoAmI (void *handle, uint8_t *who_am_i) |
Get the WHO_AM_I ID of the accelerometer sensor. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Check_WhoAmI (void *handle) |
Check the WHO_AM_I ID of the accelerometer sensor. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Axes (void *handle, SensorAxes_t *acceleration) |
Get the accelerometer sensor axes. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_AxesRaw (void *handle, SensorAxesRaw_t *value) |
Get the accelerometer sensor raw axes. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Sensitivity (void *handle, float *sensitivity) |
Get the accelerometer sensor sensitivity. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_ODR (void *handle, float *odr) |
Get the accelerometer sensor output data rate. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_ODR (void *handle, SensorOdr_t odr) |
Set the accelerometer sensor output data rate. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_ODR_Value (void *handle, float odr) |
Set the accelerometer sensor output data rate. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_FS (void *handle, float *fullScale) |
Get the accelerometer sensor full scale. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_FS (void *handle, SensorFs_t fullScale) |
Set the accelerometer sensor full scale. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_FS_Value (void *handle, float fullScale) |
Set the accelerometer sensor full scale. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Axes_Status (void *handle, uint8_t *xyz_enabled) |
Get the accelerometer sensor axes status. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Axes_Status (void *handle, uint8_t *enable_xyz) |
Set the enabled/disabled status of the accelerometer sensor axes. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Read_Reg (void *handle, uint8_t reg, uint8_t *data) |
Read the data from register. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Write_Reg (void *handle, uint8_t reg, uint8_t data) |
Write the data to register. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_DRDY_Status (void *handle, uint8_t *status) |
Get accelerometer data ready status. More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_Free_Fall_Detection_Ext (void *handle) |
Enable the free fall detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_Free_Fall_Detection_Ext (void *handle) |
Disable the free fall detection (available only for LSM6DS3 sensor) More... | |
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 LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Free_Fall_Threshold_Ext (void *handle, LSM6DSM_ACC_GYRO_FF_THS_t thr) |
Set the free fall detection threshold (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_Pedometer_Ext (void *handle) |
Enable the pedometer feature (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_Pedometer_Ext (void *handle) |
Disable the pedometer feature (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Pedometer_Status_Ext (void *handle, uint8_t *status) |
Get the pedometer status (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Step_Count_Ext (void *handle, uint16_t *step_count) |
Get the step counter (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Reset_Step_Counter_Ext (void *handle) |
Reset of the step counter (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Pedometer_Threshold_Ext (void *handle, uint8_t thr) |
Set the pedometer threshold (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_Tilt_Detection_Ext (void *handle) |
Enable the tilt detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_Tilt_Detection_Ext (void *handle) |
Disable the tilt detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Tilt_Detection_Status_Ext (void *handle, uint8_t *status) |
Get the tilt detection status (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_Wake_Up_Detection_Ext (void *handle) |
Enable the wake up detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_Wake_Up_Detection_Ext (void *handle) |
Disable the wake up detection (available only for LSM6DS3 sensor) More... | |
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 LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Wake_Up_Threshold_Ext (void *handle, uint8_t thr) |
Set the wake up threshold (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_Single_Tap_Detection_Ext (void *handle) |
Enable the single tap detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_Single_Tap_Detection_Ext (void *handle) |
Disable the single tap detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Single_Tap_Detection_Status_Ext (void *handle, uint8_t *status) |
Get the single tap detection status (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_Double_Tap_Detection_Ext (void *handle) |
Enable the double tap detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_Double_Tap_Detection_Ext (void *handle) |
Disable the double tap detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_Double_Tap_Detection_Status_Ext (void *handle, uint8_t *status) |
Get the double tap detection status (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Tap_Threshold_Ext (void *handle, uint8_t thr) |
Set the tap threshold (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Tap_Shock_Time_Ext (void *handle, uint8_t time) |
Set the tap shock time window (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Tap_Quiet_Time_Ext (void *handle, uint8_t time) |
Set the tap quiet time window (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Set_Tap_Duration_Time_Ext (void *handle, uint8_t time) |
Set the tap duration of the time window (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Enable_6D_Orientation_Ext (void *handle) |
Enable the 6D orientation detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Disable_6D_Orientation_Ext (void *handle) |
Disable the 6D orientation detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_Status_Ext (void *handle, uint8_t *status) |
Get the status of the 6D orientation detection (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_XL_Ext (void *handle, uint8_t *xl) |
Get the 6D orientation XL axis (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_XH_Ext (void *handle, uint8_t *xh) |
Get the 6D orientation XH axis (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_YL_Ext (void *handle, uint8_t *yl) |
Get the 6D orientation YL axis (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_YH_Ext (void *handle, uint8_t *yh) |
Get the 6D orientation YH axis (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_ZL_Ext (void *handle, uint8_t *zl) |
Get the 6D orientation ZL axis (available only for LSM6DS3 sensor) More... | |
DrvStatusTypeDef | BSP_ACCELERO_Get_6D_Orientation_ZH_Ext (void *handle, uint8_t *zh) |
Get the 6D orientation ZH axis (available only for LSM6DS3 sensor) More... | |
Detailed Description
This file provides the Accelerometer driver for the Sensor Tile board.
- Author
- Central Labs
- Version
- V1.3.1
- Date
- 27-Apr-2017
- Attention
© COPYRIGHT(c) 2015 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- 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.
- 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 SensorTile_accelero.c.
Generated by
