Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 1 | |
| 2 | Executing test_rx |
| 3 | ======== testing 8-N-1 (no data) |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 4 | test_rx_exec() @ 0: flush the Rx buffer |
| 5 | test_rx_exec() @ 6: flush the Rx buffer |
| 6 | test_rx_exec() @ 12: flush the Rx buffer |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 7 | ======== testing 8-N-1 (fill up flush) |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 8 | suart_rx_cb(flags=00): de ad be ef |
| 9 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 10 | test_rx_exec() @ 101: flush the Rx buffer |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 11 | ======== testing 8-N-1 (HELLO) |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 12 | test_rx_exec() @ 18: flush the Rx buffer |
| 13 | suart_rx_cb(flags=00): 48 |
| 14 | test_rx_exec() @ 31: flush the Rx buffer |
| 15 | suart_rx_cb(flags=00): 45 |
| 16 | test_rx_exec() @ 57: flush the Rx buffer |
| 17 | suart_rx_cb(flags=00): 4c |
| 18 | test_rx_exec() @ 70: flush the Rx buffer |
| 19 | suart_rx_cb(flags=00): 4c |
| 20 | test_rx_exec() @ 96: flush the Rx buffer |
| 21 | suart_rx_cb(flags=00): 4f |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 22 | ======== testing 8-N-1 (framing errors) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 23 | suart_rx_cb(flags=01): 00 |
| 24 | suart_rx_cb(flags=01): aa |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 25 | test_rx_exec() @ 41: flush the Rx buffer |
| 26 | suart_rx_cb(flags=00): ff |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 27 | ======== testing 8-N-2 (HELLO) |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 28 | test_rx_exec() @ 20: flush the Rx buffer |
| 29 | test_rx_exec() @ 22: flush the Rx buffer |
| 30 | suart_rx_cb(flags=00): 48 |
| 31 | test_rx_exec() @ 35: flush the Rx buffer |
| 32 | test_rx_exec() @ 37: flush the Rx buffer |
| 33 | suart_rx_cb(flags=00): 45 |
| 34 | test_rx_exec() @ 65: flush the Rx buffer |
| 35 | test_rx_exec() @ 67: flush the Rx buffer |
| 36 | suart_rx_cb(flags=00): 4c |
| 37 | test_rx_exec() @ 80: flush the Rx buffer |
| 38 | test_rx_exec() @ 82: flush the Rx buffer |
| 39 | suart_rx_cb(flags=00): 4c |
| 40 | test_rx_exec() @ 110: flush the Rx buffer |
| 41 | test_rx_exec() @ 112: flush the Rx buffer |
| 42 | suart_rx_cb(flags=00): 4f |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 43 | ======== testing 8-N-2 (framing errors) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 44 | suart_rx_cb(flags=01): 00 |
| 45 | suart_rx_cb(flags=01): aa |
| 46 | suart_rx_cb(flags=01): 55 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 47 | test_rx_exec() @ 57: flush the Rx buffer |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 48 | suart_rx_cb(flags=00): ff |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 49 | ======== testing 8-E-1 (invalid parity) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 50 | suart_rx_cb(flags=02): 00 |
| 51 | suart_rx_cb(flags=02): 01 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 52 | suart_rx_cb(flags=02): ff |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 53 | test_rx_exec() @ 49: flush the Rx buffer |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 54 | ======== testing 8-E-1 (valid parity) |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 55 | test_rx_exec() @ 63: flush the Rx buffer |
| 56 | suart_rx_cb(flags=00): 00 ff aa 55 |
| 57 | test_rx_exec() @ 120: flush the Rx buffer |
| 58 | suart_rx_cb(flags=00): 80 e0 f8 fe |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 59 | ======== testing 8-O-1 (invalid parity) |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 60 | suart_rx_cb(flags=02): 00 |
| 61 | suart_rx_cb(flags=02): 01 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 62 | suart_rx_cb(flags=02): ff |
Vadim Yanitskiy | bf95f82 | 2023-11-18 01:46:16 +0700 | [diff] [blame] | 63 | test_rx_exec() @ 42: flush the Rx buffer |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 64 | ======== testing 8-O-1 (valid parity) |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 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 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 69 | |
Vadim Yanitskiy | d76cc37 | 2023-12-09 04:38:14 +0700 | [diff] [blame] | 70 | Executing test_rx_flush |
| 71 | calling osmo_soft_uart_flush_rx() while Rx disabled |
| 72 | enabling the receiver |
| 73 | calling osmo_soft_uart_flush_rx() while Rx enabled, but no data |
Vadim Yanitskiy | b392099 | 2023-12-11 22:38:17 +0700 | [diff] [blame] | 74 | testing corner case: manual flushing during a parity error (8-E-1) |
| 75 | test_rx_exec() @ 47: flush the Rx buffer |
| 76 | suart_rx_cb(flags=02): aa 55 |
| 77 | suart_rx_cb(flags=02): ff |
Vadim Yanitskiy | d76cc37 | 2023-12-09 04:38:14 +0700 | [diff] [blame] | 78 | |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 79 | Executing test_tx_rx |
| 80 | ======== testing 8-N-1 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 81 | suart_tx_cb(len=4/4): de ad be ef |
| 82 | suart_rx_cb(flags=00): de ad be ef |
| 83 | test_tx_rx_exec_one(n_bits_total=40): 0011110111 0101101011 0011111011 0111101111 |
| 84 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 85 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 86 | test_tx_rx_exec_one(n_bits_total=40): 0000000001 0010101011 0101010101 0111111111 |
| 87 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 88 | suart_rx_cb(flags=00): 01 02 04 08 |
| 89 | test_tx_rx_exec_one(n_bits_total=40): 0100000001 0010000001 0001000001 0000100001 |
| 90 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 91 | suart_rx_cb(flags=00): 10 20 40 80 |
| 92 | test_tx_rx_exec_one(n_bits_total=40): 0000010001 0000001001 0000000101 0000000011 |
| 93 | suart_tx_cb(len=0/4): |
| 94 | test_tx_rx_exec_one(n_bits_total=40): 1111111111 1111111111 1111111111 1111111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 95 | ======== testing 8-N-2 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 96 | suart_tx_cb(len=4/4): de ad be ef |
| 97 | suart_rx_cb(flags=00): de ad be ef |
| 98 | test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111 |
| 99 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 100 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 101 | test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111 |
| 102 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 103 | suart_rx_cb(flags=00): 01 02 04 08 |
| 104 | test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011 |
| 105 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 106 | suart_rx_cb(flags=00): 10 20 40 80 |
| 107 | test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111 |
| 108 | suart_tx_cb(len=0/4): |
| 109 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 110 | ======== testing 8-E-1 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 111 | suart_tx_cb(len=4/4): de ad be ef |
| 112 | suart_rx_cb(flags=00): de ad be ef |
| 113 | test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010111 00111110101 01111011111 |
| 114 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 115 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 116 | test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101 |
| 117 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 118 | suart_rx_cb(flags=00): 01 02 04 08 |
| 119 | test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011 |
| 120 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 121 | suart_rx_cb(flags=00): 10 20 40 80 |
| 122 | test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111 |
| 123 | suart_tx_cb(len=0/4): |
| 124 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 125 | ======== testing 8-O-1 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 126 | suart_tx_cb(len=4/4): de ad be ef |
| 127 | suart_rx_cb(flags=00): de ad be ef |
| 128 | test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010101 00111110111 01111011101 |
| 129 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 130 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 131 | test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111 |
| 132 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 133 | suart_rx_cb(flags=00): 01 02 04 08 |
| 134 | test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001 |
| 135 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 136 | suart_rx_cb(flags=00): 10 20 40 80 |
| 137 | test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101 |
| 138 | suart_tx_cb(len=0/4): |
| 139 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 140 | ======== testing 8-M-1 |
Vadim Yanitskiy | 0d78a00 | 2023-11-19 16:15:38 +0700 | [diff] [blame] | 141 | suart_tx_cb(len=4/4): de ad be ef |
| 142 | suart_rx_cb(flags=00): de ad be ef |
| 143 | test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111 |
| 144 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 145 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 146 | test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111 |
| 147 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 148 | suart_rx_cb(flags=00): 01 02 04 08 |
| 149 | test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011 |
| 150 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 151 | suart_rx_cb(flags=00): 10 20 40 80 |
| 152 | test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111 |
| 153 | suart_tx_cb(len=0/4): |
| 154 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 155 | ======== testing 8-S-1 |
Vadim Yanitskiy | 0d78a00 | 2023-11-19 16:15:38 +0700 | [diff] [blame] | 156 | suart_tx_cb(len=4/4): de ad be ef |
| 157 | suart_rx_cb(flags=00): de ad be ef |
| 158 | test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010101 00111110101 01111011101 |
| 159 | suart_tx_cb(len=4/4): 00 aa 55 ff |
| 160 | suart_rx_cb(flags=00): 00 aa 55 ff |
| 161 | test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101 |
| 162 | suart_tx_cb(len=4/4): 01 02 04 08 |
| 163 | suart_rx_cb(flags=00): 01 02 04 08 |
| 164 | test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001 |
| 165 | suart_tx_cb(len=4/4): 10 20 40 80 |
| 166 | suart_rx_cb(flags=00): 10 20 40 80 |
| 167 | test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101 |
| 168 | suart_tx_cb(len=0/4): |
| 169 | test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 170 | ======== testing 6-N-1 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 171 | suart_tx_cb(len=4/4): de ad be ef |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame] | 172 | suart_rx_cb(flags=00): 1e 2d 3e 2f |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 173 | test_tx_rx_exec_one(n_bits_total=32): 00111101 01011011 00111111 01111011 |
| 174 | suart_tx_cb(len=4/4): 00 aa 55 ff |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame] | 175 | suart_rx_cb(flags=00): 00 2a 15 3f |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 176 | test_tx_rx_exec_one(n_bits_total=32): 00000001 00101011 01010101 01111111 |
| 177 | suart_tx_cb(len=4/4): 01 02 04 08 |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame] | 178 | suart_rx_cb(flags=00): 01 02 04 08 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 179 | test_tx_rx_exec_one(n_bits_total=32): 01000001 00100001 00010001 00001001 |
| 180 | suart_tx_cb(len=4/4): 10 20 40 80 |
Vadim Yanitskiy | 2d2ce49 | 2023-11-19 15:37:10 +0700 | [diff] [blame] | 181 | suart_rx_cb(flags=00): 10 20 00 00 |
Vadim Yanitskiy | 9ef304d | 2023-11-14 20:46:01 +0700 | [diff] [blame] | 182 | test_tx_rx_exec_one(n_bits_total=32): 00000101 00000011 00000001 00000001 |
| 183 | suart_tx_cb(len=0/4): |
| 184 | test_tx_rx_exec_one(n_bits_total=32): 11111111 11111111 11111111 11111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 185 | |
| 186 | Executing test_tx_rx_pull_n |
| 187 | ======== pulling 32 bits (1 at a time) |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 188 | suart_tx_cb(len=1/1): 55 |
| 189 | suart_tx_cb(len=1/1): 55 |
| 190 | suart_tx_cb(len=1/1): 55 |
| 191 | suart_tx_cb(len=1/1): 55 |
| 192 | 01010101010101010101010101010101 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 193 | ======== feeding 32 bits into the receiver |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 194 | suart_rx_cb(flags=00): 55 55 55 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 195 | |
| 196 | Executing test_tx_rx_pull_n |
| 197 | ======== pulling 32 bits (2 at a time) |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 198 | suart_tx_cb(len=1/1): 55 |
| 199 | suart_tx_cb(len=1/1): 55 |
| 200 | suart_tx_cb(len=1/1): 55 |
| 201 | suart_tx_cb(len=1/1): 55 |
| 202 | 01010101010101010101010101010101 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 203 | ======== feeding 32 bits into the receiver |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 204 | suart_rx_cb(flags=00): 55 55 55 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 205 | |
| 206 | Executing test_tx_rx_pull_n |
| 207 | ======== pulling 32 bits (4 at a time) |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 208 | suart_tx_cb(len=1/1): 55 |
| 209 | suart_tx_cb(len=1/1): 55 |
| 210 | suart_tx_cb(len=1/1): 55 |
| 211 | 01010101011101010101011101010101 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 212 | ======== feeding 32 bits into the receiver |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 213 | suart_rx_cb(flags=00): 55 55 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 214 | |
| 215 | Executing test_tx_rx_pull_n |
| 216 | ======== pulling 32 bits (8 at a time) |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 217 | suart_tx_cb(len=1/1): 55 |
| 218 | suart_tx_cb(len=1/1): 55 |
| 219 | 01010101011111110101010101111111 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 220 | ======== feeding 32 bits into the receiver |
Vadim Yanitskiy | ffdd997 | 2023-11-21 02:25:32 +0700 | [diff] [blame] | 221 | suart_rx_cb(flags=00): 55 55 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 222 | |
Vadim Yanitskiy | d8070f5 | 2023-12-11 22:51:29 +0700 | [diff] [blame] | 223 | Executing test_tx_pull |
| 224 | pulling 25 bits (first time) out of the transmitter |
| 225 | suart_tx_cb(len=2/2): 42 42 |
| 226 | pulling 25 bits (second time) out of the transmitter |
| 227 | suart_tx_cb(len=2/2): 42 42 |
| 228 | |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 229 | Executing test_modem_status |
| 230 | initial status=0x00000000 |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 231 | de-asserting DCD, which was not asserted |
| 232 | asserting both RI and DCD, expecting the callback to be called twice |
| 233 | suart_status_change_cb(status=0x00000008) |
| 234 | suart_status_change_cb(status=0x0000000a) |
| 235 | de-asserting RI, expecting the callback to be called |
| 236 | suart_status_change_cb(status=0x00000002) |
| 237 | resetting to 0x00, expecting the callback to be called |
| 238 | suart_status_change_cb(status=0x00000000) |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 239 | |
| 240 | Executing test_flow_control_dtr_dsr |
| 241 | initial status=0x00000000 |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 242 | expecting osmo_soft_uart_tx_ubits() to yield nothing |
| 243 | expecting osmo_soft_uart_rx_ubits() to yield nothing |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 244 | ======== asserting both DTR and DSR |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 245 | suart_status_change_cb(status=0x00000001) |
| 246 | suart_status_change_cb(status=0x00000005) |
| 247 | expecting osmo_soft_uart_tx_ubits() to yield 40 bits (requesting 40 bits) |
| 248 | suart_tx_cb(len=4/4): 42 42 42 42 |
| 249 | 0010000101001000010100100001010010000101 |
| 250 | expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield 4 chars |
| 251 | suart_rx_cb(flags=00): 42 42 42 42 |
| 252 | expecting osmo_soft_uart_tx_ubits() to yield 2 bits (requesting 2 bits) |
| 253 | suart_tx_cb(len=1/1): 42 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 254 | ======== de-asserting DSR |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 255 | suart_status_change_cb(status=0x00000001) |
| 256 | expecting osmo_soft_uart_tx_ubits() to yield 8 bits (requesting 40 bits) |
| 257 | expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield a pending char |
| 258 | suart_rx_cb(flags=00): 42 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 259 | |
| 260 | Executing test_flow_control_rts_cts |
| 261 | initial status=0x00000000 |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 262 | expecting osmo_soft_uart_tx_ubits() to yield nothing |
| 263 | expecting osmo_soft_uart_rx_ubits() to yield nothing |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 264 | ======== asserting both CTS and RTS/RTR |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 265 | suart_status_change_cb(status=0x00000020) |
| 266 | suart_status_change_cb(status=0x00000030) |
| 267 | expecting osmo_soft_uart_tx_ubits() to yield 40 bits (requesting 40 bits) |
| 268 | suart_tx_cb(len=4/4): 42 42 42 42 |
| 269 | 0010000101001000010100100001010010000101 |
| 270 | expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield 4 chars |
| 271 | suart_rx_cb(flags=00): 42 42 42 42 |
| 272 | expecting osmo_soft_uart_tx_ubits() to yield 2 bits (requesting 2 bits) |
| 273 | suart_tx_cb(len=1/1): 42 |
Vadim Yanitskiy | d0b575c | 2023-12-09 04:26:51 +0700 | [diff] [blame] | 274 | ======== de-asserting CTS |
Vadim Yanitskiy | 6587dd0 | 2023-11-30 03:04:32 +0700 | [diff] [blame] | 275 | suart_status_change_cb(status=0x00000010) |
| 276 | expecting osmo_soft_uart_tx_ubits() to yield 8 bits (requesting 40 bits) |
| 277 | expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield a pending char |
| 278 | suart_rx_cb(flags=00): 42 |