X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fuart%2F__init__.py;h=23e2dd0398afedb9a61c9eabd35c04b114308f12;hb=24c74fd30fb161837c5f8b01baf3c0fe2dfa4ed5;hp=43e7706c8897d3223497c5105d6bc44c413c6fbe;hpb=156509ca42f0df2380c9f205f9aad337e1a07802;p=libsigrokdecode.git diff --git a/decoders/uart/__init__.py b/decoders/uart/__init__.py index 43e7706..23e2dd0 100644 --- a/decoders/uart/__init__.py +++ b/decoders/uart/__init__.py @@ -96,16 +96,14 @@ Protocol output format: UART packet: [, , ] -This is the list of s and their respective : - - 'STARTBIT': The data is the (integer) value of the start bit (0 or 1). +This is the list of s and their respective : + - 'STARTBIT': The data is the (integer) value of the start bit (0/1). - 'DATA': The data is the (integer) value of the UART data. Valid values range from 0 to 512 (as the data can be up to 9 bits in size). - - 'PARITYBIT': The data is the (integer) value of the parity bit (0 or 1). + - 'PARITYBIT': The data is the (integer) value of the parity bit (0/1). - 'STOPBIT': The data is the (integer) value of the stop bit (0 or 1). - - 'INVALID STARTBIT': The data is the (integer) value of the start bit - (0 or 1). - - 'INVALID STOPBIT': The data is the (integer) value of the stop bit - (0 or 1). + - 'INVALID STARTBIT': The data is the (integer) value of the start bit (0/1). + - 'INVALID STOPBIT': The data is the (integer) value of the stop bit (0/1). - 'PARITY ERROR': The data is a tuple with two entries. The first one is the expected parity value, the second is the actual parity value. - TODO: Frame error? @@ -113,5 +111,5 @@ This is the list of s and their respective : The field is 0 for RX packets, 1 for TX packets. ''' -from .uart import * +from .pd import *