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

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

Public functions for extended features

Public functions for extended features
[Accelerometer]

Functions

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.

Function Documentation

DrvStatusTypeDef BSP_ACCELERO_ClearDRDY_Ext ( void *  handle,
ACTIVE_AXIS_t  axisActive 
)

Clear the accelerometer sensor DRDY.

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 4089 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_6D_Orientation_Ext ( void *  handle )

Disable the 6D orientation detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2270 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_Double_Tap_Detection_Ext ( void *  handle )

Disable the double tap detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1942 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_Free_Fall_Detection_Ext ( void *  handle )

Disable the free fall detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 988 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_HP_Filter_Ext ( void *  handle )

Disable the accelerometer sensor HP Filter.

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 4001 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_Pedometer_Ext ( void *  handle )

Disable the pedometer feature (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1172 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_Single_Tap_Detection_Ext ( void *  handle )

Disable the single tap detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1798 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_Tilt_Detection_Ext ( void *  handle )

Disable the tilt detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1464 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Disable_Wake_Up_Detection_Ext ( void *  handle )

Disable the wake up detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1608 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_6D_Orientation_Ext ( void *  handle,
SensorIntPin_t  int_pin 
)

Enable the 6D orientation detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
int_pinthe interrupt pin to be used
Note:
This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2225 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_Double_Tap_Detection_Ext ( void *  handle,
SensorIntPin_t  int_pin 
)

Enable the double tap detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
int_pinthe interrupt pin to be used
Note:
This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1897 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_Free_Fall_Detection_Ext ( void *  handle,
SensorIntPin_t  int_pin 
)

Enable the free fall detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
int_pinthe interrupt pin to be used
Note:
This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 945 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_HP_Filter_Ext ( void *  handle )

Enable the accelerometer sensor HP Filter.

Parameters:
handlethe device handle
modethe value of HP Filter mode to be set
cutoffthe value of HP Filter cutoff to be set
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3913 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_Pedometer_Ext ( void *  handle )

Enable the pedometer feature (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Note:
This function sets the LSM6DSL accelerometer ODR to 26Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1129 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_Single_Tap_Detection_Ext ( void *  handle,
SensorIntPin_t  int_pin 
)

Enable the single tap detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
int_pinthe interrupt pin to be used
Note:
This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1753 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_Tilt_Detection_Ext ( void *  handle,
SensorIntPin_t  int_pin 
)

Enable the tilt detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
int_pinthe interrupt pin to be used
Note:
This function sets the LSM6DSL accelerometer ODR to 26Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1419 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Enable_Wake_Up_Detection_Ext ( void *  handle,
SensorIntPin_t  int_pin 
)

Enable the wake up detection (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
int_pinthe interrupt pin to be used
Note:
This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1563 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Axis_Ext ( void *  handle,
int32_t *  acceleration 
)

Get single accelero axis from the FIFO (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
accelerationthe pointer to the acceleration value
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3145 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Data_Ext ( void *  handle,
uint8_t *  aData 
)

Get FIFO data (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
*aDataFIFO data array
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2984 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Empty_Status_Ext ( void *  handle,
uint8_t *  status 
)

Get FIFO empty status (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
*statusFIFO empty status
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2816 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Full_Status_Ext ( void *  handle,
uint8_t *  status 
)

Get FIFO full status (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
*statusFIFO full status
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2766 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
*nSamplesNumber of unread FIFO samples
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3034 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Overrun_Status_Ext ( void *  handle,
uint8_t *  status 
)

Get FIFO_OVR bit status (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
*statusFIFO_OVR bit status
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2867 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Get_Pattern_Ext ( void *  handle,
uint16_t *  pattern 
)

Get FIFO pattern (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
*patternFIFO pattern
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2933 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Decimation_Ext ( void *  handle,
uint8_t  decimation 
)

Set FIFO decimation for accelerometer (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
decimationFIFO decimation for accelerometer
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3099 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_INT1_FIFO_Full_Ext ( void *  handle,
uint8_t  status 
)

Set FIFO_FULL interrupt on INT1 pin.

Parameters:
handlethe device handle
statusFIFO_FULL interrupt on INT1 pin enable/disable
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3255 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_INT1_FIFO_Overrun_Ext ( void *  handle,
uint8_t  status 
)

Set FIFO_OVR interrupt on INT1 pin.

Parameters:
handlethe device handle
statusFIFO_OVR interrupt on INT1 pin enable/disable
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3301 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Mode_Ext ( void *  handle,
uint8_t  mode 
)

Set FIFO mode.

Parameters:
handlethe device handle
modeFIFO mode
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3195 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_ODR_Value_Ext ( void *  handle,
float  odr 
)

Set FIFO output data rate (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
odrthe output data rate
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2721 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Stop_On_Fth_Ext ( void *  handle,
uint8_t  status 
)

Set FIFO to stop on FTH interrupt.

Parameters:
handlethe device handle
statusFIFO stop on FTH interrupt enable/disable
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3391 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_FIFO_Set_Watermark_Level_Ext ( void *  handle,
uint16_t  watermark 
)

Set FIFO watermark level.

Parameters:
handlethe device handle
watermarkFIFO watermark level
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3345 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
statusthe pointer to the status of the 6D orientation detection: 0 means no detection, 1 means detection happened
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2317 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_XH_Ext ( void *  handle,
uint8_t *  xh 
)

Get the 6D orientation XH axis (available only for LSM6DSL 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 2417 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_XL_Ext ( void *  handle,
uint8_t *  xl 
)

Get the 6D orientation XL axis (available only for LSM6DSL 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 2366 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_YH_Ext ( void *  handle,
uint8_t *  yh 
)

Get the 6D orientation YH axis (available only for LSM6DSL 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 2519 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_YL_Ext ( void *  handle,
uint8_t *  yl 
)

Get the 6D orientation YL axis (available only for LSM6DSL 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 2468 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_ZH_Ext ( void *  handle,
uint8_t *  zh 
)

Get the 6D orientation ZH axis (available only for LSM6DSL 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 2621 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_6D_Orientation_ZL_Ext ( void *  handle,
uint8_t *  zl 
)

Get the 6D orientation ZL axis (available only for LSM6DSL 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 2570 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_Active_Axis_Ext ( void *  handle,
ACTIVE_AXIS_t *  axis 
)

Set the accelerometer sensor active axis.

Parameters:
handlethe device handle
axispointer where the active axis value is stored
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3734 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
statusthe pointer to the double tap detection status: 0 means no double tap detected, 1 means double tap detected
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1989 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
statusthe pointer to the status of all hardware events
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 2671 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
statusthe pointer to the status of free fall detection: 0 means no detection, 1 means detection happened
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1033 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_OpMode_Ext ( void *  handle,
OP_MODE_t *  opMode 
)

Get the accelerometer sensor operating mode.

Parameters:
handlethe device handle
opModepointer where the operating mode value is stored
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3598 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_Pedometer_Status_Ext ( void *  handle,
uint8_t *  status 
)

Get the pedometer status (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
statusthe pointer to the pedometer status: 0 means no step detected, 1 means step detected
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1217 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
statusthe pointer to the single tap detection status: 0 means no single tap detected, 1 means single tap detected
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1845 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_Step_Count_Ext ( void *  handle,
uint16_t *  step_count 
)

Get the step counter (available only for LSM6DSL 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 1267 of file x_nucleo_iks01a2_accelero.c.

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.

Parameters:
handlethe device handle
accelerationpointer where the super raw value of the axis is written
axisaxis to be read
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3530 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Get_Tilt_Detection_Status_Ext ( void *  handle,
uint8_t *  status 
)

Get the tilt detection status (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
statusthe pointer to the tilt detection status: 0 means no tilt detected, 1 means tilt detected
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1511 of file x_nucleo_iks01a2_accelero.c.

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)

Parameters:
handlethe device handle
statusthe pointer to the status of the wake up detection: 0 means no detection, 1 means detection happened
Note:
This function is deprecated and has been replaced by BSP_ACCELERO_Get_Event_Status_Ext
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1655 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Reset_Step_Counter_Ext ( void *  handle )

Reset of the step counter (available only for LSM6DSL sensor)

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 1316 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Active_Axis_Ext ( void *  handle,
ACTIVE_AXIS_t  axis 
)

Set the accelerometer sensor active axis.

Parameters:
handlethe device handle
axisthe value of active axis to be set
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3823 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Free_Fall_Threshold_Ext ( void *  handle,
uint8_t  thr 
)

Set the free fall detection threshold (available only for LSM6DSL 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 1083 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_INT1_DRDY_Ext ( void *  handle,
INT1_DRDY_CONFIG_t  drdyStatus 
)

Set the accelerometer sensor DRDY on INT1.

Parameters:
handlethe device handle
drdyStatusenable/disable DRDY on INT1 value
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 4178 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Interrupt_Latch_Ext ( void *  handle,
uint8_t  status 
)

Set interrupt latch.

Parameters:
handlethe device handle
statusinterrupt latch enable/disable
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3437 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_OpMode_Ext ( void *  handle,
OP_MODE_t  opMode 
)

Set the accelerometer sensor operating mode.

Parameters:
handlethe device handle
opModethe value of operating mode to be set
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3666 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Pedometer_Threshold_Ext ( void *  handle,
uint8_t  thr 
)

Set the pedometer threshold (available only for LSM6DSL 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 1372 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_SelfTest_Ext ( void *  handle,
uint8_t  status 
)

Set accelero self-test.

Parameters:
handlethe device handle
statusself-test enable/disable
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 3483 of file x_nucleo_iks01a2_accelero.c.

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)

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 2178 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Quiet_Time_Ext ( void *  handle,
uint8_t  time 
)

Set the tap quiet time window (available only for LSM6DSL 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 2132 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Shock_Time_Ext ( void *  handle,
uint8_t  time 
)

Set the tap shock time window (available only for LSM6DSL 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 2086 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Tap_Threshold_Ext ( void *  handle,
uint8_t  thr 
)

Set the tap threshold (available only for LSM6DSL 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 2040 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_ACCELERO_Set_Wake_Up_Threshold_Ext ( void *  handle,
uint8_t  thr 
)

Set the wake up threshold (available only for LSM6DSL 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 1706 of file x_nucleo_iks01a2_accelero.c.

DrvStatusTypeDef BSP_LIS2DH12_AVAIL_Ext ( void **  handle )

Check if LIS2DH12 sensor is available.

Parameters:
handlethe device handle
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 4265 of file x_nucleo_iks01a2_accelero.c.