85 Gpio(
int pin,
bool owner=
true,
bool raw=
false) {
94 throw std::invalid_argument(
"Invalid GPIO pin specified");
117 #if defined(SWIGPYTHON)
int read()
Definition: gpio.hpp:167
mraa_result_t dir(Dir dir)
Definition: gpio.hpp:159
mraa_result_t mraa_gpio_owner(mraa_gpio_context dev, mraa_boolean_t owner)
API to General Purpose IO.
Definition: gpio.hpp:71
mraa_result_t mraa_gpio_edge_mode(mraa_gpio_context dev, gpio_edge_t mode)
mraa_result_t write(int value)
Definition: gpio.hpp:176
unsigned int mraa_boolean_t
Definition: common.h:44
mraa_result_t isrExit()
Definition: gpio.hpp:141
Gpio(int pin, bool owner=true, bool raw=false)
Definition: gpio.hpp:85
mraa_result_t mraa_gpio_isr_exit(mraa_gpio_context dev)
gpio_mode_t
Definition: gpio.h:61
mraa_result_t mraa_gpio_dir(mraa_gpio_context dev, gpio_dir_t dir)
mraa_result_t mraa_gpio_close(mraa_gpio_context dev)
~Gpio()
Definition: gpio.hpp:105
mraa_result_t isr(Edge mode, void(*fptr)(void *), void *args)
Definition: gpio.hpp:131
Dir
Definition: gpio.hpp:47
mraa_result_t mraa_gpio_mode(mraa_gpio_context dev, gpio_mode_t mode)
gpio_dir_t
Definition: gpio.h:71
Edge
Definition: gpio.hpp:57
mraa_result_t mraa_gpio_isr(mraa_gpio_context dev, gpio_edge_t edge, void(*fptr)(void *), void *args)
int mraa_gpio_get_pin(mraa_gpio_context dev)
mraa_gpio_context mraa_gpio_init_raw(int gpiopin)
struct _gpio * mraa_gpio_context
Definition: gpio.h:56
mraa_gpio_context mraa_gpio_init(int pin)
mraa_result_t edge(Edge mode)
Definition: gpio.hpp:114
int mraa_gpio_get_pin_raw(mraa_gpio_context dev)
mraa_result_t
Definition: types.h:145
mraa_result_t useMmap(bool enable)
Definition: gpio.hpp:185
int getPin(bool raw=false)
Definition: gpio.hpp:195
gpio_edge_t
Definition: gpio.h:81
mraa_result_t mode(Mode mode)
Definition: gpio.hpp:150
mraa_result_t mraa_gpio_write(mraa_gpio_context dev, int value)
mraa_result_t mraa_gpio_use_mmaped(mraa_gpio_context dev, mraa_boolean_t mmap)
int mraa_gpio_read(mraa_gpio_context dev)
Mode
Definition: gpio.hpp:37