If those variables are used before start() was called, that's a bug anyway.
]
def __init__(self, **kwargs):
- self.out_proto = None
- self.out_ann = None
self.samplecnt = 0
self.bitcount = 0
self.databyte = 0
options = {} # TODO
def __init__(self, **kwargs):
- self.out_proto = None
- self.out_ann = None
self.state = IDLE
self.cmdstate = 1 # TODO
self.out = []
options = {}
def __init__(self, **kwargs):
- self.out_proto = None
- self.out_ann = None
-
self.state = IDLE # TODO: Can we assume a certain initial state?
self.sx = self.sy = self.ax = self.ay = self.az = self.bz = self.bc = 0
]
def __init__(self, **kwargs):
- # self.out_proto = None
- self.out_ann = None
self.cmd = ''
def start(self, metadata):
self.rxcount = 0
self.rxdata = 0
self.bytesreceived = 0
- self.out_proto = None
- self.out_ann = None
def start(self, metadata):
# self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'spi')
options = {}
def __init__(self):
- self.out_proto = None
- self.out_ann = None
+ pass
def start(self, metadata):
self.rate = metadata['samplerate']
options = {}
def __init__(self, **kwargs):
- self.out_proto = None
- self.out_ann = None
self.channels = -1
self.lastsample = None
]
def __init__(self, **kwargs):
- self.out_proto = None
- self.out_ann = None
-
# Set defaults, can be overridden in 'start'.
self.baudrate = 115200
self.num_data_bits = 8