|
mraa
0.7.1
Low Level Skeleton Library for Communication on GNU/Linux platforms
|
This file defines the aio interface for libmraa
Public Member Functions | |
| Aio (unsigned int pin) | |
| ~Aio () | |
| int | read () |
| float | readFloat () |
| mraa_result_t | 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 |
Read a value from the AIO pin. By default mraa will shift the raw value up or down to a 10 bit value.

|
inline |
Read a value from the AIO pin and return it as a normalized float.

|
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.9.1