mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
API: Legacy: Implement functions necessary for J2534
icsneoEnableNetworkComEx icsneoGetDeviceSettingsType icsneoGetDeviceSettings icsneoSetDeviceSettings icsneoGetMiniportAdapterInfo icsneoEnableDOIPLine icsneoGetVnetSimpleNetid icsneoGetNetidforSlaveVNETs icsneoSetBitRateEx icsneoSetFDBitRate icsneoSerialNumberFromString icsneoJ2534Cmd _stdcall convention added with .def file (octal support) use NumberBytesHeader instead of NodeID in txmessagesEx
This commit is contained in:
committed by
Paul Hollinsky
parent
4095f23ded
commit
9e70a9d51f
@@ -269,6 +269,7 @@ if(LIBICSNEO_BUILD_ICSNEOLEGACY)
|
|||||||
api/icsneolegacy/icsneolegacy.cpp
|
api/icsneolegacy/icsneolegacy.cpp
|
||||||
api/icsneolegacy/icsneolegacyextra.cpp
|
api/icsneolegacy/icsneolegacyextra.cpp
|
||||||
api/icsneoc/icsneoc.cpp
|
api/icsneoc/icsneoc.cpp
|
||||||
|
platform/windows/icsneolegacy.def
|
||||||
)
|
)
|
||||||
target_include_directories(icsneolegacy
|
target_include_directories(icsneolegacy
|
||||||
PUBLIC
|
PUBLIC
|
||||||
|
|||||||
+1186
-186
File diff suppressed because it is too large
Load Diff
@@ -14,11 +14,11 @@
|
|||||||
using namespace icsneo;
|
using namespace icsneo;
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
extern int DLLExport icsneoValidateHObject(void* hObject);
|
extern int LegacyDLLExport icsneoValidateHObject(void* hObject);
|
||||||
extern int DLLExport icsneoWaitForRxMessagesWithTimeOut(void* hObject, unsigned int iTimeOut);
|
extern int LegacyDLLExport icsneoWaitForRxMessagesWithTimeOut(void* hObject, unsigned int iTimeOut);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icsneoWaitForRxMessagesWithTimeOut(void* hObject, unsigned int iTimeOut) {
|
int LegacyDLLExport icsneoWaitForRxMessagesWithTimeOut(void* hObject, unsigned int iTimeOut) {
|
||||||
if(!icsneoValidateHObject(hObject))
|
if(!icsneoValidateHObject(hObject))
|
||||||
return false;
|
return false;
|
||||||
neodevice_t* device = (neodevice_t*)hObject;
|
neodevice_t* device = (neodevice_t*)hObject;
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
#ifndef _J2534_H
|
||||||
|
#define _J2534_H
|
||||||
|
|
||||||
|
//J2534 Commands
|
||||||
|
#define J1534_NUM_PERIOD_TX_MSGS 128
|
||||||
|
#define J1534_NUM_PERIOD_RX_MSGS 128
|
||||||
|
#define J2534NVCMD_SetISJ2534 0
|
||||||
|
#define J2534NVCMD_SetISO5Baud 1
|
||||||
|
#define J2534NVCMD_SetISOFastInit 2
|
||||||
|
#define J2534NVCMD_SetISOCheckSum 3
|
||||||
|
#define J2534NVCMD_SetISO9141Parms 4
|
||||||
|
#define J2534NVCMD_GetISO9141Parms 5
|
||||||
|
#define J2534NVCMD_ISO9141APIChkSum 6
|
||||||
|
#define J2534NVCMD_SetNetworkBaudRate 7
|
||||||
|
#define J2534NVCMD_GetNetworkBaudRate 8
|
||||||
|
#define J2534NVCMD_EnableTransmitEvent 9
|
||||||
|
#define J2534NVCMD_SetTransmitEvent 10
|
||||||
|
#define J2534NVCMD_BlueEnableStopFilters 11
|
||||||
|
#define J2534NVCMD_Blue15765HWSupport 12
|
||||||
|
#define J2534NVCMD_GetTXBufferInfo 13
|
||||||
|
#define J2534NVCMD_GetEncryptionKey 14
|
||||||
|
#define J2534NVCMD_SetMiscIOForVBATT 15
|
||||||
|
#define J2534NVCMD_EnableISO_KW_Network 16
|
||||||
|
#define J2534NVCMD_SetJ1708CheckSum 17
|
||||||
|
#define J2534NVCMD_GetTimestamp 18
|
||||||
|
#define J2534NVCMD_GetCANFDRate 19
|
||||||
|
#define J2534NVCMD_SetCANFDRate 20
|
||||||
|
#define J2534NVCMD_GetCANFDTermination 21
|
||||||
|
#define J2534NVCMD_SetCANFDTermination 22
|
||||||
|
#define J2534NVCMD_GetCANFDFormat 23
|
||||||
|
#define J2534NVCMD_SetCANFDFormat 24
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -18,6 +18,9 @@ enum class Command : uint8_t {
|
|||||||
GetSecondaryVersions = 0xA9, // Previously known as RED_CMD_PERIPHERALS_APP_VERSION_REQ, versions other than the main chip
|
GetSecondaryVersions = 0xA9, // Previously known as RED_CMD_PERIPHERALS_APP_VERSION_REQ, versions other than the main chip
|
||||||
RequestStatusUpdate = 0xBC,
|
RequestStatusUpdate = 0xBC,
|
||||||
ReadSettings = 0xC7, // Previously known as 3G_READ_SETTINGS_EX
|
ReadSettings = 0xC7, // Previously known as 3G_READ_SETTINGS_EX
|
||||||
|
SetVBattMonitor = 0xDB, // Previously known as RED_CMD_CM_VBATT_MONITOR
|
||||||
|
RequestBitSmash = 0xDC, // Previously known as RED_CMD_CM_BITSMASH
|
||||||
|
GetVBattReq = 0xDF, // Previously known as RED_CMD_VBATT_REQUEST
|
||||||
MiscControl = 0xE7,
|
MiscControl = 0xE7,
|
||||||
FlexRayControl = 0xF3
|
FlexRayControl = 0xF3
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1965,6 +1965,7 @@ typedef enum _EDeviceSettingsType
|
|||||||
DeviceECU_AVBSettingsType,
|
DeviceECU_AVBSettingsType,
|
||||||
DeviceRADSuperMoonSettingsType,
|
DeviceRADSuperMoonSettingsType,
|
||||||
DeviceRADMoon2SettingsType,
|
DeviceRADMoon2SettingsType,
|
||||||
|
DeviceRADGigalogSettingsType,
|
||||||
//
|
//
|
||||||
// add new settings type here
|
// add new settings type here
|
||||||
// ...
|
// ...
|
||||||
@@ -2421,6 +2422,17 @@ typedef union {
|
|||||||
icsFire2DeviceStatus fire2Status;
|
icsFire2DeviceStatus fire2Status;
|
||||||
icsVcan4DeviceStatus vcan4Status;
|
icsVcan4DeviceStatus vcan4Status;
|
||||||
} icsDeviceStatus;
|
} icsDeviceStatus;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
int8_t szName[128]; //Adaptor name - ASCII Null terminated
|
||||||
|
int8_t szDeviceName[64]; //Device name - ASCII Null terminated
|
||||||
|
uint32_t Status; //Adaptor Status, 0 for disabled, 1 for enabled
|
||||||
|
uint8_t bMAC_Address[6]; // The Media Access Control (MAC) Address of the Network interface in the PC that is to be connected to the vehicle.
|
||||||
|
uint8_t bIPV6_Address[16]; //The Ipv6 address assigned to the Network interface. No compressed or short form notation// If not available, all bytes are set to zero to imply the absence of an address.
|
||||||
|
uint8_t bIPV4_Address[4]; // The Ipv4 address assigned to the Network interface. If not available, all bytes are set to zero.
|
||||||
|
} NETWORK_ADAPTER_INFO;
|
||||||
|
|
||||||
#ifndef INTREPID_NO_CHECK_STRUCT_SIZE
|
#ifndef INTREPID_NO_CHECK_STRUCT_SIZE
|
||||||
|
|
||||||
#if defined(__cplusplus) && (__cplusplus > 199711L)
|
#if defined(__cplusplus) && (__cplusplus > 199711L)
|
||||||
|
|||||||
+125
-60
@@ -8,93 +8,158 @@
|
|||||||
typedef uint8_t byte; // Typedef helper for the following include
|
typedef uint8_t byte; // Typedef helper for the following include
|
||||||
#include "icsneo/icsnVC40.h" // Definitions for structs
|
#include "icsneo/icsnVC40.h" // Definitions for structs
|
||||||
|
|
||||||
|
// From coremini.h
|
||||||
|
#define MAX_BIT_SMASH_ARBIDS (4)
|
||||||
|
#define BIT_SMASH_OPTION_EXTENDED (1)
|
||||||
|
#define BIT_SMASH_OPTION_REMOTE (2)
|
||||||
|
#define BIT_SMASH_OPTION_BUSTEST (4)
|
||||||
|
#define BIT_SMASH_OPTION_WHITELIST (8)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//Basic Functions
|
//Basic Functions
|
||||||
extern int DLLExport icsneoFindDevices(NeoDeviceEx* pNeoDeviceEx, int* pNumDevices, unsigned int* DeviceTypes, unsigned int numDeviceTypes,POptionsFindNeoEx* pOptionsNeoEx, unsigned int* reserved);
|
extern int LegacyDLLExport icsneoFindDevices(NeoDeviceEx* pNeoDeviceEx, int* pNumDevices, unsigned int* DeviceTypes, unsigned int numDeviceTypes,POptionsFindNeoEx* pOptionsNeoEx, unsigned int* reserved);
|
||||||
extern int DLLExport icsneoFindNeoDevices(unsigned long DeviceTypes, NeoDevice* pNeoDevice, int* pNumDevices);
|
extern int LegacyDLLExport icsneoFindNeoDevices(unsigned long DeviceTypes, NeoDevice* pNeoDevice, int* pNumDevices);
|
||||||
extern int DLLExport icsneoOpenNeoDevice(NeoDevice* pNeoDevice, void** hObject, unsigned char* bNetworkIDs, int bConfigRead, int bSyncToPC);
|
extern int LegacyDLLExport icsneoOpenNeoDevice(NeoDevice* pNeoDevice, void** hObject, unsigned char* bNetworkIDs, int bConfigRead, int bSyncToPC);
|
||||||
extern int DLLExport icsneoClosePort(void* hObject, int* pNumberOfErrors);
|
extern int LegacyDLLExport icsneoClosePort(void* hObject, int* pNumberOfErrors);
|
||||||
extern void DLLExport icsneoFreeObject(void* hObject);
|
extern void LegacyDLLExport icsneoFreeObject(void* hObject);
|
||||||
extern int DLLExport icsneoSerialNumberToString(unsigned long serial, char* data, unsigned long data_size);
|
extern int LegacyDLLExport icsneoOpenDevice(NeoDeviceEx* pNeoDeviceEx, void** hObject, unsigned char* bNetworkIDs, int bConfigRead, int iOptions, OptionsOpenNeoEx* stOptionsOpenNeoEx, unsigned long reserved);
|
||||||
|
|
||||||
//Message Functions
|
//Message Functions
|
||||||
extern int DLLExport icsneoGetMessages(void* hObject, icsSpyMessage* pMsg, int* pNumberOfMessages, int* pNumberOfErrors);
|
extern int LegacyDLLExport icsneoGetMessages(void* hObject, icsSpyMessage* pMsg, int* pNumberOfMessages, int* pNumberOfErrors);
|
||||||
extern int DLLExport icsneoTxMessages(void* hObject, icsSpyMessage* pMsg, int lNetworkID, int lNumMessages);
|
extern int LegacyDLLExport icsneoTxMessages(void* hObject, icsSpyMessage* pMsg, int lNetworkID, int lNumMessages);
|
||||||
extern int DLLExport icsneoTxMessagesEx(void* hObject,icsSpyMessage* pMsg, unsigned int lNetworkID, unsigned int lNumMessages, unsigned int* NumTxed, unsigned int zero2);
|
extern int LegacyDLLExport icsneoTxMessagesEx(void* hObject,icsSpyMessage* pMsg, unsigned int lNetworkID, unsigned int lNumMessages, unsigned int* NumTxed, unsigned int zero2);
|
||||||
extern int DLLExport icsneoWaitForRxMessagesWithTimeOut(void* hObject, unsigned int iTimeOut);
|
extern int LegacyDLLExport icsneoWaitForRxMessagesWithTimeOut(void* hObject, unsigned int iTimeOut);
|
||||||
extern int DLLExport icsneoEnableNetworkRXQueue(void* hObject, int iEnable);
|
extern int LegacyDLLExport icsneoEnableNetworkRXQueue(void* hObject, int iEnable);
|
||||||
extern int DLLExport icsneoGetTimeStampForMsg(void* hObject, icsSpyMessage* pMsg, double* pTimeStamp);
|
extern int LegacyDLLExport icsneoGetTimeStampForMsg(void* hObject, icsSpyMessage* pMsg, double* pTimeStamp);
|
||||||
extern void DLLExport icsneoGetISO15765Status(void* hObject, int lNetwork, int lClearTxStatus, int lClearRxStatus, int*lTxStatus, int*lRxStatus);
|
extern void LegacyDLLExport icsneoGetISO15765Status(void* hObject, int lNetwork, int lClearTxStatus, int lClearRxStatus, int*lTxStatus, int*lRxStatus);
|
||||||
extern void DLLExport icsneoSetISO15765RxParameters(void* hObject, int lNetwork, int lEnable, spyFilterLong* pFF_CFMsgFilter, icsSpyMessage* pTxMsg,
|
extern void LegacyDLLExport icsneoSetISO15765RxParameters(void* hObject, int lNetwork, int lEnable, spyFilterLong* pFF_CFMsgFilter, icsSpyMessage* pTxMsg,
|
||||||
int lCFTimeOutMs, int lFlowCBlockSize, int lUsesExtendedAddressing, int lUseHardwareIfPresent);
|
int lCFTimeOutMs, int lFlowCBlockSize, int lUsesExtendedAddressing, int lUseHardwareIfPresent);
|
||||||
|
|
||||||
//Device Functions
|
//Device Functions
|
||||||
extern int DLLExport icsneoGetConfiguration(void* hObject, unsigned char* pData, int* lNumBytes);
|
extern int LegacyDLLExport icsneoGetConfiguration(void* hObject, unsigned char* pData, int* lNumBytes);
|
||||||
extern int DLLExport icsneoSendConfiguration(void* hObject, unsigned char* pData, int lNumBytes);
|
extern int LegacyDLLExport icsneoSendConfiguration(void* hObject, unsigned char* pData, int lNumBytes);
|
||||||
extern int DLLExport icsneoGetFireSettings(void* hObject, SFireSettings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetFireSettings(void* hObject, SFireSettings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetFireSettings(void* hObject, SFireSettings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetFireSettings(void* hObject, SFireSettings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoGetVCAN3Settings(void* hObject, SVCAN3Settings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetVCAN3Settings(void* hObject, SVCAN3Settings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetVCAN3Settings(void* hObject, SVCAN3Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetVCAN3Settings(void* hObject, SVCAN3Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoGetFire2Settings(void* hObject, SFire2Settings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetFire2Settings(void* hObject, SFire2Settings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetFire2Settings(void* hObject, SFire2Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetFire2Settings(void* hObject, SFire2Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoGetVCANRFSettings(void* hObject, SVCANRFSettings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetVCANRFSettings(void* hObject, SVCANRFSettings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetVCANRFSettings(void* hObject, SVCANRFSettings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetVCANRFSettings(void* hObject, SVCANRFSettings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoGetVCAN412Settings(void* hObject, SVCAN412Settings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetVCAN412Settings(void* hObject, SVCAN412Settings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetVCAN412Settings(void* hObject, SVCAN412Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetVCAN412Settings(void* hObject, SVCAN412Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoGetRADGalaxySettings(void* hObject, SRADGalaxySettings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetRADGalaxySettings(void* hObject, SRADGalaxySettings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetRADGalaxySettings(void* hObject, SRADGalaxySettings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetRADGalaxySettings(void* hObject, SRADGalaxySettings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoGetRADStar2Settings(void* hObject, SRADStar2Settings* pSettings, int iNumBytes);
|
extern int LegacyDLLExport icsneoGetRADStar2Settings(void* hObject, SRADStar2Settings* pSettings, int iNumBytes);
|
||||||
extern int DLLExport icsneoSetRADStar2Settings(void* hObject, SRADStar2Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
extern int LegacyDLLExport icsneoSetRADStar2Settings(void* hObject, SRADStar2Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
extern int DLLExport icsneoSetBitRate(void* hObject, int BitRate, int NetworkID);
|
extern int LegacyDLLExport icsneoSetBitRate(void* hObject, int BitRate, int NetworkID);
|
||||||
extern int DLLExport icsneoSetFDBitRate(void* hObject, int BitRate, int NetworkID);
|
extern int LegacyDLLExport icsneoSetBitRateEx(void* hObject, unsigned long BitRate, int NetworkID, int iOptions);
|
||||||
extern int DLLExport icsneoGetDeviceParameters(void* hObject, char* pParameter, char* pValues, short ValuesLength);
|
extern int LegacyDLLExport icsneoSetFDBitRate(void* hObject, int BitRate, int NetworkID);
|
||||||
extern int DLLExport icsneoSetDeviceParameters(void* hObject, char* pParmValue, int* pErrorIndex, int bSaveToEEPROM);
|
|
||||||
|
extern int LegacyDLLExport icsneoGetDeviceParameters(void* hObject, char* pParameter, char* pValues, short ValuesLength);
|
||||||
|
extern int LegacyDLLExport icsneoSetDeviceParameters(void* hObject, char* pParmValue, int* pErrorIndex, int bSaveToEEPROM);
|
||||||
|
|
||||||
|
extern int LegacyDLLExport icsneoGetVCAN4Settings(void* hObject, SVCAN4Settings* pSettings, int iNumBytes);
|
||||||
|
extern int LegacyDLLExport icsneoSetVCAN4Settings(void* hObject, SVCAN4Settings* pSettings, int iNumBytes, int bSaveToEEPROM);
|
||||||
|
|
||||||
|
extern int LegacyDLLExport icsneoGetDeviceSettingsType(void* hObject, EPlasmaIonVnetChannel_t vnetSlot, EDeviceSettingsType* pDeviceSettingsType);
|
||||||
|
extern int LegacyDLLExport icsneoSetDeviceSettings(void* hObject, SDeviceSettings* pSettings, int iNumBytes, int bSaveToEEPROM, EPlasmaIonVnetChannel_t vnetSlot);
|
||||||
|
extern int LegacyDLLExport icsneoGetDeviceSettings(void* hObject, SDeviceSettings* pSettings, int iNumBytes, EPlasmaIonVnetChannel_t vnetSlot);
|
||||||
|
|
||||||
|
extern int LegacyDLLExport icsneoSetUSBLatency(NeoDevice* pNeoDevice, unsigned long LatencyVal);
|
||||||
|
|
||||||
|
extern unsigned int LegacyDLLExport icsneoGetCANControllerClockFrequency(void* hObject, int lNetworkID);
|
||||||
|
extern int LegacyDLLExport icsneoSetCANParameters(void* hObject,unsigned int baudRatePrescaler,unsigned int propagationTqs,unsigned int phase1Tqs,unsigned int phase2Tqs,unsigned int syncJumpWidthTqs,unsigned int optionBits,int lNetworkID);
|
||||||
|
extern int LegacyDLLExport icsneoSetCANParametersPhilipsSJA1000(void* hObject,unsigned int btr0,unsigned int btr1,unsigned int optionBits,int lNetworkID);
|
||||||
|
|
||||||
|
//Remote Device Functions
|
||||||
|
extern int LegacyDLLExport icsneoOpenRemoteNeoDevice(const char* pIPAddress,NeoDevice* pNeoDevice,void** hObject,unsigned char* bNetworkIDs,int iOptions);
|
||||||
|
extern int LegacyDLLExport icsneoFindRemoteNeoDevices(const char* pIPAddress, NeoDevice* pNeoDevice, int* pNumDevices);
|
||||||
|
|
||||||
//Error Functions
|
//Error Functions
|
||||||
extern int DLLExport icsneoGetLastAPIError(void* hObject, unsigned long* pErrorNumber);
|
extern int LegacyDLLExport icsneoGetLastAPIError(void* hObject, unsigned long* pErrorNumber);
|
||||||
extern int DLLExport icsneoGetErrorMessages(void* hObject, int* pErrorMsgs, int* pNumberOfErrors);
|
extern int LegacyDLLExport icsneoGetErrorMessages(void* hObject, int* pErrorMsgs, int* pNumberOfErrors);
|
||||||
extern int DLLExport icsneoGetErrorInfo(int lErrorNumber, TCHAR*szErrorDescriptionShort, TCHAR*szErrorDescriptionLong, int* lMaxLengthShort, int* lMaxLengthLong,int* lErrorSeverity,int* lRestartNeeded);
|
extern int LegacyDLLExport icsneoGetErrorInfo(int lErrorNumber, TCHAR*szErrorDescriptionShort, TCHAR*szErrorDescriptionLong, int* lMaxLengthShort, int* lMaxLengthLong,int* lErrorSeverity,int* lRestartNeeded);
|
||||||
|
|
||||||
//ISO15765-2 Functions
|
//ISO15765-2 Functions
|
||||||
extern int DLLExport icsneoISO15765_EnableNetworks(void* hObject, unsigned long ulNetworks);
|
extern int LegacyDLLExport icsneoISO15765_EnableNetworks(void* hObject, unsigned long ulNetworks);
|
||||||
extern int DLLExport icsneoISO15765_DisableNetworks(void* hObject);
|
extern int LegacyDLLExport icsneoISO15765_DisableNetworks(void* hObject);
|
||||||
extern int DLLExport icsneoISO15765_TransmitMessage(void* hObject, unsigned long ulNetworkID, stCM_ISO157652_TxMessage* pMsg, unsigned long ulBlockingTimeout);
|
extern int LegacyDLLExport icsneoISO15765_TransmitMessage(void* hObject, unsigned long ulNetworkID, stCM_ISO157652_TxMessage* pMsg, unsigned long ulBlockingTimeout);
|
||||||
extern int DLLExport icsneoISO15765_ReceiveMessage(void* hObject,int ulNetworkID, stCM_ISO157652_RxMessage* pMsg);
|
extern int LegacyDLLExport icsneoISO15765_TransmitMessageEx(void* hObject,unsigned long ulNetworkID,ISO15765_2015_TxMessage* pMsg,unsigned long ulBlockingTimeout);
|
||||||
|
extern int LegacyDLLExport icsneoISO15765_ReceiveMessage(void* hObject, int ulNetworkID, stCM_ISO157652_RxMessage* pMsg);
|
||||||
|
|
||||||
//General Utility Functions
|
//General Utility Functions
|
||||||
extern int DLLExport icsneoValidateHObject(void* hObject);
|
extern int LegacyDLLExport icsneoValidateHObject(void* hObject);
|
||||||
extern int DLLExport icsneoGetDLLVersion(void);
|
|
||||||
extern int DLLExport icsneoGetSerialNumber(void* hObject, unsigned int*iSerialNumber);
|
extern int LegacyDLLExport icsneoGetDLLVersion(void);
|
||||||
extern int DLLExport icsneoStartSockServer(void* hObject, int iPort);
|
extern void LegacyDLLExport icsneoGetDLLVersionEx(unsigned long* dwMSVersion, unsigned long* dwLSVersion);
|
||||||
extern int DLLExport icsneoStopSockServer(void* hObject);
|
|
||||||
|
extern int LegacyDLLExport icsneoGetSerialNumber(void* hObject, unsigned int*iSerialNumber);
|
||||||
|
extern int LegacyDLLExport icsneoSerialNumberFromString(unsigned long* serial, char* data);
|
||||||
|
extern int LegacyDLLExport icsneoSerialNumberToString(unsigned long serial, char* data, unsigned long data_size);
|
||||||
|
|
||||||
|
extern int LegacyDLLExport icsneoStartSockServer(void* hObject, int iPort);
|
||||||
|
extern int LegacyDLLExport icsneoStopSockServer(void* hObject);
|
||||||
|
|
||||||
//CoreMini Script functions
|
//CoreMini Script functions
|
||||||
extern int DLLExport icsneoScriptStart(void* hObject, int iLocation);
|
extern int LegacyDLLExport icsneoScriptStart(void* hObject, int iLocation);
|
||||||
extern int DLLExport icsneoScriptStop(void* hObject);
|
extern int LegacyDLLExport icsneoScriptStop(void* hObject);
|
||||||
extern int DLLExport icsneoScriptLoad(void* hObject, const unsigned char* bin, unsigned long len_bytes, int iLocation);
|
extern int LegacyDLLExport icsneoScriptLoad(void* hObject, const unsigned char* bin, unsigned long len_bytes, int iLocation);
|
||||||
extern int DLLExport icsneoScriptClear(void* hObject, int iLocation);
|
extern int LegacyDLLExport icsneoScriptClear(void* hObject, int iLocation);
|
||||||
extern int DLLExport icsneoScriptStartFBlock(void* hObject,unsigned int fb_index);
|
extern int LegacyDLLExport icsneoScriptStartFBlock(void* hObject,unsigned int fb_index);
|
||||||
extern int DLLExport icsneoScriptGetFBlockStatus(void* hObject, unsigned int fb_index, int* piRunStatus);
|
extern int LegacyDLLExport icsneoScriptGetFBlockStatus(void* hObject, unsigned int fb_index, int* piRunStatus);
|
||||||
extern int DLLExport icsneoScriptStopFBlock(void* hObject,unsigned int fb_index);
|
extern int LegacyDLLExport icsneoScriptStopFBlock(void* hObject,unsigned int fb_index);
|
||||||
extern int DLLExport icsneoScriptGetScriptStatus(void* hObject, int* piStatus);
|
extern int LegacyDLLExport icsneoScriptGetScriptStatus(void* hObject, int* piStatus);
|
||||||
extern int DLLExport icsneoScriptReadAppSignal(void* hObject, unsigned int iIndex, double*dValue);
|
extern int LegacyDLLExport icsneoScriptReadAppSignal(void* hObject, unsigned int iIndex, double*dValue);
|
||||||
extern int DLLExport icsneoScriptWriteAppSignal(void* hObject, unsigned int iIndex, double dValue);
|
extern int LegacyDLLExport icsneoScriptWriteAppSignal(void* hObject, unsigned int iIndex, double dValue);
|
||||||
|
|
||||||
//Deprecated (but still suppored in the DLL)
|
//Deprecated (but still suppored in the DLL)
|
||||||
extern int DLLExport icsneoOpenPortEx(void* lPortNumber, int lPortType, int lDriverType, int lIPAddressMSB, int lIPAddressLSBOrBaudRate, int bConfigRead, unsigned char* bNetworkID, int* hObject);
|
extern int LegacyDLLExport icsneoOpenPortEx(void* lPortNumber, int lPortType, int lDriverType, int lIPAddressMSB, int lIPAddressLSBOrBaudRate, int bConfigRead, unsigned char* bNetworkID, int* hObject);
|
||||||
extern int DLLExport icsneoOpenPort(int lPortNumber, int lPortType, int lDriverType, unsigned char* bNetworkID, unsigned char* bSCPIDs, int* hObject);
|
extern int LegacyDLLExport icsneoOpenPort(int lPortNumber, int lPortType, int lDriverType, unsigned char* bNetworkID, unsigned char* bSCPIDs, int* hObject);
|
||||||
extern int DLLExport icsneoEnableNetworkCom(void* hObject, int Enable);
|
extern int LegacyDLLExport icsneoFindAllCOMDevices(int lDriverType, int lGetSerialNumbers, int lStopAtFirst, int lUSBCommOnly, int* p_lDeviceTypes, int* p_lComPorts, int* p_lSerialNumbers, int*lNumDevices);
|
||||||
extern int DLLExport icsneoFindAllCOMDevices(int lDriverType, int lGetSerialNumbers, int lStopAtFirst, int lUSBCommOnly, int* p_lDeviceTypes, int* p_lComPorts, int* p_lSerialNumbers, int*lNumDevices);
|
extern int LegacyDLLExport icsneoOpenNeoDeviceByChannels(NeoDevice* pNeoDevice,void** hObject,unsigned char* uChannels,int iSize,int bConfigRead,int iOptions);
|
||||||
|
extern int LegacyDLLExport icsneoLockChannels(void* hObject, unsigned char* uChannels, int iSize);
|
||||||
|
extern int LegacyDLLExport icsneoUnlockChannels(void* hObject, unsigned char* uChannels, int iSize);
|
||||||
|
extern int LegacyDLLExport icsneoGetChannelLockStatus(void* hObject, unsigned char* uChannels, int iSize);
|
||||||
|
|
||||||
|
//Enable Network Com Functions
|
||||||
|
extern int LegacyDLLExport icsneoEnableNetworkComEx(void* hObject, int iEnable, int iNetId);
|
||||||
|
extern int LegacyDLLExport icsneoEnableNetworkCom(void* hObject, int Enable);
|
||||||
|
|
||||||
|
//Firmware Info/Update calls
|
||||||
|
extern int LegacyDLLExport icsneoForceFirmwareUpdate(void* hObject);
|
||||||
|
extern int LegacyDLLExport icsneoGetHWFirmwareInfo(void* hObject, stAPIFirmwareInfo* pInfo);
|
||||||
|
extern int LegacyDLLExport icsneoGetDLLFirmwareInfo(void* hObject, stAPIFirmwareInfo* pInfo);
|
||||||
|
extern int LegacyDLLExport icsneoGetDLLFirmwareInfoEx(void* hObject, stAPIFirmwareInfo* pInfo, EPlasmaIonVnetChannel_t vnetSlot);
|
||||||
|
extern int LegacyDLLExport icsneoFirmwareUpdateRequired(void* hObject);
|
||||||
|
|
||||||
|
//J2534 API functions
|
||||||
|
extern int LegacyDLLExport icsneoJ2534Cmd(void* hObject, unsigned char* CmdBuf, short Len, void* pVoid);
|
||||||
|
extern int LegacyDLLExport icsneoSendRawCmds(void* hObject, icsneoVICommand* pCmdMsgs, int lNumOfCmds);
|
||||||
|
extern int LegacyDLLExport icsneoEnableBusVoltageMonitor(void* hObject, unsigned int enable, unsigned int reserved);
|
||||||
|
extern int LegacyDLLExport icsneoGetBusVoltage(void* hObject, unsigned long* pVBusVoltage, unsigned int reserved);
|
||||||
|
extern int LegacyDLLExport icsneoGetNetidforSlaveVNETs(size_t* NetworkIndex, EPlasmaIonVnetChannel_t vnetSlot);
|
||||||
|
extern int LegacyDLLExport icsneoGetVnetSimpleNetid(size_t* FullNetID);
|
||||||
|
extern int LegacyDLLExport icsneoEnableDOIPLine(void* hObject, bool bActivate);
|
||||||
|
extern int LegacyDLLExport icsneoGetMiniportAdapterInfo(void* hObject, NETWORK_ADAPTER_INFO* aInfo);
|
||||||
|
|
||||||
|
// Hardware Time API functions
|
||||||
|
extern int LegacyDLLExport icsneoSendHWTimeRequest(void* hObject);
|
||||||
|
extern int LegacyDLLExport icsneoReceiveHWTimeResponse(void* hObject, double* TimeHardware, unsigned long TimeOut);
|
||||||
|
|
||||||
|
//Bitsmash functions
|
||||||
|
extern int LegacyDLLExport icsneoEnableBitSmash(void* hObject,int netId,unsigned int numWaitBits,unsigned int numSmashBits,unsigned int numFrames,unsigned int timeout_ms,unsigned int optionBits,unsigned int numArbIds,unsigned int arbIds[MAX_BIT_SMASH_ARBIDS]);
|
||||||
|
extern int LegacyDLLExport icsneoDisableBitSmash(void* hObject, unsigned int reservedZero);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
// Nothing special is needed to export
|
// Nothing special is needed to export
|
||||||
#define DLLExport
|
#define DLLExport
|
||||||
|
#define LegacyDLLExport
|
||||||
|
|
||||||
// #ifndef ICSNEO_NO_AUTO_DESTRUCT
|
// #ifndef ICSNEO_NO_AUTO_DESTRUCT
|
||||||
// #define ICSNEO_DESTRUCTOR __attribute__((destructor));
|
// #define ICSNEO_DESTRUCTOR __attribute__((destructor));
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#ifdef ICSNEOC_MAKEDLL
|
#ifdef ICSNEOC_MAKEDLL
|
||||||
#define DLLExport __declspec(dllexport)
|
#define DLLExport __declspec(dllexport)
|
||||||
|
#define LegacyDLLExport _stdcall
|
||||||
#else
|
#else
|
||||||
#define DLLExport __declspec(dllimport)
|
#define DLLExport __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,99 @@
|
|||||||
|
|
||||||
|
LIBRARY icsneolegacy
|
||||||
|
|
||||||
|
EXPORTS
|
||||||
|
icsneoFindDevices @1
|
||||||
|
icsneoFindNeoDevices @2
|
||||||
|
icsneoOpenNeoDevice @3
|
||||||
|
icsneoClosePort @4
|
||||||
|
icsneoFreeObject @5
|
||||||
|
icsneoOpenDevice @6
|
||||||
|
icsneoGetMessages @7
|
||||||
|
icsneoTxMessages @8
|
||||||
|
icsneoTxMessagesEx @9
|
||||||
|
icsneoWaitForRxMessagesWithTimeOut @10
|
||||||
|
icsneoEnableNetworkRXQueue @11
|
||||||
|
icsneoGetTimeStampForMsg @12
|
||||||
|
icsneoGetISO15765Status @13
|
||||||
|
icsneoSetISO15765RxParameters @14
|
||||||
|
icsneoGetConfiguration @15
|
||||||
|
icsneoSendConfiguration @16
|
||||||
|
icsneoGetFireSettings @17
|
||||||
|
icsneoSetFireSettings @18
|
||||||
|
icsneoGetVCAN3Settings @19
|
||||||
|
icsneoSetVCAN3Settings @20
|
||||||
|
icsneoGetFire2Settings @21
|
||||||
|
icsneoSetFire2Settings @22
|
||||||
|
icsneoGetVCANRFSettings @23
|
||||||
|
icsneoGetVCAN412Settings @24
|
||||||
|
icsneoSetVCAN412Settings @25
|
||||||
|
icsneoGetRADGalaxySettings @26
|
||||||
|
icsneoSetRADGalaxySettings @27
|
||||||
|
icsneoGetRADStar2Settings @28
|
||||||
|
icsneoSetRADStar2Settings @29
|
||||||
|
icsneoSetBitRate @30
|
||||||
|
icsneoSetBitRateEx @31
|
||||||
|
icsneoSetFDBitRate @32
|
||||||
|
icsneoGetDeviceParameters @33
|
||||||
|
icsneoSetDeviceParameters @34
|
||||||
|
icsneoGetVCAN4Settings @35
|
||||||
|
icsneoSetVCAN4Settings @36
|
||||||
|
icsneoGetDeviceSettingsType @37
|
||||||
|
icsneoSetDeviceSettings @38
|
||||||
|
icsneoGetDeviceSettings @39
|
||||||
|
icsneoSetUSBLatency @40
|
||||||
|
icsneoGetCANControllerClockFrequency @41
|
||||||
|
icsneoSetCANParameters @42
|
||||||
|
icsneoSetCANParametersPhilipsSJA1000 @43
|
||||||
|
icsneoOpenRemoteNeoDevice @44
|
||||||
|
icsneoFindRemoteNeoDevices @45
|
||||||
|
icsneoGetLastAPIError @46
|
||||||
|
icsneoGetErrorMessages @47
|
||||||
|
icsneoGetErrorInfo @48
|
||||||
|
icsneoISO15765_EnableNetworks @49
|
||||||
|
icsneoISO15765_DisableNetworks @50
|
||||||
|
icsneoISO15765_TransmitMessage @51
|
||||||
|
icsneoISO15765_ReceiveMessage @52
|
||||||
|
icsneoValidateHObject @53
|
||||||
|
icsneoGetDLLVersion @54
|
||||||
|
icsneoGetDLLVersionEx @55
|
||||||
|
icsneoGetSerialNumber @56
|
||||||
|
icsneoSerialNumberFromString @57
|
||||||
|
icsneoSerialNumberToString @58
|
||||||
|
icsneoStartSockServer @59
|
||||||
|
icsneoStopSockServer @60
|
||||||
|
icsneoScriptStart @61
|
||||||
|
icsneoScriptStop @62
|
||||||
|
icsneoScriptLoad @63
|
||||||
|
icsneoScriptClear @64
|
||||||
|
icsneoScriptStartFBlock @65
|
||||||
|
icsneoScriptGetFBlockStatus @66
|
||||||
|
icsneoScriptStopFBlock @67
|
||||||
|
icsneoScriptGetScriptStatus @68
|
||||||
|
icsneoScriptReadAppSignal @69
|
||||||
|
icsneoScriptWriteAppSignal @70
|
||||||
|
icsneoOpenPortEx @71
|
||||||
|
icsneoOpenPort @72
|
||||||
|
icsneoFindAllCOMDevices @73
|
||||||
|
icsneoEnableNetworkComEx @74
|
||||||
|
icsneoEnableNetworkCom @75
|
||||||
|
icsneoForceFirmwareUpdate @76
|
||||||
|
icsneoGetHWFirmwareInfo @77
|
||||||
|
icsneoGetDLLFirmwareInfo @78
|
||||||
|
icsneoGetDLLFirmwareInfoEx @79
|
||||||
|
icsneoFirmwareUpdateRequired @80
|
||||||
|
icsneoJ2534Cmd @81
|
||||||
|
icsneoSendRawCmds @82
|
||||||
|
icsneoEnableBusVoltageMonitor @83
|
||||||
|
icsneoGetBusVoltage @84
|
||||||
|
icsneoGetNetidforSlaveVNETs @85
|
||||||
|
icsneoGetVnetSimpleNetid @86
|
||||||
|
icsneoEnableDOIPLine @87
|
||||||
|
icsneoGetMiniportAdapterInfo @88
|
||||||
|
icsneoSendHWTimeRequest @89
|
||||||
|
icsneoReceiveHWTimeResponse @90
|
||||||
|
icsneoEnableBitSmash @91
|
||||||
|
icsneoDisableBitSmash @92
|
||||||
|
icsneoOpenNeoDeviceByChannels @93
|
||||||
|
icsneoISO15765_TransmitMessageEx @94
|
||||||
|
icsneoSetVCANRFSettings @95
|
||||||
Reference in New Issue
Block a user