def WriteExternal(self, address, data): req = WriteRequest(self.BASE_ADDRESS_EXTERNAL + address, data) self._iface.send(req)
def FastBlockWrite(self, data): req = WriteRequest(self.BASE_ADDRESS_BLOCK, data) self._iface.send(req)
def write(self, addr, data): ad = array.array('B', data) req = WriteRequest(addr, ad) with self._lock: self._iface.send(req)