libpynq (release 5EWC0-2023 version 0.2.2 of 2023-09-24 22:22)
Loading...
Searching...
No Matches
gpio.h File Reference
#include <pinmap.h>
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define gpio_t   pin_t
 

Enumerations

enum  gpio_direction_t { GPIO_DIR_INPUT = 0 , GPIO_DIR_OUTPUT = 1 }
 
enum  gpio_level_t { GPIO_LEVEL_LOW = 0 , GPIO_LEVEL_HIGH = 1 }
 

Functions

void gpio_init (void)
 
void gpio_destroy (void)
 
void gpio_reset_pin (const pin_t pin)
 
void gpio_set_direction (const pin_t pin, const gpio_direction_t direction)
 
gpio_direction_t gpio_get_direction (const pin_t pin)
 
void gpio_set_level (const pin_t pin, const gpio_level_t level)
 
gpio_level_t gpio_get_level (const pin_t pin)
 
void gpio_reset (void)
 
bool gpio_is_initialized (void)