Typically used for 175x/6x/7x/8x and 407x/8x devices.
| #define GPIO_PORT_BITS 32 |
Initialize GPIO block.
- Parameters
-
| pGPIO | : The Base Address of the GPIO block (from GPIO0 to GPIO5) |
- Returns
- Nothing
Definition at line 68 of file gpio_002.h.
Read a GPIO direction (out or in)
- Parameters
-
| pGPIO | : The Base Address of the GPIO block (from GPIO0 to GPIO5) |
| Bit | : GPIO bit to read |
- Returns
- true of the GPIO is an output, false if input
Definition at line 122 of file gpio_002.h.
Read a GPIO state.
- Parameters
-
| pGPIO | : The Base Address of the GPIO block (from GPIO0 to GPIO5) |
| Bit | : GPIO bit to read |
- Returns
- true of the GPIO is high, false if low
Definition at line 111 of file gpio_002.h.
Set a GPIO direction.
- Parameters
-
| pGPIO | : The Base Address of the GPIO block (from GPIO0 to GPIO5) |
| Bit | : GPIO bit number to be configured |
| Setting | : true for output, false for input |
- Returns
- Nothing
Definition at line 95 of file gpio_002.h.
Set a GPIO port/bit state.
- Parameters
-
| pGPIO | : The Base Address of the GPIO block (from GPIO0 to GPIO5) |
| Bit | : GPIO bit number to be set/cleared |
| Setting | : true for high, false for low |
- Returns
- Nothing
Definition at line 78 of file gpio_002.h.