wayne roberts / Mbed OS CB-LORA-MR_utility

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

Private functions

Private functions
[LIS2DH12]

Functions

static DrvStatusTypeDef LIS2DH12_Get_Axes_Raw_Data (DrvContextTypeDef *handle, int16_t *pData)
 Get the LIS2DH12 accelerometer sensor raw axes data.
static DrvStatusTypeDef LIS2DH12_Set_ODR_When_Enabled (DrvContextTypeDef *handle, SensorOdr_t odr)
 Set the LIS2DH12 accelerometer sensor output data rate when enabled.
static DrvStatusTypeDef LIS2DH12_Set_ODR_When_Disabled (DrvContextTypeDef *handle, SensorOdr_t odr)
 Set the LIS2DH12 accelerometer sensor output data rate when disabled.
static DrvStatusTypeDef LIS2DH12_Set_ODR_Value_When_Enabled (DrvContextTypeDef *handle, float odr)
 Set the LIS2DH12 accelerometer sensor output data rate when enabled.
static DrvStatusTypeDef LIS2DH12_Set_ODR_Value_When_Disabled (DrvContextTypeDef *handle, float odr)
 Set the LIS2DH12 accelerometer sensor output data rate when disabled.

Function Documentation

static DrvStatusTypeDef LIS2DH12_Get_Axes_Raw_Data ( DrvContextTypeDef handle,
int16_t *  pData 
) [static]

Get the LIS2DH12 accelerometer sensor raw axes data.

Parameters:
handlethe device handle
pDatapointer to where the raw values of the axes write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 921 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Set_ODR_Value_When_Disabled ( DrvContextTypeDef handle,
float  odr 
) [static]

Set the LIS2DH12 accelerometer sensor output data rate when disabled.

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 1122 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Set_ODR_Value_When_Enabled ( DrvContextTypeDef handle,
float  odr 
) [static]

Set the LIS2DH12 accelerometer sensor output data rate when enabled.

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 1066 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Set_ODR_When_Disabled ( DrvContextTypeDef handle,
SensorOdr_t  odr 
) [static]

Set the LIS2DH12 accelerometer sensor output data rate when disabled.

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 1024 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Set_ODR_When_Enabled ( DrvContextTypeDef handle,
SensorOdr_t  odr 
) [static]

Set the LIS2DH12 accelerometer sensor output data rate when enabled.

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 978 of file LIS2DH12_ACC_driver_HL.c.