libpynq (release 5EWC0-2023 version 0.1.0 of 2023-08-14 14:01)
Loading...
Searching...
No Matches
gpio.h File Reference
#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.

Typedefs

typedef uint8_t gpio_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 gpio_t pin)
 
void gpio_set_direction (const gpio_t pin, const gpio_direction_t direction)
 
gpio_direction_t gpio_get_direction (const gpio_t pin)
 
void gpio_set_level (const gpio_t pin, const gpio_level_t level)
 
gpio_level_t gpio_get_level (const gpio_t pin)
 
void gpio_ack_interrupt ()
 
void gpio_print_interrupt ()
 
void gpio_enable_interrupt (const gpio_t ping)
 
void gpio_disable_interrupt (const gpio_t ping)
 
void gpio_disable_all_interrupts ()
 
uint8_t * gpio_get_interrupt_pins ()
 
uint64_t gpio_get_interrupt ()
 
void gpio_reset (void)