X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Faud%2Fpd.py;h=ea19a100d3eec30e8ce3716b0a75c534a3b2d58a;hp=15fce85d675e03593bf9828872a9944d43854a36;hb=6cbba91f23b9f9ace75b4722c9c0776b9211008d;hpb=86e7c29c4c80fe20d5e75db129f5e12398dfefb3 diff --git a/decoders/aud/pd.py b/decoders/aud/pd.py index 15fce85..ea19a10 100644 --- a/decoders/aud/pd.py +++ b/decoders/aud/pd.py @@ -14,8 +14,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## # TODO: @@ -33,7 +32,8 @@ class Decoder(srd.Decoder): desc = 'Renesas/Hitachi Advanced User Debugger (AUD) protocol.' license = 'gplv2+' inputs = ['logic'] - outputs = ['aud'] + outputs = [] + tags = ['Debug/trace'] channels = ( {'id': 'audck', 'name': 'AUDCK', 'desc': 'AUD clock'}, {'id': 'naudsync', 'name': 'nAUDSYNC', 'desc': 'AUD sync'}, @@ -47,6 +47,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.ncnt = 0 self.nmax = 0 self.addr = 0