7import isystem.connect
as ic
14 connMgr = ic.ConnectionMgr()
15 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
18 partitionName =
"Boot1"
21 storageCtrl = ic.CStorageDeviceFactory.makeDevice(connMgr, ic.EStorageDevice_EMMCDevice, devName, partitionName)
23 print(f
"Reading 7 bytes at address 0x10 from {partitionName} partition...")
24 rData = ic.VectorBYTE(readBytes)
25 storageCtrl.read(startAddress, readBytes, rData)
26 for index
in range(readBytes-1):
27 print(f
"\tData {index}: {rData[index]}")
29 ic.CStorageDeviceFactory.terminateDevice(connMgr, ic.EStorageDevice_EMMCDevice, devName)
32if __name__ ==
"__main__":