X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fuart%2F__init__.py;h=dcee3bf8f3641548c2149d531b12fde3ffc1f6b3;hp=1c7f317841622edc11de5405305f6892af0d7624;hb=3006c663c9c2be8f476a0085d1d59319501b6303;hpb=8e828d2a29154fb9cae8c9c38d27c60f820dd584 diff --git a/decoders/uart/__init__.py b/decoders/uart/__init__.py index 1c7f317..dcee3bf 100644 --- a/decoders/uart/__init__.py +++ b/decoders/uart/__init__.py @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann ## @@ -19,6 +19,8 @@ ## ''' +UART protocol decoder. + Universal Asynchronous Receiver Transmitter (UART) is a simple serial communication protocol which allows two devices to talk to each other. @@ -94,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? @@ -111,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 *