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:

Socket 1, control line C.

1 — PL_IO_NUM_1:

Socket 5, control line C.

2 — PL_IO_NUM_2:

Socket 9, control line C.

3 — PL_IO_NUM_3:

Socket 13, control line C.

4 — PL_IO_NUM_4:

Socket 3, control line C.

5 — PL_IO_NUM_5:

Socket 7, control line C.

6 — PL_IO_NUM_6:

Socket 11, control line C.

7 — PL_IO_NUM_7:

Socket 15, control line C.

8 — PL_IO_NUM_8_RX0(1):

Socket 1, control line B. This line is also the RX/W1in/din input of serial port 0.

9 — PL_IO_NUM_9_TX0(2):

Socket 1, control line A. This line is also the TX/W1out/dout output of serial port 0.

10 — PL_IO_NUM_10_RX1(1):

Socket 5, control line B. This line is also the RX/W0&1in/din input of serial port 1.

11 — PL_IO_NUM_11_TX1(2):

Socket 5, control line A. This line is also the TX/W1out/dout output of serial port 1.

12 — PL_IO_NUM_12_RX2(1):

Socket 9, control line B. This line is also the RX/W0&1in/din input of serial port 2.

13 — PL_IO_NUM_13_TX2(2):

Socket 9, control line A. This line is also the TX/W1out/dout output of serial port 2.

14 — PL_IO_NUM_14_RX3(1):

Socket 13, control line B. This line is also the RX/W0&1in/din input of serial port 3.

15 — PL_IO_NUM_15_TX3(2):

Socket 13, control line A. This line is also the TX/W1out/dout output of serial port 3.

16 — PL_IO_NUM_16_INT0:

Socket 1, control line D. This is also interrupt line 0.

17 — PL_IO_NUM_17_INT1:

Socket 5, control line D. This is also interrupt line 1.

18 — PL_IO_NUM_18_INT2:

Socket 9, control line D. This is also interrupt line 2.

19 — PL_IO_NUM_19_INT3:

Socket 13, control line D. This is also interrupt line 3.

20 — PL_IO_NUM_20_INT4:

Socket 3, control line D. This is also interrupt line 4.

21 — PL_IO_NUM_21_INT5:

Socket 7, control line D. This is also interrupt line 5.

22 — PL_IO_NUM_22_INT6:

Socket 11, control line D. This is also interrupt line 6.

23 — PL_IO_NUM_23_INT7:

Socket 15, control line D. This is also interrupt line 7.

24 — PL_IO_NUM_24:

Socket 17, control line A.

25 — PL_IO_NUM_25:

Socket 17, control line B.

26 — PL_IO_NUM_26:

Socket 17, control line C.

27 — PL_IO_NUM_27:

Socket 17, control line D.

28 — PL_IO_NUM_28:

Socket 19, control line A.

29 — PL_IO_NUM_29:

Socket 19, control line B.

30 — PL_IO_NUM_30:

Socket 19, control line C.

31 — PL_IO_NUM_31:

Socket 19, control line D.

32 — PL_IO_NUM_32:

Socket 3, control line A.

33 — PL_IO_NUM_33:

Socket 3, control line B.

34 — PL_IO_NUM_34:

Socket 7, control line A.

35 — PL_IO_NUM_35:

Socket 7, control line B.

36 — PL_IO_NUM_36:

Socket 11, control line A.

37 — PL_IO_NUM_37:

Socket 11, control line B.

38 — PL_IO_NUM_38:

Socket 15, control line A.

39 — PL_IO_NUM_39:

Socket 15, control line B.

40 — PL_IO_NUM_40:

Socket 21, control line A.

41 — PL_IO_NUM_41:

Socket 21, control line B.

42 — PL_IO_NUM_42:

Socket 21, control line C.

43 — PL_IO_NUM_43:

Socket 21, control line D.

44 — PL_IO_NUM_44:

Socket 25, control line A.

45 — PL_IO_NUM_45_CO(3):

A square wave output controlled by the beep. object. This output is driving a buzzer.

46 — PL_IO_NUM_46:

Signal strength LED bar control circuit, reset line.

47 — PL_IO_NUM_47:

Signal strength LED bar control circuit, clock line.

48 — PL_IO_NUM_48:

Signal strength LED bar control circuit, data line.

49 — PL_IO_NUM_49:

Wireless add-on socket, CS line.

50 — PL_IO_NUM_50:

Wireless add-on socket, DO line.

51 — PL_IO_NUM_51:

Wireless add-on socket, RST line.

52 — PL_IO_NUM_52:

Wireless add-on socket, DI line.

53 — PL_IO_NUM_53:

Wireless add-on socket, CLK line.

54 — PL_IO_NUM_54:

Socket 23, control line A.

55 — PL_IO_NUM_55:

Socket 23, control line B.

56 — 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.

  1. When a serial port is in the UART mode (ser.mode = 0 — PL_SER_MODE_UART), this line is automatically configured to be an input when this serial port is enabled (ser.enabled = 1 — YES) and returns to the previous input/output and HIGH/LOW state when this serial port is closed (ser.enabled = 0 — NO). When a serial port is in the Wiegand or clock/data mode (ser.mode = 1 — PL_SER_MODE_WIEGAND or ser.mode = 2 — PL_SER_MODE_CLOCKDATA), the line has to be configured as an input by the application — this will not happen automatically.
  2. When a serial port is in the UART mode (ser.mode = 0 — PL_SER_MODE_UART), this line is automatically configured to be an output when the serial port is enabled (ser.enabled = 1 — YES) and returns to the previous input/output and HIGH/LOW state when the serial port is closed (ser.enabled = 0 — NO). When a serial port is in the Wiegand or clock/data mode (ser.mode = 1 — PL_SER_MODE_WIEGAND or ser.mode = 2 — PL_SER_MODE_CLOCKDATA), the line has to be configured as an output by the application — this will not happen automatically.
  3. When a beeper pattern starts playing, this line is automatically configured as an output. When the beeper pattern stops playing, the output returns to the input/output and HIGH/LOW state that it had before the pattern started playing.