mraa  1.5.1
Low Level Skeleton Library for Communication on GNU/Linux platforms
 All Data Structures Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Namespaces | Functions
common.hpp File Reference

API Description

This file defines the interface for libmraa common functions

Go to the source code of this file.




Result init ()
std::string getVersion ()
int setPriority (const int priority)
Platform getPlatformType ()
void printError (Result result)
bool pinModeTest (int pin, Pinmodes mode)
unsigned int adcRawBits ()
unsigned int adcSupportedBits ()
std::string getPlatformName ()
std::string getPlatformVersion (int platform_offset=MRAA_MAIN_PLATFORM_OFFSET)
unsigned int getPinCount ()
int getI2cBusCount ()
int getI2cBusId (int i2c_bus)
std::string getPinName (int pin)
Result setLogLevel (int level)
bool hasSubPlatform ()
bool isSubPlatformId (int pin_or_bus_id)
int getSubPlatformId (int pin_or_bus_index)
int getSubPlatformIndex (int pin_or_bus_id)
int getDefaultI2cBus (int platform_offset=MRAA_MAIN_PLATFORM_OFFSET)
Result addSubplatform (Platform subplatformtype, std::string uart_dev)
Result removeSubplatform (Platform subplatformtype)
template<class T >
T * initIo (std::string desc)
Result initJsonPlatform (std::string path)
Include dependency graph for common.hpp: