STSW-STLKT01
|
Functions | |
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
Function Documentation
◆ BSP_ACCELERO_Check_WhoAmI()
DrvStatusTypeDef BSP_ACCELERO_Check_WhoAmI | ( | void * | handle | ) |
Check the WHO_AM_I ID of the accelerometer sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 530 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_DeInit()
DrvStatusTypeDef BSP_ACCELERO_DeInit | ( | void ** | handle | ) |
Deinitialize accelerometer sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 282 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_6D_Orientation_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_6D_Orientation_Ext | ( | void * | handle | ) |
Disable the 6D orientation detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2416 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_Double_Tap_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_Double_Tap_Detection_Ext | ( | void * | handle | ) |
Disable the double tap detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2091 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_Free_Fall_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_Free_Fall_Detection_Ext | ( | void * | handle | ) |
Disable the free fall detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1135 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_Pedometer_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_Pedometer_Ext | ( | void * | handle | ) |
Disable the pedometer feature (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1323 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_Single_Tap_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_Single_Tap_Detection_Ext | ( | void * | handle | ) |
Disable the single tap detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1949 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_Tilt_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_Tilt_Detection_Ext | ( | void * | handle | ) |
Disable the tilt detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1619 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Disable_Wake_Up_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Disable_Wake_Up_Detection_Ext | ( | void * | handle | ) |
Disable the wake up detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1761 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_6D_Orientation_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_6D_Orientation_Ext | ( | void * | handle | ) |
Enable the 6D orientation detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2371 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_Double_Tap_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_Double_Tap_Detection_Ext | ( | void * | handle | ) |
Enable the double tap detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2046 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_Free_Fall_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_Free_Fall_Detection_Ext | ( | void * | handle | ) |
Enable the free fall detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1090 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_Pedometer_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_Pedometer_Ext | ( | void * | handle | ) |
Enable the pedometer feature (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 26Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1278 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_Single_Tap_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_Single_Tap_Detection_Ext | ( | void * | handle | ) |
Enable the single tap detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1904 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_Tilt_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_Tilt_Detection_Ext | ( | void * | handle | ) |
Enable the tilt detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 26Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1574 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Enable_Wake_Up_Detection_Ext()
DrvStatusTypeDef BSP_ACCELERO_Enable_Wake_Up_Detection_Ext | ( | void * | handle | ) |
Enable the wake up detection (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Note
- This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1716 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_Status_Ext()
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)
- Parameters
-
handle the device handle status the pointer to the status of the 6D orientation detection: 0 means no detection, 1 means detection happened
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2462 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_XH_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_XH_Ext | ( | void * | handle, |
uint8_t * | xh | ||
) |
Get the 6D orientation XH axis (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle xh the pointer to the 6D orientation XH axis
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2564 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_XL_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_XL_Ext | ( | void * | handle, |
uint8_t * | xl | ||
) |
Get the 6D orientation XL axis (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle xl the pointer to the 6D orientation XL axis
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2513 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_YH_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_YH_Ext | ( | void * | handle, |
uint8_t * | yh | ||
) |
Get the 6D orientation YH axis (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle yh the pointer to the 6D orientation YH axis
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2666 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_YL_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_YL_Ext | ( | void * | handle, |
uint8_t * | yl | ||
) |
Get the 6D orientation YL axis (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle yl the pointer to the 6D orientation YL axis
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2615 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_ZH_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_ZH_Ext | ( | void * | handle, |
uint8_t * | zh | ||
) |
Get the 6D orientation ZH axis (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle zh the pointer to the 6D orientation ZH axis
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2768 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_6D_Orientation_ZL_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_ZL_Ext | ( | void * | handle, |
uint8_t * | zl | ||
) |
Get the 6D orientation ZL axis (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle zl the pointer to the 6D orientation ZL axis
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2717 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Axes()
DrvStatusTypeDef BSP_ACCELERO_Get_Axes | ( | void * | handle, |
SensorAxes_t * | acceleration | ||
) |
Get the accelerometer sensor axes.
- Parameters
-
handle the device handle acceleration pointer where the values of the axes are written [mg]
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 565 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Axes_Status()
DrvStatusTypeDef BSP_ACCELERO_Get_Axes_Status | ( | void * | handle, |
uint8_t * | xyz_enabled | ||
) |
Get the accelerometer sensor axes status.
- Parameters
-
handle the device handle xyz_enabled the pointer to the axes enabled/disabled status
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 899 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_AxesRaw()
DrvStatusTypeDef BSP_ACCELERO_Get_AxesRaw | ( | void * | handle, |
SensorAxesRaw_t * | value | ||
) |
Get the accelerometer sensor raw axes.
- Parameters
-
handle the device handle value pointer where the raw values of the axes are written
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 605 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Double_Tap_Detection_Status_Ext()
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)
- Parameters
-
handle the device handle status the pointer to the double tap detection status: 0 means no double tap detected, 1 means double tap detected
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2137 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_DRDY_Status()
DrvStatusTypeDef BSP_ACCELERO_Get_DRDY_Status | ( | void * | handle, |
uint8_t * | status | ||
) |
Get accelerometer data ready status.
- Parameters
-
handle the device handle status the data ready status
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1056 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Free_Fall_Detection_Status_Ext()
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)
- Parameters
-
handle the device handle status the pointer to the status of free fall detection: 0 means no detection, 1 means detection happened
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1181 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_FS()
DrvStatusTypeDef BSP_ACCELERO_Get_FS | ( | void * | handle, |
float * | fullScale | ||
) |
Get the accelerometer sensor full scale.
- Parameters
-
handle the device handle fullScale pointer where the full scale is written
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 791 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Instance()
DrvStatusTypeDef BSP_ACCELERO_Get_Instance | ( | void * | handle, |
uint8_t * | instance | ||
) |
Get the accelerometer sensor instance.
- Parameters
-
handle the device handle instance the pointer to the device instance
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 468 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_ODR()
DrvStatusTypeDef BSP_ACCELERO_Get_ODR | ( | void * | handle, |
float * | odr | ||
) |
Get the accelerometer sensor output data rate.
- Parameters
-
handle the device handle odr pointer where the output data rate is written
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 683 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Pedometer_Status_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_Pedometer_Status_Ext | ( | void * | handle, |
uint8_t * | status | ||
) |
Get the pedometer status (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle status the pointer to the pedometer status: 0 means no step detected, 1 means step detected
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1369 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Sensitivity()
DrvStatusTypeDef BSP_ACCELERO_Get_Sensitivity | ( | void * | handle, |
float * | sensitivity | ||
) |
Get the accelerometer sensor sensitivity.
- Parameters
-
handle the device handle sensitivity pointer where the sensitivity value is written [mg/LSB]
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 643 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Single_Tap_Detection_Status_Ext()
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)
- Parameters
-
handle the device handle status the pointer to the single tap detection status: 0 means no single tap detected, 1 means single tap detected
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1995 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Step_Count_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_Step_Count_Ext | ( | void * | handle, |
uint16_t * | step_count | ||
) |
Get the step counter (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle step_count the pointer to the step counter
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1420 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Tilt_Detection_Status_Ext()
DrvStatusTypeDef BSP_ACCELERO_Get_Tilt_Detection_Status_Ext | ( | void * | handle, |
uint8_t * | status | ||
) |
Get the tilt detection status (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle status the pointer to the tilt detection status: 0 means no tilt detected, 1 means tilt detected
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1665 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_Wake_Up_Detection_Status_Ext()
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)
- Parameters
-
handle the device handle status the pointer to the status of the wake up detection: 0 means no detection, 1 means detection happened
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1807 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Get_WhoAmI()
DrvStatusTypeDef BSP_ACCELERO_Get_WhoAmI | ( | void * | handle, |
uint8_t * | who_am_i | ||
) |
Get the WHO_AM_I ID of the accelerometer sensor.
- Parameters
-
handle the device handle who_am_i pointer to the value of WHO_AM_I register
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 496 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Init()
DrvStatusTypeDef BSP_ACCELERO_Init | ( | ACCELERO_ID_t | id, |
void ** | handle | ||
) |
Initialize an accelerometer sensor.
- Parameters
-
id the accelerometer sensor identifier handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 93 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_IsCombo()
DrvStatusTypeDef BSP_ACCELERO_IsCombo | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the accelerometer sensor is combo.
- Parameters
-
handle the device handle status the pointer to the combo status
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 441 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_IsEnabled()
DrvStatusTypeDef BSP_ACCELERO_IsEnabled | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the accelerometer sensor is enabled.
- Parameters
-
handle the device handle status the pointer to the enable status
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 414 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_IsInitialized()
DrvStatusTypeDef BSP_ACCELERO_IsInitialized | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the accelerometer sensor is initialized.
- Parameters
-
handle the device handle status the pointer to the initialization status
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 387 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Read_Reg()
DrvStatusTypeDef BSP_ACCELERO_Read_Reg | ( | void * | handle, |
uint8_t | reg, | ||
uint8_t * | data | ||
) |
Read the data from register.
- Parameters
-
handle the device handle reg register address data register data
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 979 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Reset_Step_Counter_Ext()
DrvStatusTypeDef BSP_ACCELERO_Reset_Step_Counter_Ext | ( | void * | handle | ) |
Reset of the step counter (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1470 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Sensor_Disable()
DrvStatusTypeDef BSP_ACCELERO_Sensor_Disable | ( | void * | handle | ) |
Disable accelerometer sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 353 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Sensor_Enable()
DrvStatusTypeDef BSP_ACCELERO_Sensor_Enable | ( | void * | handle | ) |
Enable accelerometer sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 319 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Axes_Status()
DrvStatusTypeDef BSP_ACCELERO_Set_Axes_Status | ( | void * | handle, |
uint8_t * | enable_xyz | ||
) |
Set the enabled/disabled status of the accelerometer sensor axes.
- Parameters
-
handle the device handle enable_xyz vector of the axes enabled/disabled status
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 939 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Free_Fall_Threshold_Ext()
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)
- Parameters
-
handle the device handle thr the threshold to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1232 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_FS()
DrvStatusTypeDef BSP_ACCELERO_Set_FS | ( | void * | handle, |
SensorFs_t | fullScale | ||
) |
Set the accelerometer sensor full scale.
- Parameters
-
handle the device handle fullScale the functional full scale to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 831 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_FS_Value()
DrvStatusTypeDef BSP_ACCELERO_Set_FS_Value | ( | void * | handle, |
float | fullScale | ||
) |
Set the accelerometer sensor full scale.
- Parameters
-
handle the device handle fullScale the full scale value to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 865 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_ODR()
DrvStatusTypeDef BSP_ACCELERO_Set_ODR | ( | void * | handle, |
SensorOdr_t | odr | ||
) |
Set the accelerometer sensor output data rate.
- Parameters
-
handle the device handle odr the functional output data rate to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 723 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_ODR_Value()
DrvStatusTypeDef BSP_ACCELERO_Set_ODR_Value | ( | void * | handle, |
float | odr | ||
) |
Set the accelerometer sensor output data rate.
- Parameters
-
handle the device handle odr the output data rate value to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 757 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Pedometer_Threshold_Ext()
DrvStatusTypeDef BSP_ACCELERO_Set_Pedometer_Threshold_Ext | ( | void * | handle, |
uint8_t | thr | ||
) |
Set the pedometer threshold (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle thr the threshold to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1528 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Tap_Duration_Time_Ext()
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)
- Parameters
-
handle the device handle time the duration of the time window to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2325 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Tap_Quiet_Time_Ext()
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Quiet_Time_Ext | ( | void * | handle, |
uint8_t | time | ||
) |
Set the tap quiet time window (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle time the quiet time window to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2279 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Tap_Shock_Time_Ext()
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Shock_Time_Ext | ( | void * | handle, |
uint8_t | time | ||
) |
Set the tap shock time window (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle time the shock time window to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2233 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Tap_Threshold_Ext()
DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Threshold_Ext | ( | void * | handle, |
uint8_t | thr | ||
) |
Set the tap threshold (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle thr the threshold to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 2187 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Set_Wake_Up_Threshold_Ext()
DrvStatusTypeDef BSP_ACCELERO_Set_Wake_Up_Threshold_Ext | ( | void * | handle, |
uint8_t | thr | ||
) |
Set the wake up threshold (available only for LSM6DS3 sensor)
- Parameters
-
handle the device handle thr the threshold to be set
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1858 of file SensorTile_accelero.c.
◆ BSP_ACCELERO_Write_Reg()
DrvStatusTypeDef BSP_ACCELERO_Write_Reg | ( | void * | handle, |
uint8_t | reg, | ||
uint8_t | data | ||
) |
Write the data to register.
- Parameters
-
handle the device handle reg register address data register data
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1021 of file SensorTile_accelero.c.
Generated by 1.8.13