Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
gpio.h File Reference

Header file for GPIO operations in Rishka applications. More...

#include <librishka/types.h>

Go to the source code of this file.

Classes

class  Gpio
 Class for handling GPIO operations in Rishka applications. More...
 

Enumerations

enum  gpio_pin_mode_t { GPIO_INPUT = 0x01 , GPIO_OUTPUT = 0x03 , GPIO_INPUT_PULLUP = 0x05 }
 Enum representing the pin modes for GPIO pins. More...
 
enum  gpio_mode_t { GPIO_LOW = 0x0 , GPIO_HIGH = 0x1 }
 Enum representing the digital modes for GPIO pins. More...
 

Detailed Description

Header file for GPIO operations in Rishka applications.

Author
Nathanne Isip

This header file defines the Gpio class, which provides functionalities for interacting with General Purpose Input/Output (GPIO) pins on ESP32-WROVER microcontrollers.

Enumeration Type Documentation

◆ gpio_mode_t

Enum representing the digital modes for GPIO pins.

This enum specifies the digital modes for GPIO pins.

  • GPIO_LOW: Represents a low digital value (0).
  • GPIO_HIGH: Represents a high digital value (1).
Enumerator
GPIO_LOW 

Low digital value

GPIO_HIGH 

High digital value

◆ gpio_pin_mode_t

Enum representing the pin modes for GPIO pins.

This enum specifies the available pin modes for configuring GPIO pins.

  • GPIO_INPUT: Configures the pin as an input.
  • GPIO_OUTPUT: Configures the pin as an output.
  • GPIO_INPUT_PULLUP: Configures the pin as an input with a pull-up resistor enabled.
Enumerator
GPIO_INPUT 

Input mode

GPIO_OUTPUT 

Output mode

GPIO_INPUT_PULLUP 

Input mode with pull-up resistor