libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
gpio.c
Go to the documentation of this file.
1#include <gpio.h>
2void gpio_init(void){};
3void gpio_destroy(void){};
4void gpio_reset_pin(const gpio_t pin){};
5void gpio_set_direction(const gpio_t pin, const gpio_direction_t direction){};
7void gpio_set_level(const gpio_t pin, const gpio_level_t level){};
9/*
10void gpio_ack_interrupt(){};
11void gpio_print_interrupt(){};
12void gpio_enable_interrupt(const gpio_t ping){};
13void gpio_disable_interrupt(const gpio_t ping){};
14void gpio_disable_all_interrupts(){};
15uint8_t *gpio_get_interrupt_pins(){};
16uint64_t gpio_get_interrupt(){};
17*/
18void gpio_reset(void){};
void gpio_reset(void)
Reset all GPIO pins.
Definition gpio.c:18
uint8_t gpio_t
Definition gpio.h:99
gpio_direction_t gpio_get_direction(const gpio_t pin)
Returns the direction the set pin is initialized in.
Definition gpio.c:6
gpio_level_t gpio_get_level(const gpio_t pin)
Return the level of the GPIO pin.
Definition gpio.c:8
gpio_direction_t
Definition gpio.h:79
gpio_level_t
Definition gpio.h:89
void gpio_set_level(const gpio_t pin, const gpio_level_t level)
Set the level of the output GPIO pin. If the pin is configured as input, this function does nothing.
Definition gpio.c:7
void gpio_reset_pin(const gpio_t pin)
Function is currently a no-op placeholder for arduino compatibility.
Definition gpio.c:4
void gpio_destroy(void)
Definition gpio.c:3
void gpio_set_direction(const gpio_t pin, const gpio_direction_t direction)
Set the GPIO pin as in input or output.
Definition gpio.c:5
void gpio_init(void)
Definition gpio.c:2