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

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

Callable private functions

Callable private functions
[LIS2DH12]

Functions

static DrvStatusTypeDef LIS2DH12_Init (DrvContextTypeDef *handle)
 Initialize the LIS2DH12 sensor.
static DrvStatusTypeDef LIS2DH12_DeInit (DrvContextTypeDef *handle)
 Deinitialize the LIS2DH12 sensor.
static DrvStatusTypeDef LIS2DH12_Sensor_Enable (DrvContextTypeDef *handle)
 Enable the LIS2DH12 sensor.
static DrvStatusTypeDef LIS2DH12_Sensor_Disable (DrvContextTypeDef *handle)
 Disable the LIS2DH12 sensor.
static DrvStatusTypeDef LIS2DH12_Get_WhoAmI (DrvContextTypeDef *handle, uint8_t *who_am_i)
 Get the WHO_AM_I ID of the LIS2DH12 sensor.
static DrvStatusTypeDef LIS2DH12_Check_WhoAmI (DrvContextTypeDef *handle)
 Check the WHO_AM_I ID of the LIS2DH12 sensor.
static DrvStatusTypeDef LIS2DH12_Get_Axes (DrvContextTypeDef *handle, SensorAxes_t *acceleration)
 Get the LIS2DH12 accelerometer sensor axes.
static DrvStatusTypeDef LIS2DH12_Get_AxesRaw (DrvContextTypeDef *handle, SensorAxesRaw_t *value)
 Get the LIS2DH12 accelerometer sensor raw axes.
static DrvStatusTypeDef LIS2DH12_Get_Sensitivity (DrvContextTypeDef *handle, float *sensitivity)
 Get the LIS2DH12 accelerometer sensor sensitivity.
static DrvStatusTypeDef LIS2DH12_Get_ODR (DrvContextTypeDef *handle, float *odr)
 Get the LIS2DH12 accelerometer sensor output data rate.
static DrvStatusTypeDef LIS2DH12_Set_ODR (DrvContextTypeDef *handle, SensorOdr_t odr)
 Set the LIS2DH12 accelerometer sensor output data rate.
static DrvStatusTypeDef LIS2DH12_Set_ODR_Value (DrvContextTypeDef *handle, float odr)
 Set the LIS2DH12 accelerometer sensor output data rate.
static DrvStatusTypeDef LIS2DH12_Get_FS (DrvContextTypeDef *handle, float *fullScale)
 Get the LIS2DH12 accelerometer sensor full scale.
static DrvStatusTypeDef LIS2DH12_Set_FS (DrvContextTypeDef *handle, SensorFs_t fullScale)
 Set the LIS2DH12 accelerometer sensor full scale.
static DrvStatusTypeDef LIS2DH12_Set_FS_Value (DrvContextTypeDef *handle, float fullScale)
 Set the LIS2DH12 accelerometer sensor full scale.
static DrvStatusTypeDef LIS2DH12_Get_Axes_Status (DrvContextTypeDef *handle, uint8_t *xyz_enabled)
 Get the LIS2DH12 accelerometer sensor axes enabled/disabled status.
static DrvStatusTypeDef LIS2DH12_Set_Axes_Status (DrvContextTypeDef *handle, uint8_t *enable_xyz)
 Set the LIS2DH12 accelerometer sensor axes enabled/disabled.
static DrvStatusTypeDef LIS2DH12_Read_Reg (DrvContextTypeDef *handle, uint8_t reg, uint8_t *data)
 Read the data from register.
static DrvStatusTypeDef LIS2DH12_Write_Reg (DrvContextTypeDef *handle, uint8_t reg, uint8_t data)
 Write the data to register.
static DrvStatusTypeDef LIS2DH12_Get_DRDY_Status (DrvContextTypeDef *handle, uint8_t *status)
 Get data ready status.

Function Documentation

static DrvStatusTypeDef LIS2DH12_Check_WhoAmI ( DrvContextTypeDef handle ) [static]

Check the WHO_AM_I ID of the LIS2DH12 sensor.

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

Definition at line 356 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_DeInit ( DrvContextTypeDef handle ) [static]

Deinitialize the LIS2DH12 sensor.

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

Definition at line 246 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_Axes ( DrvContextTypeDef handle,
SensorAxes_t acceleration 
) [static]

Get the LIS2DH12 accelerometer sensor axes.

Parameters:
handlethe device handle
accelerationpointer to where acceleration data write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 380 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_Axes_Status ( DrvContextTypeDef handle,
uint8_t *  xyz_enabled 
) [static]

Get the LIS2DH12 accelerometer sensor axes enabled/disabled status.

Parameters:
handlethe device handle
xyz_enabledpointer to where the vector of the axes enabled/disabled status write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 811 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_AxesRaw ( DrvContextTypeDef handle,
SensorAxesRaw_t value 
) [static]

Get the LIS2DH12 accelerometer sensor raw axes.

Parameters:
handlethe device handle
acceleration_rawpointer to where acceleration raw data write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 412 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_DRDY_Status ( DrvContextTypeDef handle,
uint8_t *  status 
) [static]

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

static DrvStatusTypeDef LIS2DH12_Get_FS ( DrvContextTypeDef handle,
float *  fullScale 
) [static]

Get the LIS2DH12 accelerometer sensor full scale.

Parameters:
handlethe device handle
fullScalepointer to where full scale write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 706 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_ODR ( DrvContextTypeDef handle,
float *  odr 
) [static]

Get the LIS2DH12 accelerometer sensor output data rate.

Parameters:
handlethe device handle
odrpointer to where output data rate write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 554 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_Sensitivity ( DrvContextTypeDef handle,
float *  sensitivity 
) [static]

Get the LIS2DH12 accelerometer sensor sensitivity.

Parameters:
handlethe device handle
sensitivitypointer to where sensitivity write to
Return values:
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 437 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Get_WhoAmI ( DrvContextTypeDef handle,
uint8_t *  who_am_i 
) [static]

Get the WHO_AM_I ID of the LIS2DH12 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 339 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Init ( DrvContextTypeDef handle ) [static]

Initialize the LIS2DH12 sensor.

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

Definition at line 184 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Read_Reg ( DrvContextTypeDef handle,
uint8_t  reg,
uint8_t *  data 
) [static]

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

static DrvStatusTypeDef LIS2DH12_Sensor_Disable ( DrvContextTypeDef handle ) [static]

Disable the LIS2DH12 sensor.

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

Definition at line 304 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Sensor_Enable ( DrvContextTypeDef handle ) [static]

Enable the LIS2DH12 sensor.

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

Definition at line 276 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Set_Axes_Status ( DrvContextTypeDef handle,
uint8_t *  enable_xyz 
) [static]

Set the LIS2DH12 accelerometer sensor axes enabled/disabled.

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

static DrvStatusTypeDef LIS2DH12_Set_FS ( DrvContextTypeDef handle,
SensorFs_t  fullScale 
) [static]

Set the LIS2DH12 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 744 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Set_FS_Value ( DrvContextTypeDef handle,
float  fullScale 
) [static]

Set the LIS2DH12 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 787 of file LIS2DH12_ACC_driver_HL.c.

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

Set the LIS2DH12 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 652 of file LIS2DH12_ACC_driver_HL.c.

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

Set the LIS2DH12 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 679 of file LIS2DH12_ACC_driver_HL.c.

static DrvStatusTypeDef LIS2DH12_Write_Reg ( DrvContextTypeDef handle,
uint8_t  reg,
uint8_t  data 
) [static]

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