![]() |
LibDriver BMP390
|
bmp390 example driver modules More...
Functions | |
| uint8_t | bmp390_basic_init (bmp390_interface_t interface, bmp390_address_t addr_pin) |
| basic example init | |
| uint8_t | bmp390_basic_deinit (void) |
| basic example deinit | |
| uint8_t | bmp390_basic_read (float *temperature_c, float *pressure_pa) |
| basic example read | |
| uint8_t | bmp390_fifo_irq_handler (void) |
| fifo example irq handler | |
| uint8_t | bmp390_fifo_init (bmp390_interface_t interface, bmp390_address_t addr_pin, void(*fifo_receive_callback)(uint8_t type)) |
| fifo example init | |
| uint8_t | bmp390_fifo_deinit (void) |
| fifo example deinit | |
| uint8_t | bmp390_fifo_read (uint8_t *buf, uint16_t buf_len, bmp390_frame_t *frame, uint16_t *frame_len) |
| fifo example read | |
| uint8_t | bmp390_interrupt_irq_handler (void) |
| interrupt example irq handler | |
| uint8_t | bmp390_interrupt_init (bmp390_interface_t interface, bmp390_address_t addr_pin, void(*interrupt_receive_callback)(uint8_t type)) |
| interrupt example init | |
| uint8_t | bmp390_interrupt_deinit (void) |
| interrupt example deinit | |
| uint8_t | bmp390_interrupt_read (float *temperature_c, float *pressure_pa) |
| interrupt example read | |
| uint8_t | bmp390_shot_init (bmp390_interface_t interface, bmp390_address_t addr_pin) |
| shot example init | |
| uint8_t | bmp390_shot_deinit (void) |
| shot example deinit | |
| uint8_t | bmp390_shot_read (float *temperature_c, float *pressure_pa) |
| shot example read | |
bmp390 example driver modules
| #define BMP390_BASIC_DEFAULT_FILTER_COEFFICIENT BMP390_FILTER_COEFFICIENT_15 |
set filter coefficient 15
Definition at line 64 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_IIC_WATCHDOG_PERIOD BMP390_IIC_WATCHDOG_PERIOD_40_MS |
set watchdog timer period 40ms
Definition at line 58 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_IIC_WATCHDOG_TIMER BMP390_BOOL_TRUE |
enable iic watchdog timer
Definition at line 57 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_ODR BMP390_ODR_12P5_HZ |
output data rate 12.5Hz
Definition at line 63 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_PRESSURE BMP390_BOOL_TRUE |
enable pressure
Definition at line 59 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_PRESSURE_OVERSAMPLING BMP390_OVERSAMPLING_x32 |
pressure oversampling x32
Definition at line 61 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_SPI_WIRE BMP390_SPI_WIRE_4 |
bmp390 basic example default definition
4 wire spi
Definition at line 56 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_TEMPERATURE BMP390_BOOL_TRUE |
enable temperature
Definition at line 60 of file driver_bmp390_basic.h.
| #define BMP390_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING BMP390_OVERSAMPLING_x2 |
temperature oversampling x2
Definition at line 62 of file driver_bmp390_basic.h.
| #define BMP390_FIFO_DEFAULT_FIFO_DATA_SOURCE BMP390_FIFO_DATA_SOURCE_FILTERED |
fifo data source filtered
Definition at line 63 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FIFO_PRESSURE_ON BMP390_BOOL_TRUE |
enable fifo pressure on
Definition at line 60 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FIFO_SENSORTIME_ON BMP390_BOOL_TRUE |
enable fifo sensor time on
Definition at line 59 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FIFO_STOP_ON_FULL BMP390_BOOL_FALSE |
disable fifo stop on full
Definition at line 57 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FIFO_SUBSAMPLING 0 |
fifo subsampling
Definition at line 62 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FIFO_TEMPERATURE_ON BMP390_BOOL_TRUE |
enable fifo temperature on
Definition at line 61 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FIFO_WATERMARK 256 |
256 fifo watermark
Definition at line 58 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_FILTER_COEFFICIENT BMP390_FILTER_COEFFICIENT_15 |
set filter coefficient 15
Definition at line 75 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_IIC_WATCHDOG_PERIOD BMP390_IIC_WATCHDOG_PERIOD_40_MS |
set watchdog timer period 40ms
Definition at line 56 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_IIC_WATCHDOG_TIMER BMP390_BOOL_TRUE |
enable iic watchdog timer
Definition at line 55 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_INTERRUPT_ACTIVE_LEVEL BMP390_INTERRUPT_ACTIVE_LEVEL_HIGHER |
interrupt pin active level higher
Definition at line 65 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_INTERRUPT_DATA_READY BMP390_BOOL_FALSE |
disable interrupt data ready
Definition at line 68 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_INTERRUPT_FIFO_FULL BMP390_BOOL_FALSE |
disable interrupt fifo full
Definition at line 67 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_INTERRUPT_PIN_TYPE BMP390_INTERRUPT_PIN_TYPE_PUSH_PULL |
interrupt pin type push pull
Definition at line 64 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_INTERRUPT_WATERMARK BMP390_BOOL_TRUE |
enable interrupt watermark
Definition at line 66 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_LATCH_INTERRUPT BMP390_BOOL_FALSE |
latch interrupt pin and interrupt status
Definition at line 69 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_ODR BMP390_ODR_12P5_HZ |
output data rate 12.5Hz
Definition at line 74 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_PRESSURE BMP390_BOOL_TRUE |
enable pressure
Definition at line 70 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_PRESSURE_OVERSAMPLING BMP390_OVERSAMPLING_x32 |
pressure oversampling x32
Definition at line 72 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_SPI_WIRE BMP390_SPI_WIRE_4 |
bmp390 fifo example default definition
4 wire spi
Definition at line 54 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_TEMPERATURE BMP390_BOOL_TRUE |
enable temperature
Definition at line 71 of file driver_bmp390_fifo.h.
| #define BMP390_FIFO_DEFAULT_TEMPERATURE_OVERSAMPLING BMP390_OVERSAMPLING_x2 |
temperature oversampling x2
Definition at line 73 of file driver_bmp390_fifo.h.
| #define BMP390_INTERRUPT_DEFAULT_FILTER_COEFFICIENT BMP390_FILTER_COEFFICIENT_15 |
set filter coefficient 15
Definition at line 64 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_IIC_WATCHDOG_PERIOD BMP390_IIC_WATCHDOG_PERIOD_1P25_MS |
set watchdog timer period 1.25ms
Definition at line 56 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_IIC_WATCHDOG_TIMER BMP390_BOOL_FALSE |
disable iic watchdog timer
Definition at line 55 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_INTERRUPT_ACTIVE_LEVEL BMP390_INTERRUPT_ACTIVE_LEVEL_HIGHER |
interrupt pin active level higher
Definition at line 58 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_INTERRUPT_PIN_TYPE BMP390_INTERRUPT_PIN_TYPE_PUSH_PULL |
interrupt pin type push pull
Definition at line 57 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_ODR BMP390_ODR_12P5_HZ |
output data rate 12.5Hz
Definition at line 63 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_PRESSURE BMP390_BOOL_TRUE |
enable pressure
Definition at line 59 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_PRESSURE_OVERSAMPLING BMP390_OVERSAMPLING_x32 |
pressure oversampling x32
Definition at line 61 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_SPI_WIRE BMP390_SPI_WIRE_4 |
bmp390 interrupt example default definition
4 wire spi
Definition at line 54 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_TEMPERATURE BMP390_BOOL_TRUE |
enable temperature
Definition at line 60 of file driver_bmp390_interrupt.h.
| #define BMP390_INTERRUPT_DEFAULT_TEMPERATURE_OVERSAMPLING BMP390_OVERSAMPLING_x2 |
temperature oversampling x2
Definition at line 62 of file driver_bmp390_interrupt.h.
| #define BMP390_SHOT_DEFAULT_FILTER_COEFFICIENT BMP390_FILTER_COEFFICIENT_15 |
set filter coefficient 15
Definition at line 62 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_IIC_WATCHDOG_PERIOD BMP390_IIC_WATCHDOG_PERIOD_40_MS |
set watchdog timer period 40ms
Definition at line 56 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_IIC_WATCHDOG_TIMER BMP390_BOOL_TRUE |
enable iic watchdog timer
Definition at line 55 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_ODR BMP390_ODR_12P5_HZ |
output data rate 12.5Hz
Definition at line 61 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_PRESSURE BMP390_BOOL_TRUE |
enable pressure
Definition at line 57 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_PRESSURE_OVERSAMPLING BMP390_OVERSAMPLING_x32 |
pressure oversampling x32
Definition at line 59 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_SPI_WIRE BMP390_SPI_WIRE_4 |
bmp390 shot example default definition
4 wire spi
Definition at line 54 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_TEMPERATURE BMP390_BOOL_TRUE |
enable temperature
Definition at line 58 of file driver_bmp390_shot.h.
| #define BMP390_SHOT_DEFAULT_TEMPERATURE_OVERSAMPLING BMP390_OVERSAMPLING_x2 |
temperature oversampling x2
Definition at line 60 of file driver_bmp390_shot.h.
| uint8_t bmp390_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 271 of file driver_bmp390_basic.c.
| uint8_t bmp390_basic_init | ( | bmp390_interface_t | interface, |
| bmp390_address_t | addr_pin ) |
basic example init
| [in] | interface | chip interface |
| [in] | addr_pin | iic device address |
Definition at line 50 of file driver_bmp390_basic.c.
| uint8_t bmp390_basic_read | ( | float * | temperature_c, |
| float * | pressure_pa ) |
basic example read
| [out] | *temperature_c | pointer a converted temperature data buffer |
| [out] | *pressure_pa | pointer a converted pressure data buffer |
Definition at line 247 of file driver_bmp390_basic.c.
| uint8_t bmp390_fifo_deinit | ( | void | ) |
fifo example deinit
Definition at line 394 of file driver_bmp390_fifo.c.
| uint8_t bmp390_fifo_init | ( | bmp390_interface_t | interface, |
| bmp390_address_t | addr_pin, | ||
| void(* | fifo_receive_callback )(uint8_t type) ) |
fifo example init
| [in] | interface | chip interface |
| [in] | addr_pin | iic device address |
| [in] | *fifo_receive_callback | pointer to a fifo receive callback |
Definition at line 71 of file driver_bmp390_fifo.c.
| uint8_t bmp390_fifo_irq_handler | ( | void | ) |
fifo example irq handler
Definition at line 48 of file driver_bmp390_fifo.c.
| uint8_t bmp390_fifo_read | ( | uint8_t * | buf, |
| uint16_t | buf_len, | ||
| bmp390_frame_t * | frame, | ||
| uint16_t * | frame_len ) |
fifo example read
| [in] | *buf | pointer a data buffer |
| [in] | buf_len | data buffer length |
| [out] | *frame | pointer a frame structure |
| [in,out] | *frame_len | pointer a frame data buffer |
Definition at line 371 of file driver_bmp390_fifo.c.
| uint8_t bmp390_interrupt_deinit | ( | void | ) |
interrupt example deinit
Definition at line 323 of file driver_bmp390_interrupt.c.
| uint8_t bmp390_interrupt_init | ( | bmp390_interface_t | interface, |
| bmp390_address_t | addr_pin, | ||
| void(* | interrupt_receive_callback )(uint8_t type) ) |
interrupt example init
| [in] | interface | chip interface |
| [in] | addr_pin | iic device address |
| [in] | *interrupt_receive_callback | pointer to a interrupt receive callback |
Definition at line 71 of file driver_bmp390_interrupt.c.
| uint8_t bmp390_interrupt_irq_handler | ( | void | ) |
interrupt example irq handler
Definition at line 48 of file driver_bmp390_interrupt.c.
| uint8_t bmp390_interrupt_read | ( | float * | temperature_c, |
| float * | pressure_pa ) |
interrupt example read
| [out] | *temperature_c | pointer a converted temperature data buffer |
| [out] | *pressure_pa | pointer a converted pressure data buffer |
Definition at line 299 of file driver_bmp390_interrupt.c.
| uint8_t bmp390_shot_deinit | ( | void | ) |
shot example deinit
Definition at line 241 of file driver_bmp390_shot.c.
| uint8_t bmp390_shot_init | ( | bmp390_interface_t | interface, |
| bmp390_address_t | addr_pin ) |
shot example init
| [in] | interface | chip interface |
| [in] | addr_pin | iic device address |
Definition at line 50 of file driver_bmp390_shot.c.
| uint8_t bmp390_shot_read | ( | float * | temperature_c, |
| float * | pressure_pa ) |
shot example read
| [out] | *temperature_c | pointer a converted temperature data buffer |
| [out] | *pressure_pa | pointer a converted pressure data buffer |
Definition at line 217 of file driver_bmp390_shot.c.