Skip to content

Commit 16bafd0

Browse files
committed
Drop OUTPUT_PYTHON from 0:UART
1 parent 9eab24a commit 16bafd0

File tree

1 file changed

+1
-25
lines changed
  • libsigrokdecode4DSL/decoders/0-uart

1 file changed

+1
-25
lines changed

libsigrokdecode4DSL/decoders/0-uart/pd.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,6 @@
2222
from common.srdhelper import bitpack
2323
from math import floor, ceil
2424

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-
4925
# Given a parity type to check (odd, even, zero, one), the value of the
5026
# parity bit, the value of the data, and the length of the data (5-9 bits,
5127
# usually 8 bits) return True if the parity is correct, False otherwise.
@@ -81,7 +57,7 @@ class Decoder(srd.Decoder):
8157
desc = 'Asynchronous, serial bus.'
8258
license = 'gplv2+'
8359
inputs = ['logic']
84-
outputs = ['uart']
60+
outputs = []
8561
tags = ['Embedded/industrial']
8662
channels = (
8763
{'id': 'rxtx', 'type': 209, 'name': 'RX/TX', 'desc': 'UART transceive line'},

0 commit comments

Comments
 (0)