|
mraa
0.9.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
|
This file defines the aio interface for libmraa
Public Member Functions | |
| synchronized void | delete () |
| Aio (long pin) | |
| int | read () |
| float | readFloat () |
| Result | setBit (int bits) |
| int | getBit () |
| Aio | ( | long | pin | ) |
Aio Constructor, takes a pin number which will map directly to the board number
| pin | channel number to read ADC inputs |
| int getBit | ( | ) |
Gets the bit value mraa is shifting the analog read to.
| int read | ( | ) |
Read a value from the AIO pin. By default mraa will shift the raw value up or down to a 10 bit value.
| float readFloat | ( | ) |
Read a value from the AIO pin and return it as a normalized float.
| Result setBit | ( | int | bits | ) |
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 |
1.8.9.1