def getDeviceInfoDetail(devnum=0):
"""Get an entry from the internal device info list. """
f = _ft.DWORD()
t = _ft.DWORD()
i = _ft.DWORD()
l = _ft.DWORD()
h = _ft.FT_HANDLE()
n = c.c_buffer(MAX_DESCRIPTION_SIZE)
d = c.c_buffer(MAX_DESCRIPTION_SIZE)
createDeviceInfoList()
call_ft(_ft.FT_GetDeviceInfoDetail, _ft.DWORD(devnum),
c.byref(f), c.byref(t), c.byref(i), c.byref(l), n, d, c.byref(h))
return {'index': devnum, 'flags': f.value, 'type': t.value,
'id': i.value, 'location': l.value, 'serial': n.value,
'description': d.value, 'handle': h}
评论列表
文章目录