gpio.hpp File Reference
Include dependency graph for gpio.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
class | GPIO |
Macros | |
#define | __PNSB 5 |
The "Port Number Start Bit" which is used to get value of port number from LPC1758_GPIO_Type. More... | |
Enumerations | |
enum | LPC1758_GPIO_Type { P0_0 = (0 << __PNSB) | 0, P0_1 = (0 << __PNSB) | 1, P0_26 = (0 << __PNSB) | 26, P0_29 = (0 << __PNSB) | 29, P0_30 = (0 << __PNSB) | 30, P1_19 = (1 << __PNSB) | 19, P1_20 = (1 << __PNSB) | 20, P1_22 = (1 << __PNSB) | 22, P1_23 = (1 << __PNSB) | 23, P1_28 = (1 << __PNSB) | 28, P1_29 = (1 << __PNSB) | 29, P1_30 = (1 << __PNSB) | 30, P1_31 = (1 << __PNSB) | 31, P2_0 = (2 << __PNSB) | 0, P2_1 = (2 << __PNSB) | 1, P2_2 = (2 << __PNSB) | 2, P2_3 = (2 << __PNSB) | 3, P2_4 = (2 << __PNSB) | 4, P2_5 = (2 << __PNSB) | 5, P2_6 = (2 << __PNSB) | 6, P2_7 = (2 << __PNSB) | 7, P2_8 = (2 << __PNSB) | 8, P2_9 = (2 << __PNSB) | 9, P4_28 = (4 << __PNSB) | 28, P4_29 = (4 << __PNSB) | 29 } |
Macro Definition Documentation
#define __PNSB 5 |
The "Port Number Start Bit" which is used to get value of port number from LPC1758_GPIO_Type.
Enumeration Type Documentation
enum LPC1758_GPIO_Type |
Enumeration of GPIO IDs. The pins are also labeled with popular alternate options just for reference.
- Warning
- Do not change the value(s) or the order of the enumerations. The enum value is a combination of port number and the pin number
Enumerator | |
---|---|
P0_0 |
Uart, I2C, CAN |
P0_1 |
Uart, I2C, CAN |
P0_26 |
AD0.3, AOUT, U3-Tx |
P0_29 |
USB D+ |
P0_30 |
USB D- |
P1_19 | |
P1_20 |
CAP1.1, MCOA0 |
P1_22 |
MCI0, PWM1.2 |
P1_23 |
MCOB0, USB_PWRD, MAT1.0 |
P1_28 |
MCI1, PWM1.4 |
P1_29 |
MAT0.0, PCAP1.0, MCOA2 |
P1_30 |
MAT0.1, PCAP1.2, MCOB2 AD0.4, VBUS |
P1_31 |
AD0.5 |
P2_0 |
PWM1.1, U1-TX |
P2_1 |
PWM1.2, U1-RX |
P2_2 |
PWM1.3, U1-CTS |
P2_3 |
PWM1.4, U1-DCD |
P2_4 |
PWM1.5, U1-DSR |
P2_5 |
PWM1.6, U1-DTR |
P2_6 |
PCAP1.0 |
P2_7 |
CAN2.Rx |
P2_8 |
CAN2.Tx |
P2_9 |
USB Connect |
P4_28 | |
P4_29 |
Uart3 Tx, MAT2.0 |