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);
LinStatus linWriteWakeup(LinHandle h, unsigned int count, unsigned int interval)
LinStatus linRequestMessage(LinHandle h, unsigned int id)
LinStatus linSetBitrate(LinHandle h, unsigned int bps)
LinHandle linOpenChannel(int channel, int flags)
LinStatus linClearMessage(LinHandle h, unsigned int id)
The LIN interface response wasn't the expected one.
Definition: linlib.h:90
unsigned long synchBreakLength
Definition: linlib.h:138
LinStatus linGetFirmwareVersion(LinHandle h, unsigned char *bootVerMajor, unsigned char *bootVerMinor, unsigned char *bootVerBuild, unsigned char *appVerMajor, unsigned char *appVerMinor, unsigned char *appVerBuild)
unsigned long timestamp
Definition: linlib.h:132
Internal error in the driver.
Definition: linlib.h:88
LinStatus
Definition: linlib.h:49
The card was removed or not inserted.
Definition: linlib.h:93
int canHandle
Definition: canlib.h:118
CAN driver type not supported.
Definition: linlib.h:91
LinStatus linUpdateMessage(LinHandle h, unsigned int id, const void *msg, unsigned int dlc)
unsigned char checkSum
Definition: linlib.h:156
LinStatus linGetChannelData(int channel, int item, void *buffer, size_t bufsize)
There was an error response from the LIN interface.
Definition: linlib.h:89
LinStatus linGetTransceiverData(int channel, unsigned char eanNo[8], unsigned char serNo[8], int *ttype)
Specified hardware not found. This error is reported when the LIN transceiver isn't powered up...
Definition: linlib.h:81
Error in parameter.
Definition: linlib.h:80
No channels avaliable.
Definition: linlib.h:83
LinStatus linBusOn(LinHandle h)
LinStatus linWriteMessage(LinHandle h, unsigned int id, const void *msg, unsigned int dlc)
unsigned long bitrate
Definition: linlib.h:150
Can't get handle.
Definition: linlib.h:86
The requested feature or function is not implemented in the device you are trying to use it on...
Definition: linlib.h:99
Function not supported in this version.
Definition: linlib.h:97
Handle is invalid.
Definition: linlib.h:87
Library not initialized.
Definition: linlib.h:85
LinStatus linWriteSync(LinHandle h, unsigned long timeout)
void linUnloadLibrary(void)
LinStatus linReadMessage(LinHandle h, unsigned int *id, void *msg, unsigned int *dlc, unsigned int *flags, LinMessageInfo *msgInfo)
DeviceIOControl failed; use the Win32 GetLastError API to get the real (WIn32) error code...
Definition: linlib.h:92
LinStatus linGetCanHandle(LinHandle h, unsigned int *canHandle)
LinStatus linReadMessageWait(LinHandle h, unsigned int *id, void *msg, unsigned int *dlc, unsigned int *flags, LinMessageInfo *msgInfo, unsigned long timeout)
Internal error in the driver.
Definition: linlib.h:95
Timeout occurred.
Definition: linlib.h:84
No messages available.
Definition: linlib.h:51
Out of memory.
Definition: linlib.h:82
LinStatus linSetupIllegalMessage(LinHandle h, unsigned int id, unsigned int cFlags, unsigned int delay)
unsigned long linReadTimer(LinHandle h)
LinStatus linSetupLIN(LinHandle h, unsigned int lFlags, unsigned int bps)
int LinHandle
Definition: linlib.h:32
Function not supported in this version.
Definition: linlib.h:98
unsigned char idPar
Definition: linlib.h:162
Access denied.
Definition: linlib.h:96
OK - no error.
Definition: linlib.h:50
The license is not valid.
Definition: linlib.h:94
LinStatus linBusOff(LinHandle h)
void linInitializeLibrary(void)
unsigned short z
Dummy for alignment.
Definition: linlib.h:164
LinStatus linGetVersion(int *major, int *minor, int *build)
unsigned long frameLength
Definition: linlib.h:144