Enum pl_redir
Enum pl_redir contains the list of constants that define buffer redirection (shorting). The following objects support buffers and buffer redirection:
- ser. object (see the ser.redir method). The TiOS Simulator does not have any serial ports.
- sock. object (see the sock.redir method).
Enum pl_redir for this platform includes the following constants:
0 — PL_REDIR_NONE: |
Cancels redirection for the serial port or socket. |
1 — PL_REDIR_SER: |
Redirects RX data of the serial port or socket to the TX buffer of serial port 0. This constant can be used as a "base" for all other serial ports (i.e., in expressions like ser.redir = PL_REDIR_SER+f). The TiOS Simulator does not have any serial ports. |
1 — PL_REDIR_SER0: |
Redirects RX data of the serial port or socket to the TX buffer of serial port 0. The TiOS Simulator does not have any serial ports. |
2 — PL_REDIR_SER1: |
Redirects RX data of the serial port or socket to the TX buffer of serial port 1. The TiOS Simulator does not have any serial ports. |
3 — PL_REDIR_SER2: |
Redirects RX data of the serial port or socket to the TX buffer of serial port 2. The TiOS Simulator does not have any serial ports. |
4 — PL_REDIR_SER3: |
Redirects RX data of the serial port or socket to the TX buffer of serial port 3. The TiOS Simulator does not have any serial ports. |
6 — PL_REDIR_SOCK0: |
Redirects RX data of the serial port or socket to the TX buffer of socket 0. This constant can be used as a "base" for all other sockets (i.e., in expressions like sock.redir = PL_REDIR_SOCK0+f). |
7 — PL_REDIR_SOCK1: |
Redirects RX data of the serial port or socket to the TX buffer of socket 1. |
8 — PL_REDIR_SOCK2: |
Redirects RX data of the serial port or socket to the TX buffer of socket 2. |
9 — PL_REDIR_SOCK3: |
Redirects RX data of the serial port or socket to the TX buffer of socket 3. |
10 — PL_REDIR_SOCK4: |
Redirects RX data of the serial port or socket to the TX buffer of socket 4. |
11 — PL_REDIR_SOCK5: |
Redirects RX data of the serial port or socket to the TX buffer of socket 5. |
12 — PL_REDIR_SOCK6: |
Redirects RX data of the serial port or socket to the TX buffer of socket 6. |
13 — PL_REDIR_SOCK7: |
Redirects RX data of the serial port or socket to the TX buffer of socket 7. |
14 — PL_REDIR_SOCK8: |
Redirects RX data of the serial port or socket to the TX buffer of socket 8. |
15 — PL_REDIR_SOCK9: |
Redirects RX data of the serial port or socket to the TX buffer of socket 9. |
16 — PL_REDIR_SOCK10: |
Redirects RX data of the serial port or socket to the TX buffer of socket 10. |
17 — PL_REDIR_SOCK11: |
Redirects RX data of the serial port or socket to the TX buffer of socket 11. |
18 — PL_REDIR_SOCK12: |
Redirects RX data of the serial port or socket to the TX buffer of socket 12. |
19 — PL_REDIR_SOCK13: |
Redirects RX data of the serial port or socket to the TX buffer of socket 13. |
20 — PL_REDIR_SOCK14: |
Redirects RX data of the serial port or socket to the TX buffer of socket 14. |
21 — PL_REDIR_SOCK15: |
Redirects RX data of the serial port or socket to the TX buffer of socket 15. |