![]() |
NEORV32 - Software Framework Documentation
|
General purpose input/output port unit (GPIO) HW driver source file. More...
Functions | |
int | neorv32_gpio_available (void) |
void | neorv32_gpio_pin_set (int pin) |
void | neorv32_gpio_pin_clr (int pin) |
void | neorv32_gpio_pin_toggle (int pin) |
uint32_t | neorv32_gpio_pin_get (int pin) |
void | neorv32_gpio_port_set (uint64_t port_data) |
uint64_t | neorv32_gpio_port_get (void) |
General purpose input/output port unit (GPIO) HW driver source file.
int neorv32_gpio_available | ( | void | ) |
Check if GPIO unit was synthesized.
void neorv32_gpio_pin_clr | ( | int | pin | ) |
Clear single pin of GPIO's output port.
[in] | pin | Output pin number to be cleared (0..63). |
uint32_t neorv32_gpio_pin_get | ( | int | pin | ) |
Get single pin of GPIO's input port.
[in] | pin | Input pin to be read (0..63). |
void neorv32_gpio_pin_set | ( | int | pin | ) |
Set single pin of GPIO's output port.
[in] | pin | Output pin number to be set (0..63). |
void neorv32_gpio_pin_toggle | ( | int | pin | ) |
Toggle single pin of GPIO's output port.
[in] | pin | Output pin number to be toggled (0..63). |
uint64_t neorv32_gpio_port_get | ( | void | ) |
Get complete GPIO input port.
void neorv32_gpio_port_set | ( | uint64_t | port_data | ) |
Set complete GPIO output port.
[in] | port_data | New output port value (64-bit). |