libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
interrupt.c
Go to the documentation of this file.
1 #include <interrupt.h>
2 int gpio_interrupt_init(void){};
3 void gpio_ack_interrupt(void){};
5 void gpio_print_interrupt(void){};
9 uint64_t gpio_get_interrupt(void){};
10 uint8_t *gpio_get_interrupt_pins(uint8_t *positions){};
gpio_get_interrupt_pins
uint8_t * gpio_get_interrupt_pins(uint8_t *positions)
Gets all pins on which an interrupt occurred.
Definition: interrupt.c:10
verify_interrupt_request
void verify_interrupt_request(const io_t pin)
Checks for error in enabled pin. Terminates the process if the pin is not enabled.
Definition: interrupt.c:4
gpio_ack_interrupt
void gpio_ack_interrupt(void)
acknowledges the raised interrupts and resets the interrupt word. Allows new interrupts to occur on t...
Definition: interrupt.c:3
gpio_disable_all_interrupts
void gpio_disable_all_interrupts(void)
Disables all interrupts from being raised.
Definition: interrupt.c:8
interrupt.h
gpio_wait_for_interrupt
void gpio_wait_for_interrupt(const io_t pin)
Waits untill an interrupt occurs on the specified pin or if the value of pin is larger than 63,...
Definition: interrupt.c:11
gpio_print_interrupt
void gpio_print_interrupt(void)
prints the current interrupt word
Definition: interrupt.c:5
pin
Definition: switchbox.c:99
gpio_enable_interrupt
void gpio_enable_interrupt(const io_t pin)
enables a specific pin to raise interrupts.
Definition: interrupt.c:6
gpio_interrupt_init
int gpio_interrupt_init(void)
Enables interrupts to be set and read.
Definition: interrupt.c:2
gpio_get_interrupt
uint64_t gpio_get_interrupt(void)
Definition: interrupt.c:9
io_t
io_t
Definition: pinmap.h:45
gpio_disable_interrupt
void gpio_disable_interrupt(const io_t pin)
Disables interrupts from occuring on the specific pin. Hereafter, the pin will not trigger an interru...
Definition: interrupt.c:7