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