36 #include <mraa/common.hpp> 
   37 #include <mraa/uart.hpp> 
   39 #define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0" 
   45 #define ADC_PRECISION 10 
   96     NLGPIO16(std::string uart=NLGPIO16_DEFAULT_UART_DEV);
 
  125     void setID(std::string 
id);
 
  230     bool dataAvailable(
unsigned int millis);
 
  231     std::string readStr(
int len);
 
  232     int writeStr(std::string data);
 
  235     std::string sendCommand(std::string cmd);
 
std::string getVersion()
Definition: nlgpio16.cxx:286
 
void setID(std::string id)
Definition: nlgpio16.cxx:296
 
void gpioWriteAll(int mask)
Definition: nlgpio16.cxx:266
 
API for the NLGPIO16 16 channel USB GPIO Module. 
Definition: nlgpio16.hpp:88
 
~NLGPIO16()
Definition: nlgpio16.cxx:72
 
float analogReadVolts(int adc)
Definition: nlgpio16.cxx:338
 
std::string getID()
Definition: nlgpio16.cxx:291
 
void gpioSetIOMask(int mask)
Definition: nlgpio16.cxx:226
 
int analogReadValue(int adc)
Definition: nlgpio16.cxx:313
 
void gpioClear(int gpio)
Definition: nlgpio16.cxx:166
 
unsigned int gpioReadAll()
Definition: nlgpio16.cxx:207
 
void gpioSet(int gpio)
Definition: nlgpio16.cxx:149
 
NLGPIO16(std::string uart=NLGPIO16_DEFAULT_UART_DEV)
Definition: nlgpio16.cxx:66
 
void gpioSetIODir(int mask)
Definition: nlgpio16.cxx:246
 
bool gpioRead(int gpio)
Definition: nlgpio16.cxx:183