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

bmp280 example driver modules More...

Collaboration diagram for bmp280 example driver function:

Macros

#define BMP280_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING   BMP280_OVERSAMPLING_x2
 bmp280 basic example default definition
#define BMP280_BASIC_DEFAULT_PRESSURE_OVERSAMPLING   BMP280_OVERSAMPLING_x16
#define BMP280_BASIC_DEFAULT_STANDBY_TIME   BMP280_STANDBY_TIME_0P5_MS
#define BMP280_BASIC_DEFAULT_FILTER   BMP280_FILTER_COEFF_16
#define BMP280_BASIC_DEFAULT_SPI_WIRE   BMP280_SPI_WIRE_4
#define BMP280_SHOT_DEFAULT_TEMPERATURE_OVERSAMPLING   BMP280_OVERSAMPLING_x2
 bmp280 shot example default definition
#define BMP280_SHOT_DEFAULT_PRESSURE_OVERSAMPLING   BMP280_OVERSAMPLING_x16
#define BMP280_SHOT_DEFAULT_STANDBY_TIME   BMP280_STANDBY_TIME_0P5_MS
#define BMP280_SHOT_DEFAULT_FILTER   BMP280_FILTER_COEFF_16
#define BMP280_SHOT_DEFAULT_SPI_WIRE   BMP280_SPI_WIRE_4

Functions

uint8_t bmp280_basic_init (bmp280_interface_t interface, bmp280_address_t addr_pin)
 basic example init
uint8_t bmp280_basic_deinit (void)
 basic example deinit
uint8_t bmp280_basic_read (float *temperature, float *pressure)
 basic example read
uint8_t bmp280_shot_init (bmp280_interface_t interface, bmp280_address_t addr_pin)
 shot example init
uint8_t bmp280_shot_deinit (void)
 shot example deinit
uint8_t bmp280_shot_read (float *temperature, float *pressure)
 shot example read

Detailed Description

bmp280 example driver modules

Macro Definition Documentation

◆ BMP280_BASIC_DEFAULT_FILTER

#define BMP280_BASIC_DEFAULT_FILTER   BMP280_FILTER_COEFF_16

filter coeff 16

Definition at line 59 of file driver_bmp280_basic.h.

◆ BMP280_BASIC_DEFAULT_PRESSURE_OVERSAMPLING

#define BMP280_BASIC_DEFAULT_PRESSURE_OVERSAMPLING   BMP280_OVERSAMPLING_x16

pressure oversampling x16

Definition at line 57 of file driver_bmp280_basic.h.

◆ BMP280_BASIC_DEFAULT_SPI_WIRE

#define BMP280_BASIC_DEFAULT_SPI_WIRE   BMP280_SPI_WIRE_4

spi wire 4

Definition at line 60 of file driver_bmp280_basic.h.

◆ BMP280_BASIC_DEFAULT_STANDBY_TIME

#define BMP280_BASIC_DEFAULT_STANDBY_TIME   BMP280_STANDBY_TIME_0P5_MS

standby time 0.5ms

Definition at line 58 of file driver_bmp280_basic.h.

◆ BMP280_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING

#define BMP280_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING   BMP280_OVERSAMPLING_x2

bmp280 basic example default definition

temperatue oversampling x2

Definition at line 56 of file driver_bmp280_basic.h.

◆ BMP280_SHOT_DEFAULT_FILTER

#define BMP280_SHOT_DEFAULT_FILTER   BMP280_FILTER_COEFF_16

filter coeff 16

Definition at line 57 of file driver_bmp280_shot.h.

◆ BMP280_SHOT_DEFAULT_PRESSURE_OVERSAMPLING

#define BMP280_SHOT_DEFAULT_PRESSURE_OVERSAMPLING   BMP280_OVERSAMPLING_x16

pressure oversampling x16

Definition at line 55 of file driver_bmp280_shot.h.

◆ BMP280_SHOT_DEFAULT_SPI_WIRE

#define BMP280_SHOT_DEFAULT_SPI_WIRE   BMP280_SPI_WIRE_4

spi wire 4

Definition at line 58 of file driver_bmp280_shot.h.

◆ BMP280_SHOT_DEFAULT_STANDBY_TIME

#define BMP280_SHOT_DEFAULT_STANDBY_TIME   BMP280_STANDBY_TIME_0P5_MS

standby time 0.5ms

Definition at line 56 of file driver_bmp280_shot.h.

◆ BMP280_SHOT_DEFAULT_TEMPERATURE_OVERSAMPLING

#define BMP280_SHOT_DEFAULT_TEMPERATURE_OVERSAMPLING   BMP280_OVERSAMPLING_x2

bmp280 shot example default definition

temperatue oversampling x2

Definition at line 54 of file driver_bmp280_shot.h.

Function Documentation

◆ bmp280_basic_deinit()

uint8_t bmp280_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 188 of file driver_bmp280_basic.c.

Here is the call graph for this function:

◆ bmp280_basic_init()

uint8_t bmp280_basic_init ( bmp280_interface_t interface,
bmp280_address_t addr_pin )

basic example init

Parameters
[in]interfacechip interface
[in]addr_pinchip address pin
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_bmp280_basic.c.

Here is the call graph for this function:

◆ bmp280_basic_read()

uint8_t bmp280_basic_read ( float * temperature,
float * pressure )

basic example read

Parameters
[out]*temperaturepointer to a converted temperature buffer
[out]*pressurepointer to a converted pressure buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 166 of file driver_bmp280_basic.c.

Here is the call graph for this function:

◆ bmp280_shot_deinit()

uint8_t bmp280_shot_deinit ( void )

shot example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 188 of file driver_bmp280_shot.c.

Here is the call graph for this function:

◆ bmp280_shot_init()

uint8_t bmp280_shot_init ( bmp280_interface_t interface,
bmp280_address_t addr_pin )

shot example init

Parameters
[in]interfacechip interface
[in]addr_pinchip address pin
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_bmp280_shot.c.

Here is the call graph for this function:

◆ bmp280_shot_read()

uint8_t bmp280_shot_read ( float * temperature,
float * pressure )

shot example read

Parameters
[out]*temperaturepointer to a converted temperature buffer
[out]*pressurepointer to a converted pressure buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 166 of file driver_bmp280_shot.c.

Here is the call graph for this function: