37 #define linINVALID_HANDLE ((LinHandle)(-1)) 105 #include <pshpack1.h> 172 unsigned long synchEdgeTime[4];
180 unsigned long byteTime[8];
196 #define LIN_WAKEUP_FRAME 4 198 #define LIN_CSUM_ERROR 16 199 #define LIN_PARITY_ERROR 32 200 #define LIN_SYNCH_ERROR 64 201 #define LIN_BIT_ERROR 128 224 #define linCHANNELDATA_CARD_FIRMWARE_REV 9 231 #define LINERROR(f) ((f) & (LIN_NODATA | LIN_CSUM_ERROR | LIN_SYNCH_ERROR | LIN_BIT_ERROR)) 238 # if defined(__BORLANDC__) 239 # define LINLIBAPI __stdcall 240 # elif defined(_MSC_VER) || defined(__MWERKS__) || defined(__GNUC__) 241 # define LINLIBAPI __stdcall 304 unsigned char serNo[8],
int *ttype);
354 LinStatus LINLIBAPI linClose(LinHandle h); 409 unsigned char *bootVerMajor,
410 unsigned char *bootVerMinor,
411 unsigned char *bootVerBuild,
412 unsigned char *appVerMajor,
413 unsigned char *appVerMinor,
414 unsigned char *appVerBuild);
571 unsigned int *dlc,
unsigned int *flags,
604 unsigned int *dlc,
unsigned int *flags,
654 unsigned int cFlags,
unsigned int delay);
664 #define LIN_MSG_DISTURB_CSUM 1 669 #define LIN_MSG_DISTURB_PARITY 2 681 #define LIN_MSG_USE_STANDARD_PARITY 0x04 685 #define LIN_MSG_USE_ENHANCED_PARITY 0x08 736 #define LIN_ENHANCED_CHECKSUM 1 743 #define LIN_VARIABLE_DLC 2 767 unsigned int interval);
Library not initialized.
Definition: linlib.h:85
LinStatus
Definition: linlib.h:49
LinStatus linGetTransceiverData(int channel, unsigned char eanNo[8], unsigned char serNo[8], int *ttype)
DeviceIOControl failed; use the Win32 GetLastError API to get the real (WIn32) error code...
Definition: linlib.h:92
LinStatus linGetChannelData(int channel, int item, void *buffer, size_t bufsize)
LinStatus linSetBitrate(LinHandle h, unsigned int bps)
LinStatus linGetVersion(int *major, int *minor, int *build)
LinStatus linBusOff(LinHandle h)
unsigned long frameLength
Definition: linlib.h:144
unsigned long bitrate
Definition: linlib.h:150
LinStatus linReadMessageWait(LinHandle h, unsigned int *id, void *msg, unsigned int *dlc, unsigned int *flags, LinMessageInfo *msgInfo, unsigned long timeout)
LinStatus linGetCanHandle(LinHandle h, unsigned int *canHandle)
LinStatus linSetupIllegalMessage(LinHandle h, unsigned int id, unsigned int cFlags, unsigned int delay)
Internal error in the driver.
Definition: linlib.h:88
The LIN interface response wasn't the expected one.
Definition: linlib.h:90
void linInitializeLibrary(void)
Internal error in the driver.
Definition: linlib.h:95
The requested feature or function is not implemented in the device you are trying to use it on...
Definition: linlib.h:99
LinStatus linUpdateMessage(LinHandle h, unsigned int id, const void *msg, unsigned int dlc)
LinStatus linGetFirmwareVersion(LinHandle h, unsigned char *bootVerMajor, unsigned char *bootVerMinor, unsigned char *bootVerBuild, unsigned char *appVerMajor, unsigned char *appVerMinor, unsigned char *appVerBuild)
int LinHandle
Definition: linlib.h:32
Timeout occurred.
Definition: linlib.h:84
LinStatus linWriteWakeup(LinHandle h, unsigned int count, unsigned int interval)
LinStatus linSetupLIN(LinHandle h, unsigned int lFlags, unsigned int bps)
The card was removed or not inserted.
Definition: linlib.h:93
The license is not valid.
Definition: linlib.h:94
unsigned long timestamp
Definition: linlib.h:132
Function not supported in this version.
Definition: linlib.h:98
CAN driver type not supported.
Definition: linlib.h:91
unsigned long synchBreakLength
Definition: linlib.h:138
Out of memory.
Definition: linlib.h:82
Access denied.
Definition: linlib.h:96
LinStatus linReadMessage(LinHandle h, unsigned int *id, void *msg, unsigned int *dlc, unsigned int *flags, LinMessageInfo *msgInfo)
unsigned char idPar
Definition: linlib.h:162
No channels avaliable.
Definition: linlib.h:83
LinStatus linWriteMessage(LinHandle h, unsigned int id, const void *msg, unsigned int dlc)
Error in parameter.
Definition: linlib.h:80
OK - no error.
Definition: linlib.h:50
LinStatus linRequestMessage(LinHandle h, unsigned int id)
Handle is invalid.
Definition: linlib.h:87
unsigned char checkSum
Definition: linlib.h:156
LinStatus linWriteSync(LinHandle h, unsigned long timeout)
There was an error response from the LIN interface.
Definition: linlib.h:89
Specified hardware not found. This error is reported when the LIN transceiver isn't powered up...
Definition: linlib.h:81
unsigned long linReadTimer(LinHandle h)
unsigned short z
Dummy for alignment.
Definition: linlib.h:164
LinHandle linOpenChannel(int channel, int flags)
No messages available.
Definition: linlib.h:51
Function not supported in this version.
Definition: linlib.h:97
int canHandle
Definition: canlib.h:118
void linUnloadLibrary(void)
LinStatus linClearMessage(LinHandle h, unsigned int id)
LinStatus linBusOn(LinHandle h)
Can't get handle.
Definition: linlib.h:86