![]() |
LibDriver BMP280
|
driver bmp280 header file More...
#include <stdio.h>#include <stdint.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | bmp280_handle_s |
| bmp280 handle structure definition More... | |
| struct | bmp280_info_s |
| bmp280 information structure definition More... | |
Macros | |
| #define | DRIVER_BMP280_LINK_INIT(HANDLE, STRUCTURE) |
| initialize bmp280_handle_t structure | |
| #define | DRIVER_BMP280_LINK_IIC_INIT(HANDLE, FUC) |
| link iic_init function | |
| #define | DRIVER_BMP280_LINK_IIC_DEINIT(HANDLE, FUC) |
| link iic_deinit function | |
| #define | DRIVER_BMP280_LINK_IIC_READ(HANDLE, FUC) |
| link iic_read function | |
| #define | DRIVER_BMP280_LINK_IIC_WRITE(HANDLE, FUC) |
| link iic_write function | |
| #define | DRIVER_BMP280_LINK_SPI_INIT(HANDLE, FUC) |
| link spi_init function | |
| #define | DRIVER_BMP280_LINK_SPI_DEINIT(HANDLE, FUC) |
| link spi_deinit function | |
| #define | DRIVER_BMP280_LINK_SPI_READ(HANDLE, FUC) |
| link spi_read function | |
| #define | DRIVER_BMP280_LINK_SPI_WRITE(HANDLE, FUC) |
| link spi_write function | |
| #define | DRIVER_BMP280_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | DRIVER_BMP280_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
Typedefs | |
| typedef struct bmp280_handle_s | bmp280_handle_t |
| bmp280 handle structure definition | |
| typedef struct bmp280_info_s | bmp280_info_t |
| bmp280 information structure definition | |
Functions | |
| uint8_t | bmp280_info (bmp280_info_t *info) |
| get chip's information | |
| uint8_t | bmp280_set_interface (bmp280_handle_t *handle, bmp280_interface_t interface) |
| set the interface | |
| uint8_t | bmp280_get_interface (bmp280_handle_t *handle, bmp280_interface_t *interface) |
| get the interface | |
| uint8_t | bmp280_set_addr_pin (bmp280_handle_t *handle, bmp280_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | bmp280_get_addr_pin (bmp280_handle_t *handle, bmp280_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | bmp280_init (bmp280_handle_t *handle) |
| initialize the chip | |
| uint8_t | bmp280_deinit (bmp280_handle_t *handle) |
| close the chip | |
| uint8_t | bmp280_read_temperature_pressure (bmp280_handle_t *handle, uint32_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, float *pressure_pa) |
| read the temperature and pressure data | |
| uint8_t | bmp280_read_pressure (bmp280_handle_t *handle, uint32_t *pressure_raw, float *pressure_pa) |
| read the pressure data | |
| uint8_t | bmp280_read_temperature (bmp280_handle_t *handle, uint32_t *temperature_raw, float *temperature_c) |
| read the temperature data | |
| uint8_t | bmp280_soft_reset (bmp280_handle_t *handle) |
| soft reset | |
| uint8_t | bmp280_get_status (bmp280_handle_t *handle, uint8_t *status) |
| get status | |
| uint8_t | bmp280_set_temperatue_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t oversampling) |
| set temperatue oversampling | |
| uint8_t | bmp280_get_temperatue_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t *oversampling) |
| get temperatue oversampling | |
| uint8_t | bmp280_set_pressure_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t oversampling) |
| set pressure oversampling | |
| uint8_t | bmp280_get_pressure_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t *oversampling) |
| get pressure oversampling | |
| uint8_t | bmp280_set_mode (bmp280_handle_t *handle, bmp280_mode_t mode) |
| set mode | |
| uint8_t | bmp280_get_mode (bmp280_handle_t *handle, bmp280_mode_t *mode) |
| get mode | |
| uint8_t | bmp280_set_standby_time (bmp280_handle_t *handle, bmp280_standby_time_t standby_time) |
| set standby time | |
| uint8_t | bmp280_get_standby_time (bmp280_handle_t *handle, bmp280_standby_time_t *standby_time) |
| get standby time | |
| uint8_t | bmp280_set_filter (bmp280_handle_t *handle, bmp280_filter_t filter) |
| set filter | |
| uint8_t | bmp280_get_filter (bmp280_handle_t *handle, bmp280_filter_t *filter) |
| get filter | |
| uint8_t | bmp280_set_spi_wire (bmp280_handle_t *handle, bmp280_spi_wire_t spi) |
| set spi wire | |
| uint8_t | bmp280_get_spi_wire (bmp280_handle_t *handle, bmp280_spi_wire_t *spi) |
| get spi wire | |
| 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 | |
driver bmp280 header file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2024/01/15 | 1.0 | Shifeng Li | first upload |
Definition in file driver_bmp280.h.