oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Namespaces | Functions
gpio.hpp File Reference

GPIO pin configuration and control functions. More...

#include <ove/gpio.h>
#include <ove/types.hpp>
Include dependency graph for gpio.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ove
 Top-level namespace for all oveRTOS C++ abstractions.
 
namespace  ove::gpio
 Thin C++ wrappers around the oveRTOS GPIO API.
 

Functions

int ove::gpio::configure (unsigned int port, unsigned int pin, ove_gpio_mode_t mode)
 Configures a GPIO pin with the specified mode.
 
int ove::gpio::set (unsigned int port, unsigned int pin, int value)
 Drives a GPIO output pin to the specified logic level.
 
int ove::gpio::get (unsigned int port, unsigned int pin)
 Reads the current logic level of a GPIO pin.
 
int ove::gpio::irq_register (unsigned int port, unsigned int pin, ove_gpio_irq_mode_t mode, ove_gpio_irq_cb callback, void *user_data)
 Registers an interrupt callback for a GPIO pin.
 
int ove::gpio::irq_enable (unsigned int port, unsigned int pin)
 Enables the interrupt for a GPIO pin (must be registered first).
 
int ove::gpio::irq_disable (unsigned int port, unsigned int pin)
 Disables the interrupt for a GPIO pin.
 

Detailed Description

GPIO pin configuration and control functions.