From b109cec6ba1ebdc7f7fa2bdcdd3621abedc21803 Mon Sep 17 00:00:00 2001 From: zariiii9003 Date: Thu, 19 Oct 2023 19:46:39 +0200 Subject: [PATCH] add CANape 21 function prototypes --- src/pycanape/cnp_api/cnp_class.py | 228 ++- src/pycanape/cnp_api/cnp_prototype.py | 2203 +++++++++++++++++++++---- 2 files changed, 2082 insertions(+), 349 deletions(-) diff --git a/src/pycanape/cnp_api/cnp_class.py b/src/pycanape/cnp_api/cnp_class.py index cdf4496..6779e6f 100644 --- a/src/pycanape/cnp_api/cnp_class.py +++ b/src/pycanape/cnp_api/cnp_class.py @@ -18,6 +18,7 @@ class tAsap3Hdl(ctypes.Structure): TAsap3Hdl = ctypes.POINTER(tAsap3Hdl) +TAsap3DiagHdl = ctypes.c_ulong TModulHdl = ctypes.c_ushort TRecorderID = ctypes.POINTER(ctypes.c_ulong) TTime = ctypes.c_ulong @@ -25,7 +26,7 @@ class tAsap3Hdl(ctypes.Structure): TParamTemplateHdl = ctypes.POINTER(ctypes.c_ulong) TParamItemHdl = ctypes.POINTER(ctypes.c_ulong) -EVENT_CALLBACK = ctypes.WINFUNCTYPE(None, TAsap3Hdl, ctypes.c_ulong) +EVENT_CALLBACK = ctypes.WINFUNCTYPE(ctypes.c_long, TAsap3Hdl, ctypes.c_ulong) class TTaskInfo(ctypes.Structure): @@ -390,3 +391,228 @@ class TPhysInterface(ctypes.Structure): ("m_CanapPhysInterfaceName", ctypes.c_char_p), ("m_CanapPhysDeviceName", ctypes.c_char_p), ] + + +class PValues(ctypes.Union): + _fields_ = [ + ("IVal", ctypes.c_int64), + ("UIVal", ctypes.c_uint64), + ("FVal", ctypes.c_float), + ("DVal", ctypes.c_double), + ] + + +class DiagNumericParameter(ctypes.Structure): + _pack_ = 1 + _anonymous_ = ["_values"] + _fields = [ + ("DiagNumeric", enum_type), + ("_values", PValues), + ("Values", PValues), + ] + + +class DiagJobResponse(ctypes.Structure): + _pack_ = 1 + _fields = [ + ("job_responsestring", ctypes.c_char_p), + ("job_responseValue", ctypes.c_double), + ] + + +class DiagNotificationStruct(ctypes.Structure): + _pack_ = 1 + _fields = [ + ("DiagHandle", TAsap3DiagHdl), + ("DiagState", enum_type), + ("PrivateData", ctypes.c_void_p), + ] + + +FNCDIAGNOFIFICATION = ctypes.WINFUNCTYPE( + ctypes.c_long, ctypes.c_ulong, ctypes.POINTER(DiagNotificationStruct) +) + + +class TLayoutCoeffs(ctypes.Structure): + _pack_ = 1 + _fields = [ + ("OffNx", ctypes.c_short), + ("OffNy", ctypes.c_short), + ("OffX", ctypes.c_short), + ("FakX", ctypes.c_short), + ("OffY", ctypes.c_short), + ("FakY", ctypes.c_short), + ("OffW", ctypes.c_short), + ("FakWx", ctypes.c_short), + ("FakWy", ctypes.c_short), + ] + + +class s_value_ex(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("value", ctypes.c_double), + ] + + +class s_axis_ex(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("dimension", ctypes.c_short), + ("pAxis", ctypes.POINTER(ctypes.c_double)), + ("oAxis", ctypes.c_ulong), + ] + + +class s_ascii_ex(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("len", ctypes.c_short), + ("pAscii", ctypes.c_char_p), + ("oAscii", ctypes.c_ulong), + ] + + +class s_curve_ex(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("dimension", ctypes.c_short), + ("pAxis", ctypes.POINTER(ctypes.c_double)), + ("oAxis", ctypes.c_ulong), + ("pValues", ctypes.POINTER(ctypes.c_double)), + ("oValues", ctypes.c_ulong), + ] + + +class s_map_ex(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("xDimension", ctypes.c_short), + ("yDimension", ctypes.c_short), + ("pXAxis", ctypes.POINTER(ctypes.c_double)), + ("oXAxis", ctypes.c_ulong), + ("pYAxis", ctypes.POINTER(ctypes.c_double)), + ("oYAxis", ctypes.c_ulong), + ("pValues", ctypes.POINTER(ctypes.c_double)), + ("oValues", ctypes.c_ulong), + ] + + +class s_valblk_ex(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("xDimension", ctypes.c_short), + ("yDimension", ctypes.c_short), + ("values", ctypes.POINTER(ctypes.c_double)), + ("oValues", ctypes.c_ulong), + ] + + +class TCalibrationObjectValueEx(ctypes.Union): + """Union of calibration object variants. + + # :var ctypes.c_uint type: + # See :class:`~pycanape.cnp_api.cnp_constants.ValueType`. + # The enum value determines content of :class:`TCalibrationObjectValueEx` + # :var s_value_ex value: + # contains the calibration object values if *type* is + # :obj:`~pycanape.cnp_api.cnp_constants.ValueType.VALUE` + # :var s_axis_ex axis: + # contains the calibration object values if *type* is + # :obj:`~pycanape.cnp_api.cnp_constants.ValueType.AXIS` + # :var s_ascii_ex ascii: + # contains the calibration object values if *type* is + # :obj:`~pycanape.cnp_api.cnp_constants.ValueType.ASCII` + # :var s_curve_ex curve: + # contains the calibration object values if *type* is + # :obj:`~pycanape.cnp_api.cnp_constants.ValueType.CURVE` + # :var s_map_ex map: + # contains the calibration object values if *type* is + # :obj:`~pycanape.cnp_api.cnp_constants.ValueType.MAP` + # :var s_valblk_ex valblk: + # contains the calibration object values if *type* is + # :obj:`~pycanape.cnp_api.cnp_constants.ValueType.VAL_BLK` + """ + + _pack_ = 1 + _fields_ = [ + ("type", enum_type), + ("value", s_value_ex), + ("axis", s_axis_ex), + ("ascii", s_ascii_ex), + ("curve", s_curve_ex), + ("map", s_map_ex), + ("valblk", s_valblk_ex), + ] + + +class TCANapeModes(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("modes", ctypes.c_uint), + ("reserved1", ctypes.c_uint), + ("reserved2", ctypes.c_uint), + ] + + +class TSampleObject(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("countOfEntires", ctypes.c_long), + ("timestamp", TTime), + ("data", ctypes.POINTER(ctypes.c_double)), + ] + + +class TSampleBlockObject(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("has_buffer_Overrun", wintypes.BOOL), + ("has_Error", ctypes.c_long), + ("initialized", wintypes.BOOL), + ("countofValidEntries", ctypes.c_long), + ("countofInitilizedEntries", ctypes.c_long), + ("tSample", ctypes.POINTER(ctypes.POINTER(TSampleObject))), + ] + + +class TFifoSize(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("module", TModulHdl), + ("taskId", ctypes.c_ushort), + ("noSamples", ctypes.c_ushort), + ] + + +class TApplicationID(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("tApplicationType", enum_type), + ("taskId", ctypes.c_char * wintypes.MAX_PATH), + ] + + +class TConverterInfo(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("Comment", ctypes.c_char * wintypes.MAX_PATH), + ("Name", ctypes.c_char * wintypes.MAX_PATH), + ("ID", ctypes.c_char * wintypes.MAX_PATH), + ] + + +class SecProfileEntry(ctypes.Structure): + _pack_ = 1 + _fields_ = [ + ("mId", ctypes.c_uint), + ("mName", ctypes.c_char * wintypes.MAX_PATH), + ("mDescription", ctypes.c_char * wintypes.MAX_PATH), + ] diff --git a/src/pycanape/cnp_api/cnp_prototype.py b/src/pycanape/cnp_api/cnp_prototype.py index 3a1a6fd..5e80e37 100644 --- a/src/pycanape/cnp_api/cnp_prototype.py +++ b/src/pycanape/cnp_api/cnp_prototype.py @@ -72,17 +72,90 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 ) # ********************************************************************* + self.Asap3ActivateNetwork = self._map_symbol( + func_name="Asap3ActivateNetwork", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char *Name + ctypes.c_bool, # > bool activate + ], + errcheck=self._get_last_error, + ) + + self.Asap3AddItemToRecorder = self._map_symbol( + func_name="Asap3AddItemToRecorder", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char* MeasurementObject + cnp_class.TRecorderID, # > TRecorderID RecorderID + ], + errcheck=self._get_last_error, + ) + + self.Asap3AddSecProfileToNetwork = self._map_symbol( + func_name="Asap3AddSecProfileToNetwork", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_uint, # > unsigned int profileId + ctypes.c_char_p, # > char* networkName + ], + errcheck=self._get_last_error, + ) + + self.Asap3AttachAsap2 = self._map_symbol( + func_name="Asap3AttachAsap2", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *asap2Fname + ctypes.c_short, # > short canChnl + ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl * module + ], + errcheck=self._get_last_error, + ) + + self.Asap3CalibrationObjectInfo = self._map_symbol( + func_name="Asap3CalibrationObjectInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + ctypes.POINTER(ctypes.c_short), # < short * xDimension + ctypes.POINTER(ctypes.c_short), # < short * yDimension + ], + errcheck=self._get_last_error, + ) + self.Asap3CalibrationObjectInfoEx = self._map_symbol( func_name="Asap3CalibrationObjectInfoEx", restype=ctypes.c_bool, - argtypes=( + argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TModulHdl, # > TModulHdl module ctypes.c_char_p, # > const char *calibrationObjectName ctypes.POINTER(ctypes.c_short), # < short *xDimension ctypes.POINTER(ctypes.c_short), # < short *yDimension ctypes.POINTER(cnp_class.enum_type), # < TValueType *type - ), + ], + errcheck=self._get_last_error, + ) + + self.Asap3CalibrationObjectRecordInfo = self._map_symbol( + func_name="Asap3CalibrationObjectRecordInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + ctypes.POINTER(cnp_class.TLayoutCoeffs), # < TLayoutCoeffs * coeffs + ctypes.POINTER(ctypes.c_short), # < short * xDimension + ctypes.POINTER(ctypes.c_short), # < short * yDimension + ], errcheck=self._get_last_error, ) @@ -98,6 +171,50 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) + self.Asap3ClearResumeMode = self._map_symbol( + func_name="Asap3ClearResumeMode", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ], + errcheck=self._get_last_error, + ) + + self.Asap3ConnectDataAcquisition = self._map_symbol( + func_name="Asap3ConnectDataAcquisition", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ], + errcheck=self._get_last_error, + ) + + self.Asap3ConnectToCANape = self._map_symbol( + func_name="Asap3ConnectToCANape", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl *hdl + ctypes.c_char_p, # > const char *VillaRelease + ctypes.c_char_p, # > const char *Directory + ctypes.c_char_p, # > const char *language + ], + errcheck=self._get_last_error, + ) + + self.Asap3CopyBinaryFile = self._map_symbol( + func_name="Asap3CopyBinaryFile", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + cnp_class.enum_type, # > TAsap3FileType sourcetype + cnp_class.enum_type, # > TAsap3FileType desttype + ctypes.c_char_p, # > const char *filename + ], + errcheck=self._get_last_error, + ) + self.Asap3CreateDevice = self._map_symbol( func_name="Asap3CreateDevice", restype=ctypes.c_bool, @@ -110,6 +227,16 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) + self.Asap3CreateLoggerConfiguration = self._map_symbol( + func_name="Asap3CreateLoggerConfiguration", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ], + errcheck=self._get_last_error, + ) + self.Asap3CreateModule = self._map_symbol( func_name="Asap3CreateModule", restype=ctypes.c_bool, @@ -124,6 +251,21 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) + self.Asap3CreateModule2 = self._map_symbol( + func_name="Asap3CreateModule2", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *moduleName + ctypes.c_char_p, # > const char *databaseFilename + ctypes.c_short, # > short driverType + ctypes.c_short, # > short channelNo + ctypes.c_bool, # > bool goOnline + ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl * module + ], + errcheck=self._get_last_error, + ) + self.Asap3CreateModule3 = self._map_symbol( func_name="Asap3CreateModule3", restype=ctypes.c_bool, @@ -140,6 +282,42 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) + self.Asap3CreateModule4 = self._map_symbol( + func_name="Asap3CreateModule4", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char* moduleName + ctypes.c_char_p, # > const char* databaseFname + ctypes.c_short, # > short driverType + ctypes.c_short, # > short channelNo + ctypes.c_char_p, # > const char* interfaceName + ctypes.c_bool, # > bool goOnline + ctypes.c_short, # > short enableCache + ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl* module + ], + errcheck=self._get_last_error, + ) + + self.Asap3CreateModuleSec = self._map_symbol( + func_name="Asap3CreateModuleSec", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char* moduleName + ctypes.c_char_p, # > const char* databaseFname + ctypes.c_short, # > short driverType + ctypes.c_short, # > short channelNo + ctypes.c_char_p, # > const char* interfaceName + ctypes.c_uint, # > unsigned int secProfileId + ctypes.c_char_p, # > const char* securityRole + ctypes.c_bool, # > bool goOnline + ctypes.c_short, # > short enableCache + ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl* module + ], + errcheck=self._get_last_error, + ) + self.Asap3CreateParameterTemplate = self._map_symbol( func_name="Asap3CreateParameterTemplate", restype=ctypes.c_bool, @@ -174,327 +352,1002 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) - self.Asap3ECUOnOffline = self._map_symbol( - func_name="Asap3ECUOnOffline", + self.Asap3DiagCreateRawRequest = self._map_symbol( + func_name="Asap3DiagCreateRawRequest", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TModulHdl, # > TModulHdl module - cnp_class.enum_type, # > TAsap3ECUState State - ctypes.c_bool, # > bool download + ctypes.POINTER(wintypes.BYTE), # < BYTE *ServiceBytes + ctypes.c_uint, # > unsigned int length + ctypes.POINTER(cnp_class.TAsap3DiagHdl), # < TAsap3DiagHdl *hDiag ], errcheck=self._get_last_error, ) - self.Asap3EnableRecorder = self._map_symbol( - func_name="Asap3EnableRecorder", + self.Asap3DiagCreateRawRequest2 = self._map_symbol( + func_name="Asap3DiagCreateRawRequest2", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.c_bool, # > bool enable + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(wintypes.BYTE), # < BYTE *Bytes + ctypes.c_uint, # > unsigned int length + ctypes.POINTER(cnp_class.TAsap3DiagHdl), # < TAsap3DiagHdl *hDiag ], errcheck=self._get_last_error, ) - self.Asap3EnumInterfaceNames = self._map_symbol( - func_name="Asap3EnumInterfaceNames", + self.Asap3DiagCreateSymbolicRequest = self._map_symbol( + func_name="Asap3DiagCreateSymbolicRequest", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.enum_type, # > TLogicalChannels protocoltype - ctypes.c_uint, # > unsigned int index - ctypes.POINTER(ctypes.c_char_p), # < char ** CANpName - ctypes.POINTER(ctypes.c_char_p), # < char** PhysInterfacename + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char *ServiceName + ctypes.POINTER(cnp_class.TAsap3DiagHdl), # < TAsap3DiagHdl *hDiag ], errcheck=self._get_last_error, ) - self.Asap3Exit2 = self._map_symbol( - func_name="Asap3Exit2", + self.Asap3DiagEnableTesterPresent = self._map_symbol( + func_name="Asap3DiagEnableTesterPresent", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_bool, # > bool close_CANape + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_bool, # > bool enable ], errcheck=self._get_last_error, ) - self.Asap3FindParameterTemplate = self._map_symbol( - func_name="Asap3FindParameterTemplate", + self.Asap3DiagExecute = self._map_symbol( + func_name="Asap3DiagExecute", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_char_p, # > char* Name - ctypes.POINTER(cnp_class.TParamTemplateHdl), # < TParamTemplateHdl* paramHandle + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + wintypes.BOOL, # > BOOL SupressPositiveResponse ], errcheck=self._get_last_error, ) - self.Asap3GetApplicationSettings = self._map_symbol( - func_name="Asap3GetApplicationSettings", + self.Asap3DiagExecuteJob = self._map_symbol( + func_name="Asap3DiagExecuteJob", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # > char* Keyname - ctypes.POINTER(cnp_class.TSettingsParam), # > TSettingsParam* ResponseData + ctypes.c_char_p, # > char *job + ctypes.c_char_p, # > char *commandline + ctypes.c_bool, # > bool reserved + ctypes.POINTER(ctypes.POINTER(cnp_class.DiagJobResponse)), # < DiagJobResponse** jobResponse ], errcheck=self._get_last_error, ) - self.Asap3GetApplicationVersion = self._map_symbol( - func_name="Asap3GetApplicationVersion", + self.Asap3DiagGetComplexIterationCount = self._map_symbol( + func_name="Asap3DiagGetComplexIterationCount", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(cnp_class.Appversion), # < Appversion * version + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *Parameter + ctypes.c_long, # > long ResponseID + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *Iteration ], errcheck=self._get_last_error, ) - self.Asap3GetCNAFilename = self._map_symbol( - func_name="Asap3GetCNAFilename", + self.Asap3DiagGetComplexNumericResponseParameter = self._map_symbol( + func_name="Asap3DiagGetComplexNumericResponseParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(ctypes.c_char), # > char *FileName - ctypes.POINTER(wintypes.UINT), # > unsigned int *Size + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.c_char_p, # > char *SubParameter + ctypes.c_ulong, # > unsigned long InterationIndex + ctypes.POINTER(cnp_class.DiagNumericParameter), # < DiagNumericParameter *Parameter ], errcheck=self._get_last_error, ) - self.Asap3GetCommunicationType = self._map_symbol( - func_name="Asap3GetCommunicationType", + self.Asap3DiagGetComplexRawResponseParameter = self._map_symbol( + func_name="Asap3DiagGetComplexRawResponseParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(ctypes.c_char_p), # < char ** commType + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.c_char_p, # > char *SubParameter + ctypes.c_ulong, # > unsigned long InterationIndex + ctypes.c_char_p, # > char *Data + ctypes.POINTER(wintypes.DWORD), # < DWORD *Size ], errcheck=self._get_last_error, ) - self.Asap3GetCurrentValues = self._map_symbol( - func_name="Asap3GetCurrentValues", + self.Asap3DiagGetComplexStringResponseParameter = self._map_symbol( + func_name="Asap3DiagGetComplexStringResponseParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl _module - ctypes.c_ushort, # > unsigned short taskId - ctypes.POINTER(cnp_class.TTime), # < ::TTime * timeStamp - ctypes.POINTER(ctypes.c_double), # < double * values - ctypes.c_ushort, # > unsigned short maxValues + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.c_char_p, # > char *SubParameter + ctypes.c_ulong, # > unsigned long InterationIndex + ctypes.c_char_p, # > char *Data + ctypes.POINTER(wintypes.DWORD), # < DWORD *Size ], errcheck=self._get_last_error, ) - self.Asap3GetDatabaseInfo = self._map_symbol( - func_name="Asap3GetDatabaseInfo", + self.Asap3DiagGetNumericResponseParameter = self._map_symbol( + func_name="Asap3DiagGetNumericResponseParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(cnp_class.DBFileInfo), # < DBFileInfo *Info + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.POINTER(cnp_class.DiagNumericParameter), # < DiagNumericParameter * ], errcheck=self._get_last_error, ) - self.Asap3GetDBObjectInfo = self._map_symbol( - func_name="Asap3GetDBObjectInfo", + self.Asap3DiagGetRawResponseParameter = self._map_symbol( + func_name="Asap3DiagGetRawResponseParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # > char *ObjectName - ctypes.POINTER(cnp_class.DBObjectInfo), # < DBObjectInfo *Info + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.POINTER(ctypes.c_ubyte), # < unsigned char *Data + ctypes.POINTER(wintypes.DWORD), # < DWORD *Size ], errcheck=self._get_last_error, ) - self.Asap3GetDatabaseObjects = self._map_symbol( - func_name="Asap3GetDatabaseObjects", + self.Asap3DiagGetResponseCode = self._map_symbol( + func_name="Asap3DiagGetResponseCode", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(ctypes.c_char), # > char *DataObjects - ctypes.POINTER(wintypes.UINT), # > UINT *MaxSize - cnp_class.enum_type, # > TAsap3DBOType DbType + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_long, # > long ResponseID + ctypes.POINTER(wintypes.BYTE), # < BYTE *Code ], errcheck=self._get_last_error, ) - self.Asap3GetEcuDriverType = self._map_symbol( - func_name="Asap3GetEcuDriverType", + self.Asap3DiagGetResponseCount = self._map_symbol( + func_name="Asap3DiagGetResponseCount", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(cnp_class.enum_type), # < tDriverType *DriverType + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.POINTER(ctypes.c_uint), # < unsigned int *Count ], errcheck=self._get_last_error, ) - self.Asap3GetEcuTasks = self._map_symbol( - func_name="Asap3GetEcuTasks2", + self.Asap3DiagGetResponseStream = self._map_symbol( + func_name="Asap3DiagGetResponseStream", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(cnp_class.TTaskInfo), # < TTaskInfo * taskInfo - ctypes.POINTER(ctypes.c_ushort), # < unsigned short *noTasks - ctypes.c_short, # > unsigned short maxTaskInfo + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.POINTER(wintypes.BYTE), # < BYTE* Stream + ctypes.POINTER(wintypes.DWORD), # < DWORD *Size + ctypes.c_long, # > long ResponseID ], errcheck=self._get_last_error, ) - self.Asap3GetEcuTasks2 = self._map_symbol( - func_name="Asap3GetEcuTasks2", + self.Asap3DiagGetServiceState = self._map_symbol( + func_name="Asap3DiagGetServiceState", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(cnp_class.TTaskInfo2), # < TTaskInfo2 * taskInfo2 - ctypes.POINTER(ctypes.c_ushort), # < unsigned short *noTasks - ctypes.c_short, # > unsigned short maxTaskInfo + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.POINTER(cnp_class.enum_type), # < eServiceStates *State ], errcheck=self._get_last_error, ) - self.Asap3GetFifoLevel = self._map_symbol( - func_name="Asap3GetFifoLevel", - restype=ctypes.c_long, + self.Asap3DiagGetStringResponseParameter = self._map_symbol( + func_name="Asap3DiagGetStringResponseParameter", + restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_ushort, # > unsigned short taskId + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.c_char_p, # > char *Data + ctypes.POINTER(wintypes.DWORD), # < DWORD *Size ], errcheck=self._get_last_error, ) - self.Asap3GetInterfaceNames = self._map_symbol( - func_name="Asap3GetInterfaceNames", + self.Asap3DiagIsComplexResponseParameter = self._map_symbol( + func_name="Asap3DiagIsComplexResponseParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.enum_type, # > TLogicalChannels protocoltype - ctypes.POINTER(ctypes.c_int), # < int *Count + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char *name + ctypes.c_long, # > long ResponseID + ctypes.POINTER(wintypes.BOOL), # < BOOL *IsComplex ], errcheck=self._get_last_error, ) - self.Asap3GetMeasurementListEntries = self._map_symbol( - func_name="Asap3GetMeasurementListEntries", + self.Asap3DiagIsPositiveResponse = self._map_symbol( + func_name="Asap3DiagIsPositiveResponse", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(ctypes.POINTER(cnp_class.MeasurementListEntries)), # < MeasurementListEntries **Items + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_long, # > long ResponseID + ctypes.POINTER(wintypes.BOOL), # < BOOL *IsPositive ], errcheck=self._get_last_error, ) - self.Asap3GetMeasurementState = self._map_symbol( - func_name="Asap3GetMeasurementState", + self.Asap3DiagIsTesterPresentEnabled = self._map_symbol( + func_name="Asap3DiagIsTesterPresentEnabled", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(cnp_class.enum_type), # > tMeasurementState *State + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_bool), # < bool *enabled ], errcheck=self._get_last_error, ) - self.Asap3GetModuleCount = self._map_symbol( - func_name="Asap3GetModuleCount", + self.Asap3DiagReleaseService = self._map_symbol( + func_name="Asap3DiagReleaseService", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(ctypes.c_ulong), # < unsigned long *count + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag ], errcheck=self._get_last_error, ) - self.Asap3GetModuleHandle = self._map_symbol( - func_name="Asap3GetModuleHandle", + self.Asap3DiagSetNotificationParameters = self._map_symbol( + func_name="Asap3DiagSetNotificationParameters", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_char_p, # > const char *moduleName - ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl * module + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + cnp_class.FNCDIAGNOFIFICATION, # > FNCDIAGNOFIFICATION CallbackFunction + ctypes.c_void_p, # > void *PrivateData ], errcheck=self._get_last_error, ) - self.Asap3GetModuleName = self._map_symbol( - func_name="Asap3GetModuleName", + self.Asap3DiagSetNumericParameter = self._map_symbol( + func_name="Asap3DiagSetNumericParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(ctypes.c_char_p), # < char **moduleName + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char* ParameterName + ctypes.POINTER(cnp_class.DiagNumericParameter), # < DiagNumericParameter *Parameter ], errcheck=self._get_last_error, ) - self.Asap3GetNetworkName = self._map_symbol( - func_name="Asap3GetNetworkName", + self.Asap3DiagSetRawParameter = self._map_symbol( + func_name="Asap3DiagSetRawParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # < char *Name - ctypes.POINTER(ctypes.c_uint), # < unsigned int * sizeofName + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char* ParameterName + ctypes.POINTER(wintypes.BYTE), # < BYTE* ParameterValue + wintypes.DWORD, # > DWORD Size ], errcheck=self._get_last_error, ) - self.Asap3GetNextSample = self._map_symbol( - func_name="Asap3GetNextSample", + self.Asap3DiagSetStringParameter = self._map_symbol( + func_name="Asap3DiagSetStringParameter", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_ushort, # > unsigned short taskId - ctypes.POINTER(cnp_class.TTime), # < TTime * timeStamp - ctypes.POINTER(ctypes.POINTER(ctypes.c_double)), # < double ** values + cnp_class.TAsap3DiagHdl, # > TAsap3DiagHdl hDiag + ctypes.c_char_p, # > char* ParameterName + ctypes.c_char_p, # > char* ParameterValue ], errcheck=self._get_last_error, ) - self.Asap3GetParameterCount = self._map_symbol( - func_name="Asap3GetParameterCount", + self.Asap3DisconnectDataAcquisition = self._map_symbol( + func_name="Asap3DisconnectDataAcquisition", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(ctypes.c_ushort), # < unsigned short* count ], errcheck=self._get_last_error, ) - self.Asap3GetParameterInfoByClass = self._map_symbol( - func_name="Asap3GetParameterInfoByClass", + self.Asap3DisconnectFromCANape = self._map_symbol( + func_name="Asap3DisconnectFromCANape", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.enum_type, # > eTParameterClass type - ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype - ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize - ctypes.POINTER(ctypes.c_char_p), # < char ** name ], errcheck=self._get_last_error, ) - self.Asap3GetParameterInfoByIndex = self._map_symbol( - func_name="Asap3GetParameterInfoByIndex", + self.Asap3ECUOnOffline = self._map_symbol( + func_name="Asap3ECUOnOffline", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_uint, # > unsigned int index - ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass* type - ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype - ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize - ctypes.POINTER(ctypes.c_char_p), # < char ** name + cnp_class.TModulHdl, # > TModulHdl module + cnp_class.enum_type, # > TAsap3ECUState State + ctypes.c_bool, # > bool download + ], + errcheck=self._get_last_error, + ) + + self.Asap3EnableBusLoggingRecorderByModule = self._map_symbol( + func_name="Asap3EnableBusLoggingRecorderByModule", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + cnp_class.TModulHdl, # > TModulHdl module + wintypes.BOOL, # > BOOL enable + ], + errcheck=self._get_last_error, + ) + + self.Asap3EnableBusLoggingRecorderByNetWork = self._map_symbol( + func_name="Asap3EnableBusLoggingRecorderByNetWork", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_char_p, # > char* NetworkName + wintypes.BOOL, # > BOOL enable + ], + errcheck=self._get_last_error, + ) + + self.Asap3EnableRecorder = self._map_symbol( + func_name="Asap3EnableRecorder", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_bool, # > bool enable + ], + errcheck=self._get_last_error, + ) + + self.Asap3EnumInterfaceNames = self._map_symbol( + func_name="Asap3EnumInterfaceNames", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.enum_type, # > TLogicalChannels protocoltype + ctypes.c_uint, # > unsigned int index + ctypes.POINTER(ctypes.c_char_p), # < char ** CANpName + ctypes.POINTER(ctypes.c_char_p), # < char** PhysInterfacename + ], + errcheck=self._get_last_error, + ) + + self.Asap3ExecuteScript = self._map_symbol( + func_name="Asap3ExecuteScript", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_bool, # > bool scriptFile + ctypes.c_char_p, # > const char * script + ], + errcheck=self._get_last_error, + ) + + self.Asap3ExecuteScriptEx = self._map_symbol( + func_name="Asap3ExecuteScriptEx", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_bool, # > bool scriptFile + ctypes.c_char_p, # > const char * script + ctypes.POINTER(cnp_class.TScriptHdl), # < TScriptHdl *hScript + ], + errcheck=self._get_last_error, + ) + + self.Asap3Exit = self._map_symbol( + func_name="Asap3Exit", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ], + errcheck=self._get_last_error, + ) + + self.Asap3Exit2 = self._map_symbol( + func_name="Asap3Exit2", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_bool, # > bool close_CANape + ], + errcheck=self._get_last_error, + ) + + self.Asap3FindParameterTemplate = self._map_symbol( + func_name="Asap3FindParameterTemplate", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char* Name + ctypes.POINTER(cnp_class.TParamTemplateHdl), # < TParamTemplateHdl* paramHandle + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashGetJobCount = self._map_symbol( + func_name="Asap3FlashGetJobCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *Count + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashGetJobName = self._map_symbol( + func_name="Asap3FlashGetJobName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_ulong, # > unsigned long index + ctypes.c_char_p, # > char *Name + ctypes.POINTER(ctypes.c_long), # < long *SizeOfName + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashGetJobState = self._map_symbol( + func_name="Asap3FlashGetJobState", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_double), # < double *ScriptResult + ctypes.POINTER(wintypes.BOOL), # < BOOL *isRunning + ctypes.POINTER(ctypes.c_long), # < long *Progress + ctypes.c_char_p, # > char *Info + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *SizeofInfo + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashGetSessionCount = self._map_symbol( + func_name="Asap3FlashGetSessionCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *Count + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashGetSessionName = self._map_symbol( + func_name="Asap3FlashGetSessionName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_ulong, # > unsigned long index + ctypes.c_char_p, # > char *Name + ctypes.POINTER(ctypes.c_long), # < long *SizeOfName + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashSetODXContainer = self._map_symbol( + func_name="Asap3FlashSetODXContainer", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *ODXContainerfile + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashStartFlashJob = self._map_symbol( + func_name="Asap3FlashStartFlashJob", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *SessionName + ctypes.c_char_p, # > const char *JobName + ctypes.c_char_p, # > const char *ConfigFileName + ], + errcheck=self._get_last_error, + ) + + self.Asap3FlashStopJob = self._map_symbol( + func_name="Asap3FlashStopJob", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetApplicationName = self._map_symbol( + func_name="Asap3GetApplicationName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char *Name + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *Size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetApplicationSettings = self._map_symbol( + func_name="Asap3GetApplicationSettings", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char* Keyname + ctypes.POINTER(cnp_class.TSettingsParam), # < TSettingsParam* ResponseData + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetApplicationVersion = self._map_symbol( + func_name="Asap3GetApplicationVersion", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(cnp_class.Appversion), # < Appversion * version + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetAsap2 = self._map_symbol( + func_name="Asap3GetAsap2", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_char_p), # < char ** asap2Fname + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetCANapeMode = self._map_symbol( + func_name="Asap3GetCANapeMode", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(cnp_class.TCANapeModes), # < tCANapeModes* modes + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetCNAFilename = self._map_symbol( + func_name="Asap3GetCNAFilename", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_char), # > char *FileName + ctypes.POINTER(ctypes.c_uint), # < unsigned int *Size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetCanapeModuleParam = self._map_symbol( + func_name="Asap3GetCanapeModuleParam", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char *param + ctypes.c_char_p, # > char *value + ctypes.POINTER(ctypes.c_uint), # < unsigned int *sizeofValue + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetCanapeProjectParam = self._map_symbol( + func_name="Asap3GetCanapeProjectParam", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char *Section + ctypes.c_char_p, # > char *param + ctypes.c_char_p, # > char *value + ctypes.POINTER(ctypes.c_uint), # < unsigned int *sizeofValue + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetChnlDefaultRaster = self._map_symbol( + func_name="Asap3GetChnlDefaultRaster", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *measurementObjectName + ctypes.POINTER(ctypes.c_ushort), # < unsigned short *taskId + ctypes.POINTER(ctypes.c_ushort), # < unsigned short *downSampling + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetCommunicationType = self._map_symbol( + func_name="Asap3GetCommunicationType", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_char_p), # < char ** commType + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetCurrentValues = self._map_symbol( + func_name="Asap3GetCurrentValues", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl _module + ctypes.c_ushort, # > unsigned short taskId + ctypes.POINTER(cnp_class.TTime), # < ::TTime * timeStamp + ctypes.POINTER(ctypes.c_double), # < double * values + ctypes.c_ushort, # > unsigned short maxValues + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetDBObjectComment = self._map_symbol( + func_name="Asap3GetDBObjectComment", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl mod + ctypes.c_char_p, # > char* DBObjname + ctypes.c_char_p, # > char* Comment + ctypes.POINTER(wintypes.UINT), # < UINT* size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetDBObjectInfo = self._map_symbol( + func_name="Asap3GetDBObjectInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char *ObjectName + ctypes.POINTER(cnp_class.DBObjectInfo), # < DBObjectInfo *Info + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetDBObjectUnit = self._map_symbol( + func_name="Asap3GetDBObjectUnit", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char *DatabaseObjectName + ctypes.c_char_p, # > char *UnitName + ctypes.POINTER(wintypes.UINT), # < UINT *Size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetDatabaseInfo = self._map_symbol( + func_name="Asap3GetDatabaseInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(cnp_class.DBFileInfo), # < DBFileInfo *Info + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetDatabaseObjects = self._map_symbol( + func_name="Asap3GetDatabaseObjects", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_char), # > char *DataObjects + ctypes.POINTER(wintypes.UINT), # < UINT *MaxSize + cnp_class.enum_type, # > TAsap3DBOType DbType + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetDatabaseObjectsByType = self._map_symbol( + func_name="Asap3GetDatabaseObjectsByType", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char *DataObjects + ctypes.POINTER(wintypes.UINT), # < UINT *MaxSize + cnp_class.enum_type, # > TAsap3DBOType DbType + ctypes.c_ulong, # > unsigned long TypeFilter + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetEcuDriverType = self._map_symbol( + func_name="Asap3GetEcuDriverType", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(cnp_class.enum_type), # < tDriverType *DriverType + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetEcuTasks = self._map_symbol( + func_name="Asap3GetEcuTasks", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(cnp_class.TTaskInfo), # < TTaskInfo * taskInfo + ctypes.POINTER(ctypes.c_ushort), # < unsigned short * noTasks + ctypes.c_ushort, # > unsigned short maxTaskInfo + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetEcuTasks2 = self._map_symbol( + func_name="Asap3GetEcuTasks2", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(cnp_class.TTaskInfo2), # < TTaskInfo2 * taskInfo2 + ctypes.POINTER(ctypes.c_ushort), # < unsigned short *noTasks + ctypes.c_ushort, # > unsigned short maxTaskInfo + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetFifoLevel = self._map_symbol( + func_name="Asap3GetFifoLevel", + restype=ctypes.c_long, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_ushort, # > unsigned short taskId + ], + ) + + self.Asap3GetInteractiveMode = self._map_symbol( + func_name="Asap3GetInteractiveMode", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_bool), # < bool *mode + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetInterfaceNames = self._map_symbol( + func_name="Asap3GetInterfaceNames", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.enum_type, # > TLogicalChannels protocoltype + ctypes.POINTER(ctypes.c_int), # < int *Count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetItemRecorderList = self._map_symbol( + func_name="Asap3GetItemRecorderList", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char* MeasurementObject + ctypes.POINTER(ctypes.c_int), # < int* count + ctypes.POINTER(cnp_class.TRecorderID), # < TRecorderID* RecorderIDList + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetLastError = self._map_symbol( + func_name="Asap3GetLastError", + restype=ctypes.c_short, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ], + ) + + self.Asap3GetMdfFilename = self._map_symbol( + func_name="Asap3GetMdfFilename", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_char_p), # < char ** mdfFilename + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetMeasurementListEntries = self._map_symbol( + func_name="Asap3GetMeasurementListEntries", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.POINTER(cnp_class.MeasurementListEntries)), # < MeasurementListEntries **Items + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetMeasurementState = self._map_symbol( + func_name="Asap3GetMeasurementState", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(cnp_class.enum_type), # < tMeasurementState *State + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetMemoryPage = self._map_symbol( + func_name="Asap3GetMemoryPage", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(cnp_class.enum_type), # < e_RamMode *mode + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetModuleCount = self._map_symbol( + func_name="Asap3GetModuleCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetModuleHandle = self._map_symbol( + func_name="Asap3GetModuleHandle", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *moduleName + ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl * module + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetModuleName = self._map_symbol( + func_name="Asap3GetModuleName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_char_p), # < char **moduleName + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetModuleSecJobName = self._map_symbol( + func_name="Asap3GetModuleSecJobName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char* jobName + ctypes.POINTER(wintypes.DWORD), # < DWORD* sizeofBuffer + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetNetworkDevices = self._map_symbol( + func_name="Asap3GetNetworkDevices", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char *Name + ctypes.POINTER(cnp_class.TModulHdl), # < TModulHdl * ModuleArray + ctypes.POINTER(ctypes.c_uint), # < unsigned int *count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetNetworkName = self._map_symbol( + func_name="Asap3GetNetworkName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > char *Name + ctypes.POINTER(ctypes.c_uint), # < unsigned int * sizeofName + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetNextSample = self._map_symbol( + func_name="Asap3GetNextSample", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_ushort, # > unsigned short taskId + ctypes.POINTER(cnp_class.TTime), # < ::TTime * timeStamp + ctypes.POINTER(ctypes.POINTER(ctypes.c_double)), # < double ** values + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetNextSampleBlock = self._map_symbol( + func_name="Asap3GetNextSampleBlock", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl _module + ctypes.c_ushort, # > unsigned short taskId + ctypes.c_long, # > long count_of_Samples + ctypes.POINTER(ctypes.POINTER(cnp_class.TSampleBlockObject)), # < tSampleBlockObject ** values + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetParameterCount = self._map_symbol( + func_name="Asap3GetParameterCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_ushort), # < unsigned short* count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetParameterInfoByClass = self._map_symbol( + func_name="Asap3GetParameterInfoByClass", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.enum_type, # > eTParameterClass type + ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype + ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize + ctypes.POINTER(ctypes.c_char_p), # < char** name ], errcheck=self._get_last_error, ) @@ -504,330 +1357,972 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_char_p, # > const char* classname - ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass* type - ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype - ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize - ctypes.POINTER(ctypes.c_char_p), # < char ** name + ctypes.c_char_p, # > const char* classname + ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass* type + ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype + ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetParameterInfoByIndex = self._map_symbol( + func_name="Asap3GetParameterInfoByIndex", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_uint, # > unsigned int index + ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass*type + ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype + ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize + ctypes.POINTER(ctypes.c_char_p), # < char** name + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetParameterTemplateName = self._map_symbol( + func_name="Asap3GetParameterTemplateName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + ctypes.POINTER(ctypes.c_char_p), # < char** Name + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetProjectDirectory = self._map_symbol( + func_name="Asap3GetProjectDirectory", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # < char* directory + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderByIndex = self._map_symbol( + func_name="Asap3GetRecorderByIndex", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_ulong, # > unsigned long index + ctypes.POINTER(cnp_class.TRecorderID), # < TRecorderID *recorderID + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderByName = self._map_symbol( + func_name="Asap3GetRecorderByName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char * recordername + ctypes.POINTER(cnp_class.TRecorderID), # < TRecorderID *recorderID + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderCount = self._map_symbol( + func_name="Asap3GetRecorderCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_ulong), # < unsigned long *count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderDataReduction = self._map_symbol( + func_name="Asap3GetRecorderDataReduction", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.POINTER(ctypes.c_int), # < int *Reduction + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderMdfFileName = self._map_symbol( + func_name="Asap3GetRecorderMdfFileName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_char_p, # < char *FileName + ctypes.POINTER(wintypes.DWORD), # < DWORD *size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderName = self._map_symbol( + func_name="Asap3GetRecorderName", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_char_p, # < char * recorderName + ctypes.POINTER(ctypes.c_long), # < long *Size + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderState = self._map_symbol( + func_name="Asap3GetRecorderState", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.POINTER(cnp_class.enum_type), # < EnRecorderState *State + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetRecorderType = self._map_symbol( + func_name="Asap3GetRecorderType", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.POINTER(cnp_class.enum_type), # < TRecorderType *RecorderType + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetScriptResultString = self._map_symbol( + func_name="Asap3GetScriptResultString", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TScriptHdl, # > TScriptHdl hScript + ctypes.c_char_p, # < char*resultString + ctypes.POINTER(wintypes.DWORD), # < DWORD *sizeofBuffer + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetScriptResultValue = self._map_symbol( + func_name="Asap3GetScriptResultValue", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TScriptHdl, # > TScriptHdl hScript + ctypes.POINTER(ctypes.c_double), # < double *Value + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetScriptState = self._map_symbol( + func_name="Asap3GetScriptState", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TScriptHdl, # > TScriptHdl hScript + ctypes.POINTER(cnp_class.enum_type), # < TScriptStatus *scrstate + ctypes.c_char_p, # > char *textBuffer + ctypes.POINTER(wintypes.DWORD), # < DWORD *sizeofbuffer + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetSecProfileCount = self._map_symbol( + func_name="Asap3GetSecProfileCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_uint), # < unsigned int* count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetSecProfileIdentifier = self._map_symbol( + func_name="Asap3GetSecProfileIdentifier", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char* identifiers + ctypes.POINTER(wintypes.DWORD), # < DWORD* sizeofBuffer + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetSecProfileInfo = self._map_symbol( + func_name="Asap3GetSecProfileInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_uint, # > unsigned int id + ctypes.POINTER(cnp_class.SecProfileEntry), # < SecProfileEntry* entry + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetSelectedRecorder = self._map_symbol( + func_name="Asap3GetSelectedRecorder", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(cnp_class.TRecorderID), # < TRecorderID *recorderID + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetTemplateParameterByIndex = self._map_symbol( + func_name="Asap3GetTemplateParameterByIndex", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + ctypes.c_uint, # > unsigned int index + ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass* type + ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype + ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize + ctypes.POINTER(ctypes.c_void_p), # < void** data + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetTemplateParameterCount = self._map_symbol( + func_name="Asap3GetTemplateParameterCount", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + ctypes.POINTER(ctypes.c_ulong), # < unsigned long* count + ], + errcheck=self._get_last_error, + ) + + self.Asap3GetTemplateParameterInfo = self._map_symbol( + func_name="Asap3GetTemplateParameterInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + cnp_class.enum_type, # > eTParameterClass type + ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype + ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize + ctypes.POINTER(ctypes.c_void_p), # < void** data + ], + errcheck=self._get_last_error, + ) + + self.Asap3HasMCD3License = self._map_symbol( + func_name="Asap3HasMCD3License", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_bool), # < bool *available + ], + errcheck=self._get_last_error, + ) + + self.Asap3HasResumeMode = self._map_symbol( + func_name="Asap3HasResumeMode", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_bool), # < bool *possible + ], + errcheck=self._get_last_error, + ) + + self.Asap3Init = self._map_symbol( + func_name="Asap3Init", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl * hdl + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.c_char_p, # > const char *workingDir + ctypes.c_ulong, # > unsigned long fifoSize + ctypes.c_bool, # > bool debugMode + ], + errcheck=self._get_last_error, + ) + + self.Asap3Init2 = self._map_symbol( + func_name="Asap3Init2", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl * hdl + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.c_char_p, # > const char *workingDir + ctypes.c_ulong, # > unsigned long fifoSize + ctypes.c_ulong, # > unsigned long sampleSize + ctypes.c_bool, # > bool debugMode + ], + errcheck=self._get_last_error, + ) + + self.Asap3Init3 = self._map_symbol( + func_name="Asap3Init3", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl * hdl + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.c_char_p, # > const char *workingDir + ctypes.c_ulong, # > unsigned long fifoSize + ctypes.c_ulong, # > unsigned long sampleSize + ctypes.c_bool, # > bool debugMode + ctypes.c_bool, # > bool clearDeviceList + ], + errcheck=self._get_last_error, + ) + + self.Asap3Init4 = self._map_symbol( + func_name="Asap3Init4", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl * hdl + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.c_char_p, # > const char *workingDir + ctypes.c_ulong, # > unsigned long fifoSize + ctypes.c_ulong, # > unsigned long sampleSize + ctypes.c_bool, # > bool debugMode + ctypes.c_bool, # > bool clearDeviceList + ctypes.c_bool, # > bool bHexmode + ], + errcheck=self._get_last_error, + ) + + self.Asap3Init5 = self._map_symbol( + func_name="Asap3Init5", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl * hdl + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.c_char_p, # > const char *workingDir + ctypes.c_ulong, # > unsigned long fifoSize + ctypes.c_ulong, # > unsigned long sampleSize + ctypes.c_bool, # > bool debugMode + ctypes.c_bool, # > bool clearDeviceList + ctypes.c_bool, # > bool bHexmode + ctypes.c_bool, # > bool bModalMode + ], + errcheck=self._get_last_error, + ) + + self.Asap3Init6 = self._map_symbol( + func_name="Asap3Init6", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl *hdl + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.c_char_p, # > const char *projectFile + ctypes.c_ulong, # > unsigned long fifoSize + ctypes.c_ulong, # > unsigned long sampleSize + ctypes.c_bool, # > bool debugMode + ctypes.c_bool, # > bool clearDeviceList + ctypes.c_bool, # > bool bHexmode + ctypes.c_bool, # > bool bModalMode + ctypes.POINTER(cnp_class.TApplicationID), # < TApplicationID *strApplication + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsECUOnline = self._map_symbol( + func_name="Asap3IsECUOnline", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(cnp_class.enum_type), # < TAsap3ECUState *State + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsModuleActive = self._map_symbol( + func_name="Asap3IsModuleActive", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_bool), # < bool *activate + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsNANUsed = self._map_symbol( + func_name="Asap3IsNANUsed", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_bool), # < bool *use ], errcheck=self._get_last_error, ) - self.Asap3GetParameterTemplateName = self._map_symbol( - func_name="Asap3GetParameterTemplateName", + self.Asap3IsNetworkActivated = self._map_symbol( + func_name="Asap3IsNetworkActivated", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > char *Name + ctypes.POINTER(ctypes.c_bool), # < bool *activated + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsRecorderBusLoggingEnableByModule = self._map_symbol( + func_name="Asap3IsRecorderBusLoggingEnableByModule", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(wintypes.BOOL), # < BOOL *enable + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsRecorderBusLoggingEnableByNetWork = self._map_symbol( + func_name="Asap3IsRecorderBusLoggingEnableByNetWork", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_char_p, # > char* NetworkName + ctypes.POINTER(wintypes.BOOL), # < BOOL *enable + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsRecorderEnabled = self._map_symbol( + func_name="Asap3IsRecorderEnabled", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.POINTER(ctypes.c_bool), # < bool *enabled + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsRestartMeasurementOnErrorEnabled = self._map_symbol( + func_name="Asap3IsRestartMeasurementOnErrorEnabled", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_bool), # < bool *restart + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsResumeModeActive = self._map_symbol( + func_name="Asap3IsResumeModeActive", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_bool), # < bool *enabled + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsTimeSyncEnabled = self._map_symbol( + func_name="Asap3IsTimeSyncEnabled", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.POINTER(ctypes.c_bool), # < bool *enabled + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsUsCANapeVersion = self._map_symbol( + func_name="Asap3IsUsCANapeVersion", + restype=ctypes.c_bool, + argtypes=[ + ctypes.POINTER(wintypes.BOOL), # < BOOL *USVersion + ], + errcheck=self._get_last_error, + ) + + self.Asap3IsValidParameterTemplate = self._map_symbol( + func_name="Asap3IsValidParameterTemplate", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle - ctypes.POINTER(ctypes.c_char_p), # < char** Name ], errcheck=self._get_last_error, ) - self.Asap3GetProjectDirectory = self._map_symbol( - func_name="Asap3GetProjectDirectory", + self.Asap3LoadCNAFile = self._map_symbol( + func_name="Asap3LoadCNAFile", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_char_p, # < char* directory - ctypes.POINTER(ctypes.c_ulong), # < unsigned long *size + ctypes.c_char_p, # > char* configFileName ], errcheck=self._get_last_error, ) - self.Asap3GetRecorderByIndex = self._map_symbol( - func_name="Asap3GetRecorderByIndex", + self.Asap3MDFConvert = self._map_symbol( + func_name="Asap3MDFConvert", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_ulong, # > unsigned long index - ctypes.POINTER(cnp_class.TRecorderID), # < TRecorderID *recorderID + ctypes.c_char_p, # > char *converterID + ctypes.c_char_p, # > const char *mdfFilename + ctypes.c_char_p, # > const char *destFilename + ctypes.c_bool, # > bool overwrite ], errcheck=self._get_last_error, ) - self.Asap3GetRecorderCount = self._map_symbol( - func_name="Asap3GetRecorderCount", + self.Asap3MDFConverterCount = self._map_symbol( + func_name="Asap3MDFConverterCount", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(ctypes.c_ulong), # < unsigned long *count + ctypes.POINTER(ctypes.c_int), # < int *count + ], + errcheck=self._get_last_error, + ) + + self.Asap3MDFConverterInfo = self._map_symbol( + func_name="Asap3MDFConverterInfo", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_int, # > int index + ctypes.POINTER(cnp_class.TConverterInfo), # < TConverterInfo* item + ], + errcheck=self._get_last_error, + ) + + self.Asap3MatlabConversion = self._map_symbol( + func_name="Asap3MatlabConversion", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *mdfFilename + ctypes.c_char_p, # > const char *matlabFilename + ], + errcheck=self._get_last_error, + ) + + self.Asap3MatlabConversionAsync = self._map_symbol( + func_name="Asap3MatlabConversionAsync", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *mdfFilename + ctypes.c_char_p, # > const char *matlabFilename + ], + errcheck=self._get_last_error, + ) + + self.Asap3ModuleActivation = self._map_symbol( + func_name="Asap3ModuleActivation", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_bool, # > bool activate + ], + errcheck=self._get_last_error, + ) + + self.Asap3OpenDisplay = self._map_symbol( + func_name="Asap3OpenDisplay", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *Title + ctypes.c_int, # > int Editable + ctypes.c_int, # > int Graphical + ctypes.c_int, # > int CountParameterLabelsList + ctypes.POINTER(ctypes.c_char_p), # < const char *ParameterLabelList[] + ctypes.c_char_p, # > const char *DataDescFile + ctypes.c_char_p, # > const char *DataVersFile + ctypes.c_int, # > int CountAppHistList + ctypes.POINTER(ctypes.c_char_p), # < const char *AppHistLabelList[] + ctypes.POINTER(ctypes.c_char_p), # < const char *AppHistTextList[] + ctypes.c_char_p, # > const char *AppHistDefault + ctypes.POINTER(ctypes.c_int), # < int *CountModified + ctypes.POINTER(ctypes.POINTER(ctypes.c_char_p)), # < const char **ModifiedLabelList[] + ctypes.POINTER(ctypes.c_int), # < int *CountErrors + ctypes.POINTER(ctypes.POINTER(ctypes.c_char_p)), # < const char **ErrorLabelList[] + ctypes.POINTER(ctypes.c_int), # < int *CountModAppList + ctypes.POINTER(ctypes.POINTER(ctypes.c_char_p)), # < const char **ModAppHistLabelList[] + ctypes.POINTER(ctypes.POINTER(ctypes.c_char_p)), # < const char **ModAppHistTextList[] + ], + errcheck=self._get_last_error, + ) + + self.Asap3OpenDisplayForFile = self._map_symbol( + func_name="Asap3OpenDisplayForFile", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ctypes.c_char_p, # > const char *Patternfile + ], + errcheck=self._get_last_error, + ) + + self.Asap3PauseRecorder = self._map_symbol( + func_name="Asap3PauseRecorder", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_bool, # > bool Pause + ], + errcheck=self._get_last_error, + ) + + self.Asap3PopupDebugWindow = self._map_symbol( + func_name="Asap3PopupDebugWindow", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReadByAddress = self._map_symbol( + func_name="Asap3ReadByAddress", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_ulong, # > unsigned long addr + ctypes.c_ubyte, # > unsigned char addrExt + ctypes.c_ulong, # > unsigned long size + ctypes.POINTER(ctypes.c_ubyte), # < unsigned char * data + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReadCalibrationObject = self._map_symbol( + func_name="Asap3ReadCalibrationObject", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + cnp_class.enum_type, # > TFormat format + ctypes.POINTER(cnp_class.TCalibrationObjectValue), # < TCalibrationObjectValue * value + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReadCalibrationObject2 = self._map_symbol( + func_name="Asap3ReadCalibrationObject2", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + cnp_class.enum_type, # > TFormat format + ctypes.c_bool, # > bool forceupload + ctypes.POINTER(cnp_class.TCalibrationObjectValue), # < TCalibrationObjectValue *value + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReadCalibrationObjectEx = self._map_symbol( + func_name="Asap3ReadCalibrationObjectEx", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + cnp_class.enum_type, # > TFormat format + ctypes.POINTER(cnp_class.TCalibrationObjectValueEx), # < TCalibrationObjectValueEx * value + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReadObjectParameter = self._map_symbol( + func_name="Asap3ReadObjectParameter", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *objectName + cnp_class.enum_type, # > TFormat format + ctypes.POINTER(cnp_class.enum_type), # < TAsap3DataType * type + ctypes.POINTER(ctypes.c_ulong), # < unsigned long * address + ctypes.POINTER(ctypes.c_double), # < double * min + ctypes.POINTER(ctypes.c_double), # < double * max + ctypes.POINTER(ctypes.c_double), # < double * increment + ], + errcheck=self._get_last_error, + ) + + self.Asap3RegisterCallBack = self._map_symbol( + func_name="Asap3RegisterCallBack", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.enum_type, # > ASAP3_EVENT_CODE eventID + cnp_class.EVENT_CALLBACK, # > void *fnc + ctypes.c_ulong, # > unsigned long privateData + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReleaseInterfaceNames = self._map_symbol( + func_name="Asap3ReleaseInterfaceNames", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.enum_type, # > TLogicalChannels protocoltype + ], + errcheck=self._get_last_error, + ) + + self.Asap3ReleaseModule = self._map_symbol( + func_name="Asap3ReleaseModule", + restype=ctypes.c_bool, + argtypes=[ + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module ], errcheck=self._get_last_error, ) - self.Asap3GetRecorderMdfFileName = self._map_symbol( - func_name="Asap3GetRecorderMdfFileName", + self.Asap3ReleaseParameterTemplate = self._map_symbol( + func_name="Asap3ReleaseParameterTemplate", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.c_char_p, # < char *FileName - ctypes.POINTER(wintypes.DWORD), # < DWORD *size + cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle ], errcheck=self._get_last_error, ) - self.Asap3GetRecorderName = self._map_symbol( - func_name="Asap3GetRecorderName", + self.Asap3ReleaseResultList = self._map_symbol( + func_name="Asap3ReleaseResultList", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.c_char_p, # < char * recorderName - ctypes.POINTER(ctypes.c_long), # < long *Size + ctypes.c_int, # > const int CountResults + ctypes.POINTER(ctypes.c_char_p), # < const char *ResultList[] ], errcheck=self._get_last_error, ) - self.Asap3GetRecorderState = self._map_symbol( - func_name="Asap3GetRecorderState", + self.Asap3ReleaseScript = self._map_symbol( + func_name="Asap3ReleaseScript", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.POINTER(cnp_class.enum_type), # < EnRecorderState *State + cnp_class.TScriptHdl, # > TScriptHdl hScript ], errcheck=self._get_last_error, ) - self.Asap3GetSelectedRecorder = self._map_symbol( - func_name="Asap3GetSelectedRecorder", + self.Asap3ReleaseTemplateParameterItem = self._map_symbol( + func_name="Asap3ReleaseTemplateParameterItem", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(cnp_class.TRecorderID), # < TRecorderID *recorderID + cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + cnp_class.enum_type, # > eTParameterClass type ], errcheck=self._get_last_error, ) - self.Asap3GetTemplateParameterByIndex = self._map_symbol( - func_name="Asap3GetTemplateParameterByIndex", + self.Asap3RemoveItemFromRecorder = self._map_symbol( + func_name="Asap3RemoveItemFromRecorder", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle - ctypes.c_uint, # > unsigned int index - ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass type - ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype - ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize - ctypes.POINTER(ctypes.c_void_p), # < void** data + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char* MeasurementObject + cnp_class.TRecorderID, # > TRecorderID RecorderID ], errcheck=self._get_last_error, ) - self.Asap3GetTemplateParameterCount = self._map_symbol( - func_name="Asap3GetTemplateParameterCount", + self.Asap3RemoveRecorder = self._map_symbol( + func_name="Asap3RemoveRecorder", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle - ctypes.POINTER(ctypes.c_ulong), # < unsigned long* count + cnp_class.TRecorderID, # > TRecorderID recorderID ], errcheck=self._get_last_error, ) - self.Asap3GetTemplateParameterInfo = self._map_symbol( - func_name="Asap3GetTemplateParameterInfo", + self.Asap3ResetDataAcquisitionChnls = self._map_symbol( + func_name="Asap3ResetDataAcquisitionChnls", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle - ctypes.POINTER(cnp_class.enum_type), # < eTParameterClass type - ctypes.POINTER(cnp_class.enum_type), # < eTSettingsParameterType* settingstype - ctypes.POINTER(ctypes.c_ushort), # < unsigned short* maxsize - ctypes.POINTER(ctypes.c_void_p), # < void** data ], errcheck=self._get_last_error, ) - self.Asap3HasMCD3License = self._map_symbol( - func_name="Asap3HasMCD3License", + self.Asap3ResetDataAcquisitionChnlsByModule = self._map_symbol( + func_name="Asap3ResetDataAcquisitionChnlsByModule", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.POINTER(ctypes.c_bool), # < bool *available + cnp_class.TModulHdl, # > TModulHdl hmod ], errcheck=self._get_last_error, ) - self.Asap3HasResumeMode = self._map_symbol( - func_name="Asap3HasResumeMode", + self.Asap3RestartMeasurementOnError = self._map_symbol( + func_name="Asap3RestartMeasurementOnError", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(ctypes.c_bool), # < bool *possible + ctypes.c_bool, # > bool restart ], errcheck=self._get_last_error, ) - self.Asap3Init5 = self._map_symbol( - func_name="Asap3Init5", + self.Asap3RestoreWndSize = self._map_symbol( + func_name="Asap3RestoreWndSize", restype=ctypes.c_bool, argtypes=[ - ctypes.POINTER(cnp_class.TAsap3Hdl), # < TAsap3Hdl * hdl, - ctypes.c_ulong, # > unsigned long responseTimeout, - ctypes.c_char_p, # > const char *workingDir, - ctypes.c_ulong, # > unsigned long fifoSize, - ctypes.c_ulong, # > unsigned long sampleSize, - ctypes.c_bool, # > bool debugMode, - ctypes.c_bool, # > bool clearDeviceList, - ctypes.c_bool, # > bool bHexmode, - ctypes.c_bool, # > bool bModalMode + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl ], errcheck=self._get_last_error, ) - self.Asap3IsECUOnline = self._map_symbol( - func_name="Asap3IsECUOnline", + self.Asap3RestoreWndSize2 = self._map_symbol( + func_name="Asap3RestoreWndSize2", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(cnp_class.enum_type), # < TAsap3ECUState *State + ctypes.c_long, # > long params ], errcheck=self._get_last_error, ) - self.Asap3IsModuleActive = self._map_symbol( - func_name="Asap3IsModuleActive", + self.Asap3SaveDebugWindow = self._map_symbol( + func_name="Asap3SaveDebugWindow", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.POINTER(ctypes.c_bool), # < bool *activate + ctypes.c_char_p, # > const char *fileName ], errcheck=self._get_last_error, ) - self.Asap3IsNetworkActivated = self._map_symbol( - func_name="Asap3IsNetworkActivated", + self.Asap3SelectLabelList = self._map_symbol( + func_name="Asap3SelectLabelList", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl ctypes.c_char_p, # > char *Name - ctypes.POINTER(ctypes.c_bool), # < bool *activated + ctypes.c_bool, # > bool includeMeaMode = false + ctypes.c_int, # > int mode = 1 ], errcheck=self._get_last_error, ) - self.Asap3IsRecorderEnabled = self._map_symbol( - func_name="Asap3IsRecorderEnabled", + self.Asap3SelectObjects = self._map_symbol( + func_name="Asap3SelectObjects", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.POINTER(ctypes.c_bool), # < bool *enabled + cnp_class.TModulHdl, # > TModulHdl module + cnp_class.enum_type, # > TObjectType type + ctypes.c_char_p, # > const char *fname ], errcheck=self._get_last_error, ) - self.Asap3IsValidParameterTemplate = self._map_symbol( - func_name="Asap3IsValidParameterTemplate", + self.Asap3SelectRecorder = self._map_symbol( + func_name="Asap3SelectRecorder", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + cnp_class.TRecorderID, # > TRecorderID recorderID ], errcheck=self._get_last_error, ) - self.Asap3LoadCNAFile = self._map_symbol( - func_name="Asap3LoadCNAFile", + self.Asap3SetApplicationName = self._map_symbol( + func_name="Asap3SetApplicationName", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_char_p, # > char* configFileName + ctypes.c_char_p, # > const char *AppName ], errcheck=self._get_last_error, ) - self.Asap3ModuleActivation = self._map_symbol( - func_name="Asap3ModuleActivation", + self.Asap3SetCanapeModuleParam = self._map_symbol( + func_name="Asap3SetCanapeModuleParam", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_bool, # > bool activate + ctypes.c_char_p, # > char* param + ctypes.c_char_p, # > char *value ], errcheck=self._get_last_error, ) - self.Asap3PauseRecorder = self._map_symbol( - func_name="Asap3PauseRecorder", + self.Asap3SetCanapeProjectParam = self._map_symbol( + func_name="Asap3SetCanapeProjectParam", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.c_bool, # > bool Pause + ctypes.c_char_p, # > char *Section + ctypes.c_char_p, # > char *param + ctypes.c_char_p, # > char* value ], errcheck=self._get_last_error, ) - self.Asap3PopupDebugWindow = self._map_symbol( - func_name="Asap3PopupDebugWindow", - restype=ctypes.c_bool, - argtypes=[ - cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ] - ) - - self.Asap3ReadCalibrationObject2 = self._map_symbol( - func_name="Asap3ReadCalibrationObject2", + self.Asap3SetInteractiveMode = self._map_symbol( + func_name="Asap3SetInteractiveMode", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # > const char *calibrationObjectName - cnp_class.enum_type, # > TFormat format - ctypes.c_bool, # > bool forceupload - ctypes.POINTER(cnp_class.TCalibrationObjectValue), # < TCalibrationObjectValue *value + ctypes.c_bool, # > bool mode ], errcheck=self._get_last_error, ) - self.Asap3ReadObjectParameter = self._map_symbol( - func_name="Asap3ReadObjectParameter", + self.Asap3SetMdfFilename = self._map_symbol( + func_name="Asap3SetMdfFilename", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # > const char *objectName - cnp_class.enum_type, # > TFormat format - ctypes.POINTER(cnp_class.enum_type), # < TAsap3DataType * type - ctypes.POINTER(ctypes.c_ulong), # < unsigned long * address - ctypes.POINTER(ctypes.c_double), # < double * min - ctypes.POINTER(ctypes.c_double), # < double * max - ctypes.POINTER(ctypes.c_double), # < double * increment + ctypes.c_char_p, # > const char *mdfFilename ], errcheck=self._get_last_error, ) - self.Asap3RegisterCallBack = self._map_symbol( - func_name="Asap3RegisterCallBack", + self.Asap3SetRecorderDataReduction = self._map_symbol( + func_name="Asap3SetRecorderDataReduction", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.enum_type, # > ASAP3_EVENT_CODE eventID - cnp_class.EVENT_CALLBACK, # > void *fnc - ctypes.c_ulong, # > unsigned long privateData + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_int, # > int Reduction ], errcheck=self._get_last_error, ) - self.Asap3ReleaseInterfaceNames = self._map_symbol( - func_name="Asap3ReleaseInterfaceNames", + self.Asap3SetRecorderMdfFileName = self._map_symbol( + func_name="Asap3SetRecorderMdfFileName", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.enum_type, # > TLogicalChannels protocoltype + cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_char_p, # > char *FileName ], errcheck=self._get_last_error, ) - self.Asap3ReleaseModule = self._map_symbol( - func_name="Asap3ReleaseModule", + self.Asap3SetResumeMode = self._map_symbol( + func_name="Asap3SetResumeMode", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl @@ -836,106 +2331,113 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) - self.Asap3ReleaseParameterTemplate = self._map_symbol( - func_name="Asap3ReleaseParameterTemplate", + self.Asap3SetTCPOptions = self._map_symbol( + func_name="Asap3SetTCPOptions", restype=ctypes.c_bool, argtypes=[ - cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle + ctypes.c_char_p, # > const char* ipAddress + ctypes.c_ulong, # > unsigned long portNumber ], errcheck=self._get_last_error, ) - self.Asap3ReleaseTemplateParameterItem = self._map_symbol( - func_name="Asap3ReleaseTemplateParameterItem", + self.Asap3SetTemplateParameterItem = self._map_symbol( + func_name="Asap3SetTemplateParameterItem", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle cnp_class.enum_type, # > eTParameterClass type + ctypes.c_void_p, # > void* data + ctypes.c_ushort, # > unsigned short sizeofdata ], errcheck=self._get_last_error, ) - self.Asap3ResetDataAcquisitionChnls = self._map_symbol( - func_name="Asap3ResetDataAcquisitionChnls", + self.Asap3SetupDataAcquisitionChnl = self._map_symbol( + func_name="Asap3SetupDataAcquisitionChnl", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *measurementObjectName + cnp_class.enum_type, # > TFormat format + ctypes.c_ushort, # > unsigned short taskId + ctypes.c_ushort, # > unsigned short pollingRate + ctypes.c_bool, # > bool save2File ], errcheck=self._get_last_error, ) - self.Asap3ResetDataAcquisitionChnlsByModule = self._map_symbol( - func_name="Asap3ResetDataAcquisitionChnlsByModule", + self.Asap3SetupDataAcquisitionChnl2 = self._map_symbol( + func_name="Asap3SetupDataAcquisitionChnl2", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl hmod + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *measurementObjectName + cnp_class.enum_type, # > TFormat format + ctypes.c_ushort, # > unsigned short taskId + ctypes.c_ushort, # > unsigned short pollingRate + ctypes.c_bool, # > bool save2File + ctypes.c_bool, # > bool transfer_To_Client ], errcheck=self._get_last_error, ) - self.Asap3SetInteractiveMode = self._map_symbol( - func_name="Asap3SetInteractiveMode", + self.Asap3SetupFifo = self._map_symbol( + func_name="Asap3SetupFifo", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - ctypes.c_bool, # > bool mode + ctypes.c_ushort, # > unsigned short nFifoSize + ctypes.POINTER(cnp_class.TFifoSize), # < tFifoSize fifoSize[] ], errcheck=self._get_last_error, ) - self.Asap3SetTemplateParameterItem = self._map_symbol( - func_name="Asap3SetTemplateParameterItem", + self.Asap3StartDataAcquisition = self._map_symbol( + func_name="Asap3StartDataAcquisition", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TParamTemplateHdl, # > TParamTemplateHdl paramHandle - cnp_class.enum_type, # > eTParameterClass type - ctypes.c_void_p, # > void* data - ctypes.c_ushort, # > unsigned short sizeofdata ], errcheck=self._get_last_error, ) - self.Asap3SetRecorderMdfFileName = self._map_symbol( - func_name="Asap3SetRecorderMdfFileName", + self.Asap3StartRecorder = self._map_symbol( + func_name="Asap3StartRecorder", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.c_char_p, # > char *FileName ], errcheck=self._get_last_error, ) - self.Asap3SetTCPOptions = self._map_symbol( - func_name="Asap3SetTCPOptions", + self.Asap3StartResumedDataAcquisition = self._map_symbol( + func_name="Asap3StartResumedDataAcquisition", restype=ctypes.c_bool, argtypes=[ - ctypes.c_char_p, # > const char* ipAddress - ctypes.c_ulong, # > unsigned long portNumber + cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl ], + errcheck=self._get_last_error, ) - self.Asap3SetupDataAcquisitionChnl = self._map_symbol( - func_name="Asap3SetupDataAcquisitionChnl", + self.Asap3StartScript = self._map_symbol( + func_name="Asap3StartScript", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # > const char *measurementObjectName - cnp_class.enum_type, # > TFormat format - ctypes.c_ushort, # > unsigned short taskId - ctypes.c_short, # > unsigned short pollingRate - ctypes.c_bool, # > bool save2File + cnp_class.TScriptHdl, # > TScriptHdl hScript + ctypes.c_char_p, # > char *Commandline = NULL + cnp_class.TModulHdl, # > TModulHdl moduleHdl=ASAP3_INVALID_MODULE_HDL ], errcheck=self._get_last_error, ) - self.Asap3StartDataAcquisition = self._map_symbol( - func_name="Asap3StartDataAcquisition", + self.Asap3StopDataAcquisition = self._map_symbol( + func_name="Asap3StopDataAcquisition", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl @@ -943,32 +2445,34 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) - self.Asap3StartRecorder = self._map_symbol( - func_name="Asap3StartRecorder", + self.Asap3StopRecorder = self._map_symbol( + func_name="Asap3StopRecorder", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl cnp_class.TRecorderID, # > TRecorderID recorderID + ctypes.c_bool, # > bool save2Mdf ], errcheck=self._get_last_error, ) - self.Asap3StopRecorder = self._map_symbol( - func_name="Asap3StopRecorder", + self.Asap3StopScript = self._map_symbol( + func_name="Asap3StopScript", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TRecorderID, # > TRecorderID recorderID - ctypes.c_bool, # > bool save2Mdf + cnp_class.TScriptHdl, # > TScriptHdl hScript ], errcheck=self._get_last_error, ) - self.Asap3StopDataAcquisition = self._map_symbol( - func_name="Asap3StopDataAcquisition", + self.Asap3SwitchToMemoryPage = self._map_symbol( + func_name="Asap3SwitchToMemoryPage", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl + cnp_class.TModulHdl, # > TModulHdl module + cnp_class.enum_type, # > e_RamMode mode ], errcheck=self._get_last_error, ) @@ -985,96 +2489,99 @@ def __init__(self, lib_path: Path) -> None: # noqa: PLR0915 errcheck=self._get_last_error, ) - self.Asap3WriteCalibrationObject = self._map_symbol( - func_name="Asap3WriteCalibrationObject", + self.Asap3TimeSync = self._map_symbol( + func_name="Asap3TimeSync", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_char_p, # > const char *calibrationObjectName - cnp_class.enum_type, # > TFormat format - ctypes.POINTER(cnp_class.TCalibrationObjectValue), # > TCalibrationObjectValue * value + ctypes.c_bool, # > bool enabled ], errcheck=self._get_last_error, ) - self.Asap3ExecuteScriptEx = self._map_symbol( - func_name="Asap3ExecuteScriptEx", + self.Asap3TransmitFile2ClientPc = self._map_symbol( + func_name="Asap3TransmitFile2ClientPc", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TModulHdl, # > TModulHdl module - ctypes.c_bool, # > bool scriptFile - ctypes.c_char_p, # > const char *script - ctypes.POINTER(cnp_class.TScriptHdl), # < TScriptHdl *hScript + ctypes.c_char_p, # > char *srcFname + ctypes.c_char_p, # > char *dstFname ], errcheck=self._get_last_error, ) - self.Asap3GetScriptResultString = self._map_symbol( - func_name="Asap3GetScriptResultString", + self.Asap3UnRegisterCallBack = self._map_symbol( + func_name="Asap3UnRegisterCallBack", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TScriptHdl, # > TScriptHdl hScript - ctypes.POINTER(ctypes.c_char), # < char *resultString - ctypes.POINTER(ctypes.c_ulong), # < DWORD *sizeofBuffer + cnp_class.enum_type, # > ASAP3_EVENT_CODE eventID ], errcheck=self._get_last_error, ) - self.Asap3GetScriptResultValue = self._map_symbol( - func_name="Asap3GetScriptResultValue", + self.Asap3UseNAN = self._map_symbol( + func_name="Asap3UseNAN", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TScriptHdl, # > TScriptHdl hScript - ctypes.POINTER(ctypes.c_double), # < double *Value + ctypes.c_bool, # > bool use ], errcheck=self._get_last_error, ) - self.Asap3GetScriptState = self._map_symbol( - func_name="Asap3GetScriptState", + self.Asap3WriteByAddress = self._map_symbol( + func_name="Asap3WriteByAddress", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TScriptHdl, # > TScriptHdl hScript - ctypes.POINTER(cnp_class.enum_type), # < TScriptStatus *scrstate - ctypes.POINTER(ctypes.c_char), # < char *textBuffer - ctypes.POINTER(ctypes.c_ulong), # < DWORD *sizeofBuffer + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_ulong, # > unsigned long addr + ctypes.c_ubyte, # > unsigned char addrExt + ctypes.c_ulong, # > unsigned long size + ctypes.POINTER(ctypes.c_ubyte), # < unsigned char * data ], errcheck=self._get_last_error, ) - self.Asap3ReleaseScript = self._map_symbol( - func_name="Asap3ReleaseScript", + self.Asap3WriteCalibrationObject = self._map_symbol( + func_name="Asap3WriteCalibrationObject", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TScriptHdl, # > TScriptHdl hScript + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + cnp_class.enum_type, # > TFormat format + ctypes.POINTER(cnp_class.TCalibrationObjectValue), # < TCalibrationObjectValue * value ], errcheck=self._get_last_error, ) - self.Asap3StartScript = self._map_symbol( - func_name="Asap3StartScript", + self.Asap3WriteCalibrationObjectEx = self._map_symbol( + func_name="Asap3WriteCalibrationObjectEx", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TScriptHdl, # > TScriptHdl hScript - ctypes.c_char_p, # > char * Commandline = NULL - cnp_class.TModulHdl, # > TModulHdl moduleHdl = ASAP3_INVALID_MODULE_HDL + cnp_class.TModulHdl, # > TModulHdl module + ctypes.c_char_p, # > const char *calibrationObjectName + cnp_class.enum_type, # > TFormat format + ctypes.POINTER(cnp_class.TCalibrationObjectValueEx), # < TCalibrationObjectValueEx * value ], errcheck=self._get_last_error, ) - self.Asap3StopScript = self._map_symbol( - func_name="Asap3StopScript", + self.Asap3_CCP_Request = self._map_symbol( + func_name="Asap3_CCP_Request", restype=ctypes.c_bool, argtypes=[ cnp_class.TAsap3Hdl, # > TAsap3Hdl hdl - cnp_class.TScriptHdl, # > TScriptHdl hScript + cnp_class.TModulHdl, # > TModulHdl module + ctypes.POINTER(ctypes.c_ubyte), # < const unsigned char *requestData + ctypes.c_ulong, # > unsigned long requestSize + ctypes.c_ulong, # > unsigned long responseTimeout + ctypes.POINTER(ctypes.c_ubyte), # < unsigned char * responseData + ctypes.c_ulong, # > unsigned long maxResponseSize + ctypes.POINTER(ctypes.c_ulong), # < unsigned long * responseSize ], errcheck=self._get_last_error, )