Wii GPIO. More...
#include "gpio.h"Functions | |
| void | gpio_write (uint32_t bit, bool set) |
| Writes a GPIO output. | |
| bool | gpio_read (uint32_t bit) |
| Reads a GPIO Input. | |
| void | gpio_set_direction (uint32_t bit, bool direction) |
| Sets the direction of the GPIO. | |
Wii GPIO.
Control the GPIO controller on the Wii
| bool gpio_read | ( | uint32_t | bit | ) |
Reads a GPIO Input.
Reads the value of a GPIO Input
| bit | Bit to read value of |
| void gpio_set_direction | ( | uint32_t | bit, |
| bool | direction ) |
Sets the direction of the GPIO.
Sets the direction of a bit.
This is set to the expected value before the game runs.
| bit | Bit to set |
| Direction | False = Input, True = Output |
| void gpio_write | ( | uint32_t | bit, |
| bool | set ) |
Writes a GPIO output.
Writes the bit to the GPIO controller.
| bit | Bit to set/clear |