def __init__(self, pretty_name, name_in_library, named_argtypes):
"""
A struct describing a library entry point function to be used
in StatusCheckedLibrary.
pretty_name: e.g. "Run"
A "pretty" name by which a StatusCheckedLibrary object will
call the function.
name_in_library: e.g. "NiFpgaDll_Run"
The name of the actual DLL entry point used to call the function.
named_argtypes: e.g. [NamedArgtype("session", _SessionType),
NamedArgtype("fifo", ctypes.c_uint32)]
A list of NamedArgtype structs used to call the function.
"""
self.pretty_name = pretty_name
self.name_in_library = name_in_library
self.named_argtypes = named_argtypes
评论列表
文章目录