dpyGpio Namespace Reference

Deepsy GPIO namespace that includes the different enums, structs or method signatures that should be used.

Classes

struct  GpioInfoConf
 
struct  GpioStatus
 

Typedefs

typedef boost::function< void(const bool &available)> service_availability_handler
 Prototype of the handler function used to monitor service availability. More...
 
typedef boost::function< void(boost::system::error_code error_code)> result_handler_function
 Prototype of the handler function for obtaining a result. More...
 
typedef boost::function< void(boost::system::error_code, std::map< std::string, dpyGpio::GpioInfoConf > gpioMap)> gpio_list_handler
 Prototype of the handler function for getting gpios. More...
 
typedef boost::function< void(boost::system::error_code error_code, const std::string &id, dpyGpio::GpioStatus status)> gpio_status_handler_function
 Prototype of the handler function for getting gpio value. More...
 
typedef boost::function< void(const std::string &gpioid, const GpioStatus &statusEvent)> GpioEventFunction
 Gpio event handler function.
 

Enumerations

enum  GpioDirection { INPUT = 0, OUTPUT = 1 }
 
enum  EdgeType { FALLING = 0, RISING = 1, BOTH = 2 }
 

Typedef Documentation

typedef boost::function<void(boost::system::error_code, std::map<std::string, dpyGpio::GpioInfoConf> gpioMap)> gpio_list_handler
Parameters
error_codeerror code (if any)
gpiosmap of gpios ids and configurations
typedef boost::function<void(boost::system::error_code error_code, const std::string& id, dpyGpio::GpioStatus status)> gpio_status_handler_function
Parameters
error_codeerror code (if any)
idGPIO identifier
statusgpio status
typedef boost::function<void(boost::system::error_code error_code)> result_handler_function
Parameters
error_codeerror code (if any)
typedef boost::function<void(const bool &available)> service_availability_handler
Parameters
availabletrue if the service is available, false otherwise

Enumeration Type Documentation

Enumerator
INPUT 

INPUT.

OUTPUT 

OUTPUT.