47 Aio(
unsigned int pin) {
50 throw std::invalid_argument(
"Invalid AIO pin specified - do you have an ADC?");
mraa_result_t mraa_aio_close(mraa_aio_context dev)
mraa_result_t setBit(int bits)
Definition: aio.hpp:74
int getBit()
Definition: aio.hpp:82
API to Analog IO.
Definition: aio.hpp:39
int mraa_aio_get_bit(mraa_aio_context dev)
struct _aio * mraa_aio_context
Definition: aio.h:51
int read()
Definition: aio.hpp:65
unsigned int mraa_aio_read(mraa_aio_context dev)
mraa_result_t mraa_aio_set_bit(mraa_aio_context dev, int bits)
mraa_result_t
Definition: types.h:145
mraa_aio_context mraa_aio_init(unsigned int pin)
~Aio()
Definition: aio.hpp:56
Aio(unsigned int pin)
Definition: aio.hpp:47