Enum pl_io_num

The enum pl_io_num contains the list of constants that refer to available GPIO lines. Use these constants when selecting the line with the io. object (see the io.num property).

Note that these GPIO lines are unidirectional and require explicit configuration as outputs or inputs.

The enum pl_io_num consists of the following constants:

0- PL_IO_NUM_0_RX0

General-purpose I/O line 0 (P0.0), also the RX/W1in/din input of serial port 0.

When this serial port is in UART mode (ser.mode = 0- PL_SER_MODE_UART) and is enabled (ser.enabled = 1- YES), the line is automatically configured to be an input. Line configuration is still "manual" in all other cases.

Closing the serial port or changing its mode restores the output buffer's original configuration.

1- PL_IO_NUM_1_TX0

General-purpose I/O line 1 (P0.1), also the TX/W1out/dout output of serial port 0.

When this serial port is in UART mode (ser.mode = 0- PL_SER_MODE_UART) and is enabled (ser.enabled = 1- YES), the line is automatically configured to be an output. Line configuration is still "manual" in all other cases.

Closing the serial port or changing its mode restores the output buffer's original configuration.

2- PL_IO_NUM_2_INT0

General-purpose I/O line 2 (P0.2), also interrupt line 0.

3- PL_IO_NUM_3_INT1

General-purpose I/O line 3 (P0.3), also interrupt line 1.

4- PL_IO_NUM_4

General-purpose I/O line 4 (P0.4).

5- PL_IO_NUM_5

General-purpose I/O line 5 (P0.5).

6- PL_IO_NUM_6

General-purpose I/O line 6 (P0.6).

7- PL_IO_NUM_7_RX1

General-purpose I/O line 7 (P0.7), also the RX/W1in/din input of serial port 1 or the RX line of the debug serial port.

When this serial port is in UART mode (ser.mode = 0- PL_SER_MODE_UART) and is enabled (ser.enabled = 1- YES), the line is automatically configured to be an input. Line configuration is still "manual" in all other cases.

Closing the serial port or changing its mode restores the output buffer's original configuration.        

8- PL_IO_NUM_8_TX1

General-purpose I/O line 8 (P1.0), also the TX/W1out/dout output of serial port 1 or the TX line of the debug serial port.

When this serial port is in UART mode (ser.mode = 0- PL_SER_MODE_UART) and is enabled (ser.enabled = 1- YES), the line is automatically configured to be an output. Line configuration is still "manual" in all other cases.

Closing the serial port or changing its mode restores the output buffer's original configuration.

9- PL_IO_NUM_9

General-purpose I/O line 9 (P1.1).

10- PL_IO_NULL

This is a NULL line that does not physically exist. The state of this line is always detected as LOW. Setting this line has no effect.