blob: 9ce3bc8e30ac3f332ab78a1315a835ef3a1a0b36 [file] [log] [blame]
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +07001======== test_rx(): testing 8-N-1 (no data)
2test_rx_exec() @ 0: flush the Rx buffer
3test_rx_exec() @ 6: flush the Rx buffer
4test_rx_exec() @ 12: flush the Rx buffer
5======== test_rx(): testing 8-N-1 (fill up flush)
6suart_rx_cb(flags=00): de ad be ef
7suart_rx_cb(flags=00): 00 aa 55 ff
8test_rx_exec() @ 101: flush the Rx buffer
9======== test_rx(): testing 8-N-1 (HELLO)
10test_rx_exec() @ 18: flush the Rx buffer
11suart_rx_cb(flags=00): 48
12test_rx_exec() @ 31: flush the Rx buffer
13suart_rx_cb(flags=00): 45
14test_rx_exec() @ 57: flush the Rx buffer
15suart_rx_cb(flags=00): 4c
16test_rx_exec() @ 70: flush the Rx buffer
17suart_rx_cb(flags=00): 4c
18test_rx_exec() @ 96: flush the Rx buffer
19suart_rx_cb(flags=00): 4f
20======== test_rx(): testing 8-N-1 (framing errors)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070021suart_rx_cb(flags=01): 00
22suart_rx_cb(flags=01): aa
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070023test_rx_exec() @ 41: flush the Rx buffer
24suart_rx_cb(flags=00): ff
25======== test_rx(): testing 8-N-2 (HELLO)
26test_rx_exec() @ 20: flush the Rx buffer
27test_rx_exec() @ 22: flush the Rx buffer
28suart_rx_cb(flags=00): 48
29test_rx_exec() @ 35: flush the Rx buffer
30test_rx_exec() @ 37: flush the Rx buffer
31suart_rx_cb(flags=00): 45
32test_rx_exec() @ 65: flush the Rx buffer
33test_rx_exec() @ 67: flush the Rx buffer
34suart_rx_cb(flags=00): 4c
35test_rx_exec() @ 80: flush the Rx buffer
36test_rx_exec() @ 82: flush the Rx buffer
37suart_rx_cb(flags=00): 4c
38test_rx_exec() @ 110: flush the Rx buffer
39test_rx_exec() @ 112: flush the Rx buffer
40suart_rx_cb(flags=00): 4f
41======== test_rx(): testing 8-N-2 (framing errors)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070042suart_rx_cb(flags=01): 00
43suart_rx_cb(flags=01): aa
44suart_rx_cb(flags=01): 55
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070045test_rx_exec() @ 57: flush the Rx buffer
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070046suart_rx_cb(flags=00): ff
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070047======== test_rx(): testing 8-E-1 (invalid parity)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070048suart_rx_cb(flags=02): 00
49suart_rx_cb(flags=02): 01
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070050suart_rx_cb(flags=02): ff
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070051test_rx_exec() @ 49: flush the Rx buffer
52suart_rx_cb(flags=02):
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070053======== test_rx(): testing 8-E-1 (valid parity)
54test_rx_exec() @ 63: flush the Rx buffer
55suart_rx_cb(flags=00): 00 ff aa 55
56test_rx_exec() @ 120: flush the Rx buffer
57suart_rx_cb(flags=00): 80 e0 f8 fe
58======== test_rx(): testing 8-O-1 (invalid parity)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070059suart_rx_cb(flags=02): 00
60suart_rx_cb(flags=02): 01
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070061suart_rx_cb(flags=02): ff
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070062test_rx_exec() @ 42: flush the Rx buffer
63suart_rx_cb(flags=02):
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070064======== test_rx(): testing 8-O-1 (valid parity)
65test_rx_exec() @ 63: flush the Rx buffer
66suart_rx_cb(flags=00): 00 ff aa 55
67test_rx_exec() @ 120: flush the Rx buffer
68suart_rx_cb(flags=00): 80 e0 f8 fe
69======== test_tx_rx(): testing 8-N-1
70suart_tx_cb(len=4/4): de ad be ef
71suart_rx_cb(flags=00): de ad be ef
72test_tx_rx_exec_one(n_bits_total=40): 0011110111 0101101011 0011111011 0111101111
73suart_tx_cb(len=4/4): 00 aa 55 ff
74suart_rx_cb(flags=00): 00 aa 55 ff
75test_tx_rx_exec_one(n_bits_total=40): 0000000001 0010101011 0101010101 0111111111
76suart_tx_cb(len=4/4): 01 02 04 08
77suart_rx_cb(flags=00): 01 02 04 08
78test_tx_rx_exec_one(n_bits_total=40): 0100000001 0010000001 0001000001 0000100001
79suart_tx_cb(len=4/4): 10 20 40 80
80suart_rx_cb(flags=00): 10 20 40 80
81test_tx_rx_exec_one(n_bits_total=40): 0000010001 0000001001 0000000101 0000000011
82suart_tx_cb(len=0/4):
83test_tx_rx_exec_one(n_bits_total=40): 1111111111 1111111111 1111111111 1111111111
84======== test_tx_rx(): testing 8-N-2
85suart_tx_cb(len=4/4): de ad be ef
86suart_rx_cb(flags=00): de ad be ef
87test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111
88suart_tx_cb(len=4/4): 00 aa 55 ff
89suart_rx_cb(flags=00): 00 aa 55 ff
90test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111
91suart_tx_cb(len=4/4): 01 02 04 08
92suart_rx_cb(flags=00): 01 02 04 08
93test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011
94suart_tx_cb(len=4/4): 10 20 40 80
95suart_rx_cb(flags=00): 10 20 40 80
96test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111
97suart_tx_cb(len=0/4):
98test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
99======== test_tx_rx(): testing 8-E-1
100suart_tx_cb(len=4/4): de ad be ef
101suart_rx_cb(flags=00): de ad be ef
102test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010111 00111110101 01111011111
103suart_tx_cb(len=4/4): 00 aa 55 ff
104suart_rx_cb(flags=00): 00 aa 55 ff
105test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101
106suart_tx_cb(len=4/4): 01 02 04 08
107suart_rx_cb(flags=00): 01 02 04 08
108test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011
109suart_tx_cb(len=4/4): 10 20 40 80
110suart_rx_cb(flags=00): 10 20 40 80
111test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111
112suart_tx_cb(len=0/4):
113test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
114======== test_tx_rx(): testing 8-O-1
115suart_tx_cb(len=4/4): de ad be ef
116suart_rx_cb(flags=00): de ad be ef
117test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010101 00111110111 01111011101
118suart_tx_cb(len=4/4): 00 aa 55 ff
119suart_rx_cb(flags=00): 00 aa 55 ff
120test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111
121suart_tx_cb(len=4/4): 01 02 04 08
122suart_rx_cb(flags=00): 01 02 04 08
123test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001
124suart_tx_cb(len=4/4): 10 20 40 80
125suart_rx_cb(flags=00): 10 20 40 80
126test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101
127suart_tx_cb(len=0/4):
128test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiy0d78a002023-11-19 16:15:38 +0700129======== test_tx_rx(): testing 8-M-1
130suart_tx_cb(len=4/4): de ad be ef
131suart_rx_cb(flags=00): de ad be ef
132test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111
133suart_tx_cb(len=4/4): 00 aa 55 ff
134suart_rx_cb(flags=00): 00 aa 55 ff
135test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111
136suart_tx_cb(len=4/4): 01 02 04 08
137suart_rx_cb(flags=00): 01 02 04 08
138test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011
139suart_tx_cb(len=4/4): 10 20 40 80
140suart_rx_cb(flags=00): 10 20 40 80
141test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111
142suart_tx_cb(len=0/4):
143test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
144======== test_tx_rx(): testing 8-S-1
145suart_tx_cb(len=4/4): de ad be ef
146suart_rx_cb(flags=00): de ad be ef
147test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010101 00111110101 01111011101
148suart_tx_cb(len=4/4): 00 aa 55 ff
149suart_rx_cb(flags=00): 00 aa 55 ff
150test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101
151suart_tx_cb(len=4/4): 01 02 04 08
152suart_rx_cb(flags=00): 01 02 04 08
153test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001
154suart_tx_cb(len=4/4): 10 20 40 80
155suart_rx_cb(flags=00): 10 20 40 80
156test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101
157suart_tx_cb(len=0/4):
158test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700159======== test_tx_rx(): testing 6-N-1
160suart_tx_cb(len=4/4): de ad be ef
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700161suart_rx_cb(flags=00): 1e 2d 3e 2f
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700162test_tx_rx_exec_one(n_bits_total=32): 00111101 01011011 00111111 01111011
163suart_tx_cb(len=4/4): 00 aa 55 ff
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700164suart_rx_cb(flags=00): 00 2a 15 3f
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700165test_tx_rx_exec_one(n_bits_total=32): 00000001 00101011 01010101 01111111
166suart_tx_cb(len=4/4): 01 02 04 08
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700167suart_rx_cb(flags=00): 01 02 04 08
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700168test_tx_rx_exec_one(n_bits_total=32): 01000001 00100001 00010001 00001001
169suart_tx_cb(len=4/4): 10 20 40 80
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700170suart_rx_cb(flags=00): 10 20 00 00
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700171test_tx_rx_exec_one(n_bits_total=32): 00000101 00000011 00000001 00000001
172suart_tx_cb(len=0/4):
173test_tx_rx_exec_one(n_bits_total=32): 11111111 11111111 11111111 11111111
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700174======== test_tx_rx_pull_n(): pulling 32 bits (1 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700175suart_tx_cb(len=1/1): 55
176suart_tx_cb(len=1/1): 55
177suart_tx_cb(len=1/1): 55
178suart_tx_cb(len=1/1): 55
17901010101010101010101010101010101
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700180======== test_tx_rx_pull_n(): feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700181suart_rx_cb(flags=00): 55 55 55
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700182======== test_tx_rx_pull_n(): pulling 32 bits (2 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700183suart_tx_cb(len=1/1): 55
184suart_tx_cb(len=1/1): 55
185suart_tx_cb(len=1/1): 55
186suart_tx_cb(len=1/1): 55
18701010101010101010101010101010101
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700188======== test_tx_rx_pull_n(): feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700189suart_rx_cb(flags=00): 55 55 55
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700190======== test_tx_rx_pull_n(): pulling 32 bits (4 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700191suart_tx_cb(len=1/1): 55
192suart_tx_cb(len=1/1): 55
193suart_tx_cb(len=1/1): 55
19401010101011101010101011101010101
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700195======== test_tx_rx_pull_n(): feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700196suart_rx_cb(flags=00): 55 55
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700197======== test_tx_rx_pull_n(): pulling 32 bits (8 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700198suart_tx_cb(len=1/1): 55
199suart_tx_cb(len=1/1): 55
20001010101011111110101010101111111
Vadim Yanitskiydab66292023-11-20 23:47:18 +0700201======== test_tx_rx_pull_n(): feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700202suart_rx_cb(flags=00): 55 55