LibDriver BMP180
Loading...
Searching...
No Matches
bmp180 extend driver function

bmp180 extend driver modules More...

Collaboration diagram for bmp180 extend driver function:

Functions

uint8_t bmp180_set_reg (bmp180_handle_t *handle, uint8_t reg, uint8_t value)
 set the chip register
uint8_t bmp180_get_reg (bmp180_handle_t *handle, uint8_t reg, uint8_t *value)
 get the chip register

Detailed Description

bmp180 extend driver modules

Function Documentation

◆ bmp180_get_reg()

uint8_t bmp180_get_reg ( bmp180_handle_t * handle,
uint8_t reg,
uint8_t * value )

get the chip register

Parameters
[in]*handlepointer to a bmp180 handle structure
[in]regiic register address
[out]*valuepointer to a read data buffer
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 802 of file driver_bmp180.c.

◆ bmp180_set_reg()

uint8_t bmp180_set_reg ( bmp180_handle_t * handle,
uint8_t reg,
uint8_t value )

set the chip register

Parameters
[in]*handlepointer to a bmp180 handle structure
[in]regiic register address
[in]valuedata written to the register
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 776 of file driver_bmp180.c.