libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
gpio.c
Go to the documentation of this file.
1 #include <gpio.h>
2 void gpio_init(void){};
3 void gpio_destroy(void){};
4 void gpio_reset_pin(const io_t pin){};
5 void gpio_set_direction(const io_t pin, const gpio_direction_t direction){};
7 void gpio_set_level(const io_t pin, const gpio_level_t level){};
9 /*
10 void gpio_ack_interrupt(){};
11 void gpio_print_interrupt(){};
12 void gpio_enable_interrupt(const io_t ping){};
13 void gpio_disable_interrupt(const io_t ping){};
14 void gpio_disable_all_interrupts(){};
15 uint8_t *gpio_get_interrupt_pins(){};
16 uint64_t gpio_get_interrupt(){};
17 */
18 void gpio_reset(void){};
gpio_direction_t
gpio_direction_t
Definition: gpio.h:88
gpio_set_level
void gpio_set_level(const io_t pin, const gpio_level_t level)
Set the level of the output IO pin. If the pin is configured as input, this function does nothing.
Definition: gpio.c:7
gpio_reset_pin
void gpio_reset_pin(const io_t pin)
Function is currently a no-op placeholder for arduino compatibility.
Definition: gpio.c:4
gpio_get_level
gpio_level_t gpio_get_level(const io_t pin)
Return the level of the IO pin.
Definition: gpio.c:8
gpio_set_direction
void gpio_set_direction(const io_t pin, const gpio_direction_t direction)
Set the IO pin as in input or output.
Definition: gpio.c:5
gpio_level_t
gpio_level_t
Definition: gpio.h:98
pin
Definition: switchbox.c:99
gpio_init
void gpio_init(void)
Definition: gpio.c:2
gpio_reset
void gpio_reset(void)
Reset all IO pins.
Definition: gpio.c:18
gpio.h
gpio_get_direction
gpio_direction_t gpio_get_direction(const io_t pin)
Returns the direction the set pin is initialized in.
Definition: gpio.c:6
io_t
io_t
Definition: pinmap.h:45
gpio_destroy
void gpio_destroy(void)
Definition: gpio.c:3