STSW-STLKT01
|
Functions | |
DrvStatusTypeDef | BSP_PRESSURE_Init (PRESSURE_ID_t id, void **handle) |
Initialize a pressure sensor. More... | |
DrvStatusTypeDef | BSP_PRESSURE_DeInit (void **handle) |
Deinitialize a pressure sensor. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Sensor_Enable (void *handle) |
Enable pressure sensor. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Sensor_Disable (void *handle) |
Disable pressure sensor. More... | |
DrvStatusTypeDef | BSP_PRESSURE_IsInitialized (void *handle, uint8_t *status) |
Check if the pressure sensor is initialized. More... | |
DrvStatusTypeDef | BSP_PRESSURE_IsEnabled (void *handle, uint8_t *status) |
Check if the pressure sensor is enabled. More... | |
DrvStatusTypeDef | BSP_PRESSURE_IsCombo (void *handle, uint8_t *status) |
Check if the pressure sensor is combo. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Get_Instance (void *handle, uint8_t *instance) |
Get the pressure sensor instance. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Get_WhoAmI (void *handle, uint8_t *who_am_i) |
Get the WHO_AM_I ID of the pressure sensor. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Check_WhoAmI (void *handle) |
Check the WHO_AM_I ID of the pressure sensor. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Get_Press (void *handle, float *pressure) |
Get the pressure value. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Get_ODR (void *handle, float *odr) |
Get the pressure sensor output data rate. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Set_ODR (void *handle, SensorOdr_t odr) |
Set the pressure sensor output data rate. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Set_ODR_Value (void *handle, float odr) |
Set the pressure sensor output data rate. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Read_Reg (void *handle, uint8_t reg, uint8_t *data) |
Read the data from register. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Write_Reg (void *handle, uint8_t reg, uint8_t data) |
Write the data to register. More... | |
DrvStatusTypeDef | BSP_PRESSURE_Get_DRDY_Status (void *handle, uint8_t *status) |
Get pressure data ready status. More... | |
Detailed Description
Function Documentation
◆ BSP_PRESSURE_Check_WhoAmI()
DrvStatusTypeDef BSP_PRESSURE_Check_WhoAmI | ( | void * | handle | ) |
Check the WHO_AM_I ID of the pressure sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 472 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_DeInit()
DrvStatusTypeDef BSP_PRESSURE_DeInit | ( | void ** | handle | ) |
Deinitialize a pressure sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 221 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Get_DRDY_Status()
DrvStatusTypeDef BSP_PRESSURE_Get_DRDY_Status | ( | void * | handle, |
uint8_t * | status | ||
) |
Get pressure 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 726 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Get_Instance()
DrvStatusTypeDef BSP_PRESSURE_Get_Instance | ( | void * | handle, |
uint8_t * | instance | ||
) |
Get the pressure 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 407 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Get_ODR()
DrvStatusTypeDef BSP_PRESSURE_Get_ODR | ( | void * | handle, |
float * | odr | ||
) |
Get the pressure 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 544 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Get_Press()
DrvStatusTypeDef BSP_PRESSURE_Get_Press | ( | void * | handle, |
float * | pressure | ||
) |
Get the pressure value.
- Parameters
-
handle the device handle pressure pointer where the value is written [hPa]
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 506 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Get_WhoAmI()
DrvStatusTypeDef BSP_PRESSURE_Get_WhoAmI | ( | void * | handle, |
uint8_t * | who_am_i | ||
) |
Get the WHO_AM_I ID of the pressure 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 435 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Init()
DrvStatusTypeDef BSP_PRESSURE_Init | ( | PRESSURE_ID_t | id, |
void ** | handle | ||
) |
Initialize a pressure sensor.
- Parameters
-
id the pressure sensor identifier handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 101 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_IsCombo()
DrvStatusTypeDef BSP_PRESSURE_IsCombo | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the pressure 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 380 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_IsEnabled()
DrvStatusTypeDef BSP_PRESSURE_IsEnabled | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the pressure 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 353 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_IsInitialized()
DrvStatusTypeDef BSP_PRESSURE_IsInitialized | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the pressure 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 326 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Read_Reg()
DrvStatusTypeDef BSP_PRESSURE_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 650 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Sensor_Disable()
DrvStatusTypeDef BSP_PRESSURE_Sensor_Disable | ( | void * | handle | ) |
Disable pressure sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 292 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Sensor_Enable()
DrvStatusTypeDef BSP_PRESSURE_Sensor_Enable | ( | void * | handle | ) |
Enable pressure sensor.
- Parameters
-
handle the device handle
- Return values
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 258 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Set_ODR()
DrvStatusTypeDef BSP_PRESSURE_Set_ODR | ( | void * | handle, |
SensorOdr_t | odr | ||
) |
Set the pressure 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 582 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Set_ODR_Value()
DrvStatusTypeDef BSP_PRESSURE_Set_ODR_Value | ( | void * | handle, |
float | odr | ||
) |
Set the pressure 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 616 of file SensorTile_pressure.c.
◆ BSP_PRESSURE_Write_Reg()
DrvStatusTypeDef BSP_PRESSURE_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 691 of file SensorTile_pressure.c.
Generated by 1.8.13