From: Robin Krens Date: Wed, 14 Feb 2024 16:12:05 +0000 (+0100) Subject: RADevice.py: deleted, moved logic to RAConnect class X-Git-Tag: v0.0.1~18 X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=11b2c60dee7b715d8ee69e5076547d6a7a499c17;p=renesas-ra-flasher RADevice.py: deleted, moved logic to RAConnect class --- diff --git a/src/RADevice.py b/src/RADevice.py deleted file mode 100644 index 726878b..0000000 --- a/src/RADevice.py +++ /dev/null @@ -1,21 +0,0 @@ -from Packer import * - -class RADevice: - def __init__(self, comm, info): - self.SCI = 0 - self.RMB = 0 - self.NOA = 0x0 - self.TYP = 0x0 - self.BFV = 0x0000 - - if (comm == None): - return - self.get_info(info) - - def get_info(self, info): - fmt = '>IIBBH' - self.SCI, self.RMB, self.NOA, self.TYP, self.BFV = struct.unpack(fmt, info) - print(f'Ver{self.BFV >> 8}.{self.BFV & 0xFF}') - -# test -d = RADevice('a', b'\x01\x31\x2d\x00\x00\x1e\x84\x80\x04\x02\x0a\x08')