STSW-STLKT01: SENSORTILE_ACCELERO Exported functions

STSW-STLKT01

STSW-STLKT01
SENSORTILE_ACCELERO Exported functions

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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 26Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 26Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Note
This function sets the LSM6DS3 accelerometer ODR to 416Hz and the LSM6DS3 accelerometer full scale to 2g
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the status of the 6D orientation detection: 0 means no detection, 1 means detection happened
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
xhthe pointer to the 6D orientation XH axis
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
xlthe pointer to the 6D orientation XL axis
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
yhthe pointer to the 6D orientation YH axis
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
ylthe pointer to the 6D orientation YL axis
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
zhthe pointer to the 6D orientation ZH axis
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
zlthe pointer to the 6D orientation ZL axis
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
accelerationpointer where the values of the axes are written [mg]
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
xyz_enabledthe pointer to the axes enabled/disabled status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
valuepointer where the raw values of the axes are written
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the double tap detection status: 0 means no double tap detected, 1 means double tap detected
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe data ready status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the status of free fall detection: 0 means no detection, 1 means detection happened
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
fullScalepointer where the full scale is written
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
instancethe pointer to the device instance
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
odrpointer where the output data rate is written
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the pedometer status: 0 means no step detected, 1 means step detected
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
sensitivitypointer where the sensitivity value is written [mg/LSB]
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the single tap detection status: 0 means no single tap detected, 1 means single tap detected
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
step_countthe pointer to the step counter
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the tilt detection status: 0 means no tilt detected, 1 means tilt detected
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the status of the wake up detection: 0 means no detection, 1 means detection happened
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
who_am_ipointer to the value of WHO_AM_I register
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
idthe accelerometer sensor identifier
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the combo status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the enable status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
statusthe pointer to the initialization status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
regregister address
dataregister data
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
enable_xyzvector of the axes enabled/disabled status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
thrthe threshold to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
fullScalethe functional full scale to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
fullScalethe full scale value to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
odrthe functional output data rate to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
odrthe output data rate value to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
thrthe threshold to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
timethe duration of the time window to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
timethe quiet time window to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
timethe shock time window to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
thrthe threshold to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
thrthe threshold to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin 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
handlethe device handle
regregister address
dataregister data
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1021 of file SensorTile_accelero.c.

Generated by   doxygen 1.8.13