|
mraa
2.0.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
|
This file defines the aio interface for libmraa
Public Member Functions | |
| Aio (int pin) | |
| Aio (void *aio_context) | |
| ~Aio () | |
| unsigned int | read () |
| float | readFloat () |
| Result | setBit (int bits) |
| int | getBit () |
|
inline |
Aio Constructor, takes a pin number which will map directly to the board number
| pin | channel number to read ADC inputs |

|
inline |
|
inline |
Read a value from the AIO pin. By default mraa will shift the raw value up or down to a 10 bit value.
| std::invalid_argument | in case of error |

|
inline |
Read a value from the AIO pin and return it as a normalized float.
| std::invalid_argument | in case of error |

|
inline |
Set the bit value which mraa will shift the raw reading from the ADC to. I.e. 10bits
| bits | the bits the return from read should be i.e 10 |

|
inline |
Gets the bit value mraa is shifting the analog read to.

1.8.11