Contiki-NG
|
Driver for the Sensortag BMP280 Altimeter / Pressure Sensor. More...
#include "contiki.h"
#include "lib/sensors.h"
#include "sys/ctimer.h"
#include "board-conf.h"
#include "bmp-280-sensor.h"
#include <Board.h>
#include <ti/drivers/I2C.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Functions | |
static bool | init (void) |
Initalise the sensor. More... | |
static bool | enable_sensor (bool enable) |
Enable/disable measurements. More... | |
static bool | read_data (uint8_t *data, size_t count) |
Read temperature and pressure data. More... | |
static void | convert (uint8_t *data, int32_t *temp, uint32_t *press) |
Convert raw data to values in degrees C (temp) and Pascal (pressure). More... | |
static int | value (int type) |
Returns a reading from the sensor. More... | |
static int | configure (int type, int enable) |
Configuration function for the BMP280 sensor. More... | |
static int | status (int type) |
Returns the status of the sensor. More... | |
Driver for the Sensortag BMP280 Altimeter / Pressure Sensor.
Definition in file bmp-280-sensor.c.