##
-## This file is part of the sigrok project.
+## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
##
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-# AVR ISP protocol decoder
-
import sigrokdecode as srd
from .parts import *
api_version = 1
id = 'avr_isp'
name = 'AVR ISP'
- longname = 'AVR in-system programming'
+ longname = 'AVR In-System Programming'
desc = 'Protocol for in-system programming Atmel AVR MCUs.'
license = 'gplv2+'
inputs = ['spi', 'logic']
]
options = {}
annotations = [
- ['Text', 'Human-readable text'],
- ['Warnings', 'Human-readable warnings'],
+ ['text', 'Human-readable text'],
+ ['warnings', 'Human-readable warnings'],
]
def __init__(self, **kwargs):
self.cmd_ss, self.cmd_es = 0, 0
self.xx, self.yy, self.zz, self.mm = 0, 0, 0, 0
- def start(self, metadata):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'avr_isp')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'avr_isp')
-
- def report(self):
- pass
+ def start(self):
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def putx(self, data):
self.put(self.cmd_ss, self.cmd_es, self.out_ann, data)