-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_airqual4click_i2c.h
33 lines (24 loc) · 1.1 KB
/
app_airqual4click_i2c.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************//**
* @file
* @brief Air Quality 4 click i2c functions
*******************************************************************************
* # MIT License
* <b>Copyright 2021 Colin Gerrish</b>
******************************************************************************/
#ifndef APP_AIRQUAL4CLICK_I2C_H
#define APP_AIRQUAL4CLICK_I2C_H
#include <stdio.h>
#include <string.h>
#include "em_chip.h"
#include "sl_status.h"
#include "sl_simple_led_instances.h"
#include "sl_sleeptimer.h"
/***************************************************************************//**
* Initialize air quality 4 click i2c
******************************************************************************/
void app_airqual4click_i2c_init(void);
/***************************************************************************//**
* Retrieves CO2 and VOC values from air quality 4 click i2c
******************************************************************************/
bool get_airqualitydata(uint16_t* CO2, uint16_t* TVOC);
#endif // APP_AIRQUAL4CLICK_I2C_H