Contiki-NG
Functions

Driver for the Sensortag BMP280 Altimeter / Pressure Sensor. More...

#include "contiki.h"
#include "lib/sensors.h"
#include "bmp-280-sensor.h"
#include "sys/ctimer.h"
#include "sensor-common.h"
#include "board-i2c.h"
#include "ti-lib.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>

Go to the source code of this file.

Functions

static void init (void)
 Initalise the sensor.
 
static void enable_sensor (bool enable)
 Enable/disable measurements. More...
 
static bool read_data (uint8_t *data)
 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...
 

Detailed Description

Driver for the Sensortag BMP280 Altimeter / Pressure Sensor.

Definition in file bmp-280-sensor.c.