I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
BMP180_proc.c File Reference

BMP180 Driver procedures. More...

#include "BMP180.h"
Include dependency graph for BMP180_proc.c:

Functions

void BMP180_Set_SeaLevel_Pressure (BMP180_t *const pCpnt)
 Setter of Sea Level pressure for BMP180 peripheral.
 
FctERR BMP180_Init_Sequence (BMP180_t *const pCpnt)
 Initialization Sequence for BMP180 peripheral.
 
FctERR BMP180_Set_Oversampling (BMP180_t *const pCpnt, const BMP180_oversampling oss)
 Set oversampling for BMP180 peripheral.
 
FctERR BMP180_Get_Calibration (BMP180_t *const pCpnt, BMP180_calib *pCalib)
 Get calibration parameters from BMP180 peripheral.
 
FctERR BMP180_Get_Pressure (BMP180_t *const pCpnt, float *pres)
 Gets the compensated pressure level.
 
FctERR BMP180_Get_Temperature (BMP180_t *const pCpnt, float *temp)
 Get the temperature.
 
FctERR BMP180_handler (BMP180_t *const pCpnt)
 Handler for BMP180 peripheral.
 
FctERR BMP180_handler_all (void)
 Handler for all BMP180 peripherals.
 

Variables

BMP180_t BMP180 [I2C_BMP180_NB] = { 0 }
 BMP180 User structure.
 

Detailed Description

BMP180 Driver procedures.

Author
SMFSW

BMP180: Digital pressure sensor

Function Documentation

◆ BMP180_Get_Calibration()

FctERR BMP180_Get_Calibration ( BMP180_t *const pCpnt,
BMP180_calib * pCalib )

Get calibration parameters from BMP180 peripheral.

Parameters
[in]pCpnt- Pointer to BMP180 component
[in,out]pCalib- pointer to calibration structure to read to
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_Get_Pressure()

FctERR BMP180_Get_Pressure ( BMP180_t *const pCpnt,
float * pres )

Gets the compensated pressure level.

Parameters
[in]pCpnt- Pointer to BMP180 component
[in,out]pres- pointer to atmospheric pressure level to read to (in hPa)
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_Get_Temperature()

FctERR BMP180_Get_Temperature ( BMP180_t *const pCpnt,
float * temp )

Get the temperature.

Parameters
[in]pCpnt- Pointer to BMP180 component
[in,out]temp- pointer to temperature to read to (in Celsius degrees)
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_handler()

FctERR BMP180_handler ( BMP180_t *const pCpnt)

Handler for BMP180 peripheral.

Weak Functions
BMP180 handler may be user implemented to suit custom needs
Note
Should be called periodically to handle BMP180 tasks
Parameters
[in]pCpnt- Pointer to BMP180 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_handler_all()

FctERR BMP180_handler_all ( void )

Handler for all BMP180 peripherals.

Note
May be called periodically to handle all BMP180 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ BMP180_Init_Sequence()

FctERR BMP180_Init_Sequence ( BMP180_t *const pCpnt)

Initialization Sequence for BMP180 peripheral.

Weak Functions
BMP180 Init sequence may be user implemented if custom initialization sequence needed
Parameters
[in]pCpnt- Pointer to BMP180 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_Set_Oversampling()

FctERR BMP180_Set_Oversampling ( BMP180_t *const pCpnt,
const BMP180_oversampling oss )

Set oversampling for BMP180 peripheral.

Parameters
[in]pCpnt- Pointer to BMP180 component
[in,out]oss- oversampling value
Returns
FctERR - error code

◆ BMP180_Set_SeaLevel_Pressure()

void BMP180_Set_SeaLevel_Pressure ( BMP180_t *const pCpnt)

Setter of Sea Level pressure for BMP180 peripheral.

Weak Functions
BMP180 Sea Level pressure setter may be user implemented
Parameters
[in]pCpnt- Pointer to BMP180 component
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BMP180

BMP180_t BMP180[I2C_BMP180_NB] = { 0 }

BMP180 User structure.