37 #include <sys/select.h> 38 #include <sys/types.h> 41 #include <mraa/uart.h> 86 MHZ16(
const std::string& uart_raw =
"/dev/ttyS0");
111 int readData(
char *buffer,
int len);
169 int ttyFd() {
return m_ttyFd; };
172 mraa_uart_context m_uart;
API support for the Grove CO2 sensor.
Definition: mhz16.hpp:70
MHZ16(int uart)
Definition: mhz16.cxx:36
bool verifyPacket(uint8_t *pkt, int len)
Definition: mhz16.cxx:196
int writeData(char *buffer, int len)
Definition: mhz16.cxx:145
int getGas()
Definition: mhz16.cxx:242
void calibrateZeroPoint()
Definition: mhz16.cxx:252
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
virtual ~MHZ16()
Definition: mhz16.cxx:94
int getTemperature()
Definition: mhz16.cxx:247
bool dataAvailable(unsigned int millis)
Definition: mhz16.cxx:102
bool getData()
Definition: mhz16.cxx:207
bool setupTty(speed_t baud=B9600)
Definition: mhz16.cxx:167
int readData(char *buffer, int len)
Definition: mhz16.cxx:125