49 #define j1587INVALID_HANDLE ((J1587Handle)(-1)) 56 #define canTRANSCEIVER_TYPE_LINX_LIN 64 57 #define canTRANSCEIVER_TYPE_LINX_J1708 66 58 #define canTRANSCEIVER_TYPE_LINX_K 68 59 #define canTRANSCEIVER_TYPE_LINX_SWC 70 60 #define canTRANSCEIVER_TYPE_LINX_LS 72 68 #define EEPROM_OP_MODE_NONE 0x00 69 #define EEPROM_OP_MODE_J1587_NORMAL 0x01 70 #define EEPROM_OP_MODE_J1587_NODE 0x02 78 #define j1587FLAG_CHECKSUM 0x80 79 #define j1587FLAG_FRAMEDELAY 0x40 80 #define j1587FLAG_BYTEDELAY 0x20 81 #define j1587FLAG_STOPBIT 0x10 82 #define j1587FLAG_OVERRUN 0x08 121 #define J1587LIB_VERSION 1 124 #include <pshpack1.h> 158 unsigned char checkSum;
162 unsigned char retries;
195 # if defined(__BORLANDC__) 196 # define J1587LIBAPI __stdcall 197 # elif defined(_MSC_VER) || defined(__MWERKS__) || defined(__GNUC__) 198 # define J1587LIBAPI __stdcall 241 #define J1587_NORMAL 1 244 #define J1587_WRITE 8 294 unsigned char *bootVerMajor,
295 unsigned char *bootVerMinor,
296 unsigned char *bootVerBuild,
297 unsigned char *appVerMajor,
298 unsigned char *appVerMinor,
299 unsigned char *appVerBuild);
368 unsigned int priority,
389 unsigned int *msgLength,
440 #define J1587_INTER_CHAR_DELAY_MASK 0x0f 441 #define J1587_REPORT_BAD_CHECKSUM 0x10 442 #define J1587_REPORT_FRAME_DELAY 0x20 443 #define J1587_REPORT_CHAR_DELAY 0x40 457 J1587Status J1587LIBAPI j1587GetCanHandle(J1587Handle h, unsigned int *canHandle); 463 #endif // __J1587LIB_H void j1587InitializeLibrary(void)
DeviceIOControl failed; use Win32 GetLastError()
Definition: j1587lib.h:109
Definition: j1587lib.h:94
Specified hw not found.
Definition: j1587lib.h:98
J1587Handle j1587OpenChannel(int channel, int flags)
J1587Status j1587GetFirmwareVersion(J1587Handle h, unsigned char *bootVerMajor, unsigned char *bootVerMinor, unsigned char *bootVerBuild, unsigned char *appVerMajor, unsigned char *appVerMinor, unsigned char *appVerBuild)
Can't get handle.
Definition: j1587lib.h:103
The license is not valid.
Definition: j1587lib.h:111
int J1587Handle
Definition: j1587lib.h:44
J1587Status j1587BusOff(J1587Handle h)
J1587Status j1587Configure(J1587Handle h, unsigned int flags)
No channels avaliable.
Definition: j1587lib.h:100
J1587Status
Definition: j1587lib.h:90
unsigned char frameDelay
Definition: j1587lib.h:151
J1587Status j1587ReadMessageWait(J1587Handle h, void *msg, unsigned int *msgLength, J1587MessageInfo *msgInfo, DWORD timeout)
Error in parameter.
Definition: j1587lib.h:97
unsigned short bitrate
Definition: j1587lib.h:181
Function not supported in this version.
Definition: j1587lib.h:114
Timeout occurred.
Definition: j1587lib.h:101
Definition: j1587lib.h:135
There was an error response from the J1587 interface.
Definition: j1587lib.h:106
J1587Status j1587WriteSync(J1587Handle h, J1587MessageInfo *msgInfo, DWORD timeout)
CAN driver type not supported.
Definition: j1587lib.h:108
J1587Status j1587BusOn(J1587Handle h)
Library not initialized.
Definition: j1587lib.h:102
The card was removed or not inserted.
Definition: j1587lib.h:110
unsigned short reserved
Definition: j1587lib.h:186
J1587Status j1587Close(J1587Handle h)
unsigned long timestamp
Definition: j1587lib.h:169
unsigned char flags
Definition: j1587lib.h:144
J1587Status j1587SetBitrate(J1587Handle h, unsigned int bps)
J1587Status j1587WriteMessageWait(J1587Handle h, const void *msg, unsigned int length, unsigned int priority, DWORD timeout)
Out of memory.
Definition: j1587lib.h:99
OK - no error.
Definition: j1587lib.h:91
Handle is invalid.
Definition: j1587lib.h:104
Definition: j1587lib.h:95
Internal error in the driver.
Definition: j1587lib.h:112
Access denied.
Definition: j1587lib.h:113
unsigned long j1587ReadTimer(J1587Handle h)
unsigned long frameLength
Definition: j1587lib.h:175
No messages available.
Definition: j1587lib.h:92
Definition: j1587lib.h:96
unsigned char version
Definition: j1587lib.h:139
Definition: j1587lib.h:105
Definition: j1587lib.h:93
The J1587 interface response wasn't the expected one.
Definition: j1587lib.h:107