Enum pl_io_num

Top  Previous  Next

Enum pl_io_num contains the list of constants that refer to I/O lines available on this platform. Use these constants when selecting the line with the io object (see the io.num property).

 

Enum pl_io_num for this platform includes the following constants:

0- PL_IO_NUM:Selects general-purpose I/O line 0. Only available on the EM200.
1- PL_IO_NUM_1:Selects general-purpose I/O line 1.
2- PL_IO_NUM_2_DSR:Selects general-purpose I/O line 2. This is also a DSR input of serial port 0. On EM202 and EM200 works as input/output. On EM202-EV and DS202 works as input only and the actual state of DSR pin is opposite to what is read through the io.state property.
3- PL_IO_NUM_3_DTR:Selects general-purpose I/O line 3. This is also a DTR output of serial port 0. On EM202 and EM200 works as input/output. On EM202-EV and DS202 works as output only and the actual state of DTR pin is opposite to what is set through the io.state property.
4- PL_IO_NUM_4_CTS:Selects general-purpose I/O line 4. This is also a CTS input of serial port 0. On EM202 and EM200 works as input/output. Cannot be set through io.state when ser.flowcontrol= 1- ENABLED. On EM202-EV and DS202 works as input only and the actual state of CTS pin is opposite to what is read through the io.state property.
5- PL_IO_NUM_5_RTS:Selects general-purpose I/O line 5. Only available on the EM200.  This is also a RTS output of serial port 0. On EM202 and EM200 works as input/output. Cannot be set through io.state when ser.flowcontrol= 1- ENABLED. On EM202-EV and DS202 works as output only and the actual state of RTS pin is opposite to what is set through the io.state property.
6- PL_IO_NUM_6:Selects general-purpose I/O line 6. Only available on the EM200.
7- PL_IO_NUM_7:Selects general-purpose I/O line 7. Only available on the EM200.
8- PL_IO_NUM_8:Selects general-purpose I/O line 8. Only available on the EM200.