|
TM STM32F4xx Libraries
v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
|
Library Functions. More...
Functions | |
| TM_BMP180_Result_t | TM_BMP180_Init (TM_BMP180_t *BMP180_Data) |
| Initializes BMP180 pressure sensor. More... | |
| TM_BMP180_Result_t | TM_BMP180_StartTemperature (TM_BMP180_t *BMP180_Data) |
| Starts temperature sensor on BMP180. More... | |
| TM_BMP180_Result_t | TM_BMP180_ReadTemperature (TM_BMP180_t *BMP180_Data) |
| Reads temperature from BMP180 sensor. More... | |
| TM_BMP180_Result_t | TM_BMP180_StartPressure (TM_BMP180_t *BMP180_Data, TM_BMP180_Oversampling_t Oversampling) |
| Starts pressure measurement on BMP180 sensor. More... | |
| TM_BMP180_Result_t | TM_BMP180_ReadPressure (TM_BMP180_t *BMP180_Data) |
| Reads pressure from BMP180 sensor and calculate it. More... | |
| uint32_t | TM_BMP180_GetPressureAtSeaLevel (uint32_t pressure, float altitude) |
| Calculates pressure above sea level in pascals. More... | |
Library Functions.
| uint32_t TM_BMP180_GetPressureAtSeaLevel | ( | uint32_t | pressure, |
| float | altitude | ||
| ) |
Calculates pressure above sea level in pascals.
This is good, if you read pressure from sensor at known altitude, not altitude provided from sensor. Altitude from sensor is calculated in fact, that pressure above the sea is 101325 Pascals. So, if you know your pressure, and you use calculated altitude, you will not get real pressure above the sea.
| pressure | Pressure at known altitude in units of pascals |
| altitude | Known altitude in units of meters |
| Pressure | above the sea in units of pascals |
| TM_BMP180_Result_t TM_BMP180_Init | ( | TM_BMP180_t * | BMP180_Data | ) |
Initializes BMP180 pressure sensor.
| *BMP180_Data | Pointer to TM_BMP180_t structure |
| Member | of TM_BMP180_Result_t |
| TM_BMP180_Result_t TM_BMP180_ReadPressure | ( | TM_BMP180_t * | BMP180_Data | ) |
Reads pressure from BMP180 sensor and calculate it.
| *BMP180_Data | Pointer to TM_BMP180_t structure |
| Member | of TM_BMP180_Result_t |
| TM_BMP180_Result_t TM_BMP180_ReadTemperature | ( | TM_BMP180_t * | BMP180_Data | ) |
Reads temperature from BMP180 sensor.
| *BMP180_Data | Pointer to TM_BMP180_t structure |
| Member | of TM_BMP180_Result_t |
| TM_BMP180_Result_t TM_BMP180_StartPressure | ( | TM_BMP180_t * | BMP180_Data, |
| TM_BMP180_Oversampling_t | Oversampling | ||
| ) |
Starts pressure measurement on BMP180 sensor.
| *BMP180_Data | Pointer to TM_BMP180_t structure |
| Oversampling | Oversampling option for pressure calculation. This parameter can be a value of TM_BMP180_Oversampling_t enumeration |
| Member | of TM_BMP180_Result_t |
| TM_BMP180_Result_t TM_BMP180_StartTemperature | ( | TM_BMP180_t * | BMP180_Data | ) |
Starts temperature sensor on BMP180.
| *BMP180_Data | Pointer to TM_BMP180_t structure |
| Member | of TM_BMP180_Result_t |