Enum pl_io_num

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 GPIO lines are of the unidirectional type and require explicit configuration as outputs or inputs.


Enum pl_io_num includes the following constants:

0 — PL_IO_NUM_0_RX0_INT0:

General-purpose I/O line 0 (P0.0). This is also interrupt line 0.

1 — PL_IO_NUM_1_TX0_INT1:

General-purpose I/O line 1 (P0.1). This is also interrupt line 1.

2 — PL_IO_NUM_2:

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

3 — PL_IO_NUM_3:

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

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:

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

8 — PL_IO_NUM_8_RX0:

General-purpose I/O line 8. This line is also the RX/W0&1in/din input of serial port 0.

When the serial port is in the 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 will not change the line configuration.

9 — PL_IO_NUM_9_TX0:

General-purpose I/O line 9. This line is also the TX/W1out/dout output of serial port 0.

When the serial port is in the 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 will not change the line configuration.

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.