![]() |
BlueNinja BSP
0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
|
Airpressure sensor(BOSH BMP280) driver for TZ10xx. [詳解]
#include <stdint.h>
#include <stdbool.h>
#include "TZ10xx.h"
#include "PMU_TZ10xx.h"
#include "Driver_I2C.h"
#include "BMP280.h"
#include "utils.h"
関数 | |
bool | BMP280_drv_reset (void) |
Reset BMP280. [詳解] | |
uint8_t | BMP280_drv_id_get (void) |
Read from ID register. [詳解] | |
uint8_t | BMP280_drv_status_get (void) |
Read from STATUS register. [詳解] | |
bool | BMP280_drv_ctrl_meas_set (uint8_t val) |
Write to MEAS register. [詳解] | |
uint8_t | BMP280_drv_ctrl_meas_get (void) |
Read from MEAS register. [詳解] | |
bool | BMP280_drv_config_set (uint8_t val) |
Write to CONFIG register. [詳解] | |
uint8_t | BMP280_drv_config_get (void) |
Read from CONFIG register. [詳解] | |
uint32_t | BMP280_drv_press_get (void) |
Read from maesured value of Airpressure. [詳解] | |
int32_t | BMP280_drv_temp_get (void) |
Read from maesured value of temperature. [詳解] | |
bool | BMP280_drv_init (ARM_DRIVER_I2C *i2c_drv) |
Initialize BMP280 driver. [詳解] | |
Airpressure sensor(BOSH BMP280) driver for TZ10xx.
uint8_t BMP280_drv_config_get | ( | void | ) |
Read from CONFIG register.
bool BMP280_drv_config_set | ( | uint8_t | val | ) |
Write to CONFIG register.
[in] | val | Write value; |
true | Success. |
false | Failed. |
uint8_t BMP280_drv_ctrl_meas_get | ( | void | ) |
Read from MEAS register.
bool BMP280_drv_ctrl_meas_set | ( | uint8_t | val | ) |
Write to MEAS register.
[in] | val | Write value; |
true | Success. |
false | Failed. |
uint8_t BMP280_drv_id_get | ( | void | ) |
Read from ID register.
bool BMP280_drv_init | ( | ARM_DRIVER_I2C * | i2c_drv | ) |
Initialize BMP280 driver.
[in] | i2c_drv | TZ10xx I2C driver information |
true | Success. |
false | Failed. |
uint32_t BMP280_drv_press_get | ( | void | ) |
Read from maesured value of Airpressure.
bool BMP280_drv_reset | ( | void | ) |
Reset BMP280.
true | Success |
false | Failed |
uint8_t BMP280_drv_status_get | ( | void | ) |
Read from STATUS register.
int32_t BMP280_drv_temp_get | ( | void | ) |
Read from maesured value of temperature.