|
22 | 22 | from common.srdhelper import bitpack |
23 | 23 | from math import floor, ceil |
24 | 24 |
|
25 | | -''' |
26 | | -OUTPUT_PYTHON format: |
27 | | -
|
28 | | -Packet: |
29 | | -[<ptype>, <rxtx>, <pdata>] |
30 | | -
|
31 | | -This is the list of <ptype>s and their respective <pdata> values: |
32 | | - - 'STARTBIT': The data is the (integer) value of the start bit (0/1). |
33 | | - - 'DATA': This is always a tuple containing two items: |
34 | | - - 1st item: the (integer) value of the UART data. Valid values |
35 | | - range from 0 to 511 (as the data can be up to 9 bits in size). |
36 | | - - 2nd item: the list of individual data bits and their ss/es numbers. |
37 | | - - 'PARITYBIT': The data is the (integer) value of the parity bit (0/1). |
38 | | - - 'STOPBIT': The data is the (integer) value of the stop bit (0 or 1). |
39 | | - - 'INVALID STARTBIT': The data is the (integer) value of the start bit (0/1). |
40 | | - - 'INVALID STOPBIT': The data is the (integer) value of the stop bit (0/1). |
41 | | - - 'PARITY ERROR': The data is a tuple with two entries. The first one is |
42 | | - the expected parity value, the second is the actual parity value. |
43 | | - - 'FRAME': The data is always a tuple containing two items: The (integer) |
44 | | - value of the UART data, and a boolean which reflects the validity of the |
45 | | - UART frame. |
46 | | -
|
47 | | -''' |
48 | | - |
49 | 25 | # Given a parity type to check (odd, even, zero, one), the value of the |
50 | 26 | # parity bit, the value of the data, and the length of the data (5-9 bits, |
51 | 27 | # usually 8 bits) return True if the parity is correct, False otherwise. |
@@ -81,7 +57,7 @@ class Decoder(srd.Decoder): |
81 | 57 | desc = 'Asynchronous, serial bus.' |
82 | 58 | license = 'gplv2+' |
83 | 59 | inputs = ['logic'] |
84 | | - outputs = ['uart'] |
| 60 | + outputs = [] |
85 | 61 | tags = ['Embedded/industrial'] |
86 | 62 | channels = ( |
87 | 63 | {'id': 'rxtx', 'type': 209, 'name': 'RX/TX', 'desc': 'UART transceive line'}, |
|
0 commit comments