Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 1 | ======== test_rx(): testing 8-N-1 (no data) |
| 2 | test_rx_exec() @ 0: flush the Rx buffer |
| 3 | test_rx_exec() @ 6: flush the Rx buffer |
| 4 | test_rx_exec() @ 12: flush the Rx buffer |
| 5 | ======== test_rx(): testing 8-N-1 (fill up flush) |
| 6 | suart_rx_cb(flags=00): de ad be ef |
| 7 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 8 | test_rx_exec() @ 101: flush the Rx buffer |
| 9 | ======== test_rx(): testing 8-N-1 (HELLO) |
| 10 | test_rx_exec() @ 18: flush the Rx buffer |
| 11 | suart_rx_cb(flags=00): 48 |
| 12 | test_rx_exec() @ 31: flush the Rx buffer |
| 13 | suart_rx_cb(flags=00): 45 |
| 14 | test_rx_exec() @ 57: flush the Rx buffer |
| 15 | suart_rx_cb(flags=00): 4c |
| 16 | test_rx_exec() @ 70: flush the Rx buffer |
| 17 | suart_rx_cb(flags=00): 4c |
| 18 | test_rx_exec() @ 96: flush the Rx buffer |
| 19 | suart_rx_cb(flags=00): 4f |
| 20 | ======== test_rx(): testing 8-N-1 (framing errors) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 21 | suart_rx_cb(flags=01): 00 |
| 22 | suart_rx_cb(flags=01): aa |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 23 | test_rx_exec() @ 41: flush the Rx buffer |
| 24 | suart_rx_cb(flags=00): ff |
| 25 | ======== test_rx(): testing 8-N-2 (HELLO) |
| 26 | test_rx_exec() @ 20: flush the Rx buffer |
| 27 | test_rx_exec() @ 22: flush the Rx buffer |
| 28 | suart_rx_cb(flags=00): 48 |
| 29 | test_rx_exec() @ 35: flush the Rx buffer |
| 30 | test_rx_exec() @ 37: flush the Rx buffer |
| 31 | suart_rx_cb(flags=00): 45 |
| 32 | test_rx_exec() @ 65: flush the Rx buffer |
| 33 | test_rx_exec() @ 67: flush the Rx buffer |
| 34 | suart_rx_cb(flags=00): 4c |
| 35 | test_rx_exec() @ 80: flush the Rx buffer |
| 36 | test_rx_exec() @ 82: flush the Rx buffer |
| 37 | suart_rx_cb(flags=00): 4c |
| 38 | test_rx_exec() @ 110: flush the Rx buffer |
| 39 | test_rx_exec() @ 112: flush the Rx buffer |
| 40 | suart_rx_cb(flags=00): 4f |
| 41 | ======== test_rx(): testing 8-N-2 (framing errors) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 42 | suart_rx_cb(flags=01): 00 |
| 43 | suart_rx_cb(flags=01): aa |
| 44 | suart_rx_cb(flags=01): 55 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 45 | test_rx_exec() @ 57: flush the Rx buffer |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 46 | suart_rx_cb(flags=00): ff |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 47 | ======== test_rx(): testing 8-E-1 (invalid parity) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 48 | suart_rx_cb(flags=02): 00 |
| 49 | suart_rx_cb(flags=02): 01 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 50 | suart_rx_cb(flags=02): ff |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 51 | test_rx_exec() @ 49: flush the Rx buffer |
| 52 | suart_rx_cb(flags=02): |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 53 | ======== test_rx(): testing 8-E-1 (valid parity) |
| 54 | test_rx_exec() @ 63: flush the Rx buffer |
| 55 | suart_rx_cb(flags=00): 00 ff aa 55 |
| 56 | test_rx_exec() @ 120: flush the Rx buffer |
| 57 | suart_rx_cb(flags=00): 80 e0 f8 fe |
| 58 | ======== test_rx(): testing 8-O-1 (invalid parity) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 59 | suart_rx_cb(flags=02): 00 |
| 60 | suart_rx_cb(flags=02): 01 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 61 | suart_rx_cb(flags=02): ff |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 62 | test_rx_exec() @ 42: flush the Rx buffer |
| 63 | suart_rx_cb(flags=02): |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 64 | ======== test_rx(): testing 8-O-1 (valid parity) |
| 65 | test_rx_exec() @ 63: flush the Rx buffer |
| 66 | suart_rx_cb(flags=00): 00 ff aa 55 |
| 67 | test_rx_exec() @ 120: flush the Rx buffer |
| 68 | suart_rx_cb(flags=00): 80 e0 f8 fe |
| 69 | ======== test_tx_rx(): testing 8-N-1 |
| 70 | suart_tx_cb(len=4/4): de ad be ef |
| 71 | suart_rx_cb(flags=00): de ad be ef |
| 72 | test_tx_rx_exec_one(n_bits_total=40): 0011110111 0101101011 0011111011 0111101111 |
| 73 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 74 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 75 | test_tx_rx_exec_one(n_bits_total=40): 0000000001 0010101011 0101010101 0111111111 |
| 76 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 77 | suart_rx_cb(flags=00): 01 02 04 08 |
| 78 | test_tx_rx_exec_one(n_bits_total=40): 0100000001 0010000001 0001000001 0000100001 |
| 79 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 80 | suart_rx_cb(flags=00): 10 20 40 80 |
| 81 | test_tx_rx_exec_one(n_bits_total=40): 0000010001 0000001001 0000000101 0000000011 |
| 82 | suart_tx_cb(len=0/4): |
| 83 | test_tx_rx_exec_one(n_bits_total=40): 1111111111 1111111111 1111111111 1111111111 |
| 84 | ======== test_tx_rx(): testing 8-N-2 |
| 85 | suart_tx_cb(len=4/4): de ad be ef |
| 86 | suart_rx_cb(flags=00): de ad be ef |
| 87 | test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111 |
| 88 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 89 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 90 | test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111 |
| 91 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 92 | suart_rx_cb(flags=00): 01 02 04 08 |
| 93 | test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011 |
| 94 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 95 | suart_rx_cb(flags=00): 10 20 40 80 |
| 96 | test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111 |
| 97 | suart_tx_cb(len=0/4): |
| 98 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
| 99 | ======== test_tx_rx(): testing 8-E-1 |
| 100 | suart_tx_cb(len=4/4): de ad be ef |
| 101 | suart_rx_cb(flags=00): de ad be ef |
| 102 | test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010111 00111110101 01111011111 |
| 103 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 104 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 105 | test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101 |
| 106 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 107 | suart_rx_cb(flags=00): 01 02 04 08 |
| 108 | test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011 |
| 109 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 110 | suart_rx_cb(flags=00): 10 20 40 80 |
| 111 | test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111 |
| 112 | suart_tx_cb(len=0/4): |
| 113 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
| 114 | ======== test_tx_rx(): testing 8-O-1 |
| 115 | suart_tx_cb(len=4/4): de ad be ef |
| 116 | suart_rx_cb(flags=00): de ad be ef |
| 117 | test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010101 00111110111 01111011101 |
| 118 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 119 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 120 | test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111 |
| 121 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 122 | suart_rx_cb(flags=00): 01 02 04 08 |
| 123 | test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001 |
| 124 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 125 | suart_rx_cb(flags=00): 10 20 40 80 |
| 126 | test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101 |
| 127 | suart_tx_cb(len=0/4): |
| 128 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
| 129 | ======== test_tx_rx(): testing 6-N-1 |
| 130 | suart_tx_cb(len=4/4): de ad be ef |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame^] | 131 | suart_rx_cb(flags=00): 1e 2d 3e 2f |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 132 | test_tx_rx_exec_one(n_bits_total=32): 00111101 01011011 00111111 01111011 |
| 133 | suart_tx_cb(len=4/4): 00 aa 55 ff |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame^] | 134 | suart_rx_cb(flags=00): 00 2a 15 3f |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 135 | test_tx_rx_exec_one(n_bits_total=32): 00000001 00101011 01010101 01111111 |
| 136 | suart_tx_cb(len=4/4): 01 02 04 08 |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame^] | 137 | suart_rx_cb(flags=00): 01 02 04 08 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 138 | test_tx_rx_exec_one(n_bits_total=32): 01000001 00100001 00010001 00001001 |
| 139 | suart_tx_cb(len=4/4): 10 20 40 80 |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame^] | 140 | suart_rx_cb(flags=00): 10 20 00 00 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 141 | test_tx_rx_exec_one(n_bits_total=32): 00000101 00000011 00000001 00000001 |
| 142 | suart_tx_cb(len=0/4): |
| 143 | test_tx_rx_exec_one(n_bits_total=32): 11111111 11111111 11111111 11111111 |