|
mraa
0.4.5
Low Level Skeleton Library for Communication on GNU/Linux platforms
|
Data Structures | |
| class | Aio |
| API to Analog IO. More... | |
| class | Gpio |
| API to General Purpose IO. More... | |
| class | I2c |
| API to Inter-Integrated Circuit. More... | |
| class | Pwm |
| API to Pulse Width Modulation. More... | |
| class | Spi |
| API to System Packet Interface. More... | |
| class | Uart |
| API to UART (enabling only) More... | |
Enumerations | |
| enum | Mode { MODE_STRONG = 0, MODE_PULLUP = 1, MODE_PULLDOWN = 2, MODE_HIZ = 3 } |
| enum | Dir { DIR_OUT = 0, DIR_IN = 1 } |
| enum | Edge { EDGE_NONE = 0, EDGE_BOTH = 1, EDGE_RISING = 2, EDGE_FALLING = 3 } |
Functions | |
| std::string | getVersion () |
| int | setPriority (const unsigned int priority) |
| mraa_platform_t | getPlatformType () |
| void | printError (mraa_result_t result) |
| bool | pinModeTest (int pin, mraa_pinmodes_t mode) |
| unsigned int | adcRawBits () |
| unsigned int | adcSupportedBits () |
namespace
| enum Mode |
| enum Edge |
| std::string mraa::getVersion | ( | ) |
Get libmraa version.

| int mraa::setPriority | ( | const unsigned int | priority | ) |
This function attempts to set the mraa process to a given priority and the scheduler to SCHED_RR. Highest * priority is typically 99 and minimum is 0. This function * will set to MAX if * priority is > MAX. Function will return -1 on failure.
| priority | Value from typically 0 to 99 |

| mraa_platform_t mraa::getPlatformType | ( | ) |
Get platform type, board must be initialised.

| void mraa::printError | ( | mraa_result_t | result | ) |
Print a textual representation of the mraa_result_t
| result | the result to print |

| bool mraa::pinModeTest | ( | int | pin, |
| mraa_pinmodes_t | mode | ||
| ) |
Checks if a pin is able to use the passed in mode.
| pin | Physical Pin to be checked. |
| mode | the mode to be tested. |

| unsigned int mraa::adcRawBits | ( | ) |
Check the board's bit size when reading the value

| unsigned int mraa::adcSupportedBits | ( | ) |
Return value that the raw value should be shifted to. Zero if no ADC

1.8.7