LibDriver BMP280
Loading...
Searching...
No Matches
bmp280 extern driver function

bmp280 extern driver modules More...

Collaboration diagram for bmp280 extern driver function:

Functions

uint8_t bmp280_set_reg (bmp280_handle_t *handle, uint8_t reg, uint8_t value)
 set the chip register
uint8_t bmp280_get_reg (bmp280_handle_t *handle, uint8_t reg, uint8_t *value)
 get the chip register

Detailed Description

bmp280 extern driver modules

Function Documentation

◆ bmp280_get_reg()

uint8_t bmp280_get_reg ( bmp280_handle_t * handle,
uint8_t reg,
uint8_t * value )

get the chip register

Parameters
[in]*handlepointer to a bmp280 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 1594 of file driver_bmp280.c.

◆ bmp280_set_reg()

uint8_t bmp280_set_reg ( bmp280_handle_t * handle,
uint8_t reg,
uint8_t value )

set the chip register

Parameters
[in]*handlepointer to a bmp280 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 1568 of file driver_bmp280.c.