포인터 관련 문의드립니다. ㅜㅜ
안녕하세요. 완전 초보입니다.
xlapi.py
.....
xlGetApplConfig = vector_xlapi_dll.xlGetApplConfig
xlGetApplConfig.restype = XLstatus
xlGetApplConfig.argtypes = [
#appName
ctypes.c_char_p,
#appChannel
ctypes.c_uint,
#pHwType
ctypes.POINTER(ctypes.c_uint),
#pHwIndex
ctypes.POINTER(ctypes.c_uint),
#pHwChannel
ctypes.POINTER(ctypes.c_uint),
#busType
ctypes.c_uint,
]
.....
xxxxx.py
busType = 0x00000002 # XL_BUS_TYPE_LIN;
for appChannel in range(0,2):
xlStatus = xlapi.xlGetApplConfig(?, appChannel, ?, ?, ? busType)
질문) ?들의 포인터 인자값은 어떻게 작성해야하는지요? 어렵네요...
smilepsw 님 195
2022년 8월 23일 7:24 오후