objc

Data Structures | Typedefs | Functions
drivers_envirophat.h File Reference

Enviro pHAT sensor interface. More...

#include <drivers/drivers_bme280.h>
#include <drivers/drivers_lsm303.h>
#include <drivers/drivers_tcs3472.h>
#include <runtime-hw/hw.h>
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for drivers_envirophat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  driver_envirophat_t
 Enviro pHAT sensor driver structure. More...
 

Typedefs

typedef struct driver_envirophat_t driver_envirophat_t
 Enviro pHAT sensor driver structure. More...
 

Functions

bool driver_envirophat_init (driver_envirophat_t *driver)
 Initialize a Enviro pHAT driver using the I2C interface. More...
 
void driver_envirophat_finalize (driver_envirophat_t *driver)
 Finalize and release a Enviro pHAT driver. More...
 
void driver_envirophat_set_led (driver_envirophat_t *driver, bool state)
 Set the state of the Enviro pHAT LED. More...
 
bool driver_envirophat_read_color (driver_envirophat_t *driver, driver_tcs3472_rgbc_t *data)
 Read RGBC color data from the TCS3472 sensor. More...
 
bool driver_envirophat_read_accel (driver_envirophat_t *driver, driver_lsm303_vec3_t *data)
 Read accelerometer data from the LSM303 sensor. More...
 
bool driver_envirophat_read_mag (driver_envirophat_t *driver, driver_lsm303_vec3_t *data)
 Read magnetometer data from the LSM303 sensor. More...
 
bool driver_envirophat_read_temp (driver_envirophat_t *driver, float *temp)
 Read temperature from the LSM303 sensor. More...
 
bool driver_envirophat_read_environmental (driver_envirophat_t *driver, driver_bme280_data_t *data)
 Read environmental data from BME280 sensor. More...
 

Detailed Description

Enviro pHAT sensor interface.

Definition in file drivers_envirophat.h.