libpcan.h File Reference
#include <pcan.h>
#include <linux/types.h>
#include <linux/ioctl.h>
Go to the source code of this file.
Defines |
#define | CAN_BAUD_100K 0x432F |
#define | CAN_BAUD_10K 0x672F |
#define | CAN_BAUD_125K 0x031C |
#define | CAN_BAUD_1M 0x0014 |
#define | CAN_BAUD_20K 0x532F |
#define | CAN_BAUD_250K 0x011C |
#define | CAN_BAUD_500K 0x001C |
#define | CAN_BAUD_50K 0x472F |
#define | CAN_BAUD_5K 0x7F7F |
#define | CAN_ERR_ANYBUSERR (CAN_ERR_BUSLIGHT | CAN_ERR_BUSHEAVY | CAN_ERR_BUSOFF) |
#define | CAN_INIT_TYPE_EX 0x01 |
#define | CAN_INIT_TYPE_ST 0x00 |
#define | HANDLE void * |
#define | LPSTR char * |
Functions |
DWORD | CAN_Close (HANDLE hHandle) |
DWORD | CAN_Init (HANDLE hHandle, WORD wBTR0BTR1, int nCANMsgType) |
DWORD | CAN_MsgFilter (HANDLE hHandle, DWORD FromID, DWORD ToID, int nCANMsgType) |
HANDLE | CAN_Open (WORD wHardwareType,...) |
DWORD | CAN_Read (HANDLE hHandle, TPCANMsg *pMsgBuff) |
DWORD | CAN_ResetFilter (HANDLE hHandle) |
DWORD | CAN_Status (HANDLE hHandle) |
DWORD | CAN_VersionInfo (HANDLE hHandle, LPSTR lpszTextBuff) |
DWORD | CAN_Write (HANDLE hHandle, TPCANMsg *pMsgBuff) |
WORD | LINUX_CAN_BTR0BTR1 (HANDLE hHandle, DWORD dwBitRate) |
DWORD | LINUX_CAN_Extended_Status (HANDLE hHandle, int *nPendingReads, int *nPendingWrites) |
int | LINUX_CAN_FileHandle (HANDLE hHandle) |
HANDLE | LINUX_CAN_Open (const char *szDeviceName, int nFlag) |
DWORD | LINUX_CAN_Read (HANDLE hHandle, TPCANRdMsg *pMsgBuff) |
DWORD | LINUX_CAN_Read_Timeout (HANDLE hHandle, TPCANRdMsg *pMsgBuff, int nMicroSeconds) |
DWORD | LINUX_CAN_Statistics (HANDLE hHandle, TPDIAG *diag) |
DWORD | LINUX_CAN_Write_Timeout (HANDLE hHandle, TPCANMsg *pMsgBuff, int nMicroSeconds) |
int | nGetLastError (void) |
Define Documentation
#define CAN_BAUD_100K 0x432F |
#define CAN_BAUD_10K 0x672F |
#define CAN_BAUD_125K 0x031C |
#define CAN_BAUD_1M 0x0014 |
#define CAN_BAUD_20K 0x532F |
#define CAN_BAUD_250K 0x011C |
#define CAN_BAUD_500K 0x001C |
#define CAN_BAUD_50K 0x472F |
#define CAN_BAUD_5K 0x7F7F |
#define CAN_ERR_ANYBUSERR (CAN_ERR_BUSLIGHT | CAN_ERR_BUSHEAVY | CAN_ERR_BUSOFF) |
#define CAN_INIT_TYPE_EX 0x01 |
#define CAN_INIT_TYPE_ST 0x00 |
Function Documentation
DWORD CAN_Close |
( |
HANDLE |
hHandle |
) |
|
DWORD CAN_Init |
( |
HANDLE |
hHandle, |
|
|
WORD |
wBTR0BTR1, |
|
|
int |
nCANMsgType | |
|
) |
| | |
DWORD CAN_MsgFilter |
( |
HANDLE |
hHandle, |
|
|
DWORD |
FromID, |
|
|
DWORD |
ToID, |
|
|
int |
nCANMsgType | |
|
) |
| | |
HANDLE CAN_Open |
( |
WORD |
wHardwareType, |
|
|
|
... | |
|
) |
| | |
DWORD CAN_Read |
( |
HANDLE |
hHandle, |
|
|
TPCANMsg * |
pMsgBuff | |
|
) |
| | |
DWORD CAN_ResetFilter |
( |
HANDLE |
hHandle |
) |
|
DWORD CAN_Status |
( |
HANDLE |
hHandle |
) |
|
DWORD CAN_VersionInfo |
( |
HANDLE |
hHandle, |
|
|
LPSTR |
lpszTextBuff | |
|
) |
| | |
DWORD CAN_Write |
( |
HANDLE |
hHandle, |
|
|
TPCANMsg * |
pMsgBuff | |
|
) |
| | |
WORD LINUX_CAN_BTR0BTR1 |
( |
HANDLE |
hHandle, |
|
|
DWORD |
dwBitRate | |
|
) |
| | |
DWORD LINUX_CAN_Extended_Status |
( |
HANDLE |
hHandle, |
|
|
int * |
nPendingReads, |
|
|
int * |
nPendingWrites | |
|
) |
| | |
int LINUX_CAN_FileHandle |
( |
HANDLE |
hHandle |
) |
|
HANDLE LINUX_CAN_Open |
( |
const char * |
szDeviceName, |
|
|
int |
nFlag | |
|
) |
| | |
DWORD LINUX_CAN_Read |
( |
HANDLE |
hHandle, |
|
|
TPCANRdMsg * |
pMsgBuff | |
|
) |
| | |
DWORD LINUX_CAN_Read_Timeout |
( |
HANDLE |
hHandle, |
|
|
TPCANRdMsg * |
pMsgBuff, |
|
|
int |
nMicroSeconds | |
|
) |
| | |
DWORD LINUX_CAN_Statistics |
( |
HANDLE |
hHandle, |
|
|
TPDIAG * |
diag | |
|
) |
| | |
DWORD LINUX_CAN_Write_Timeout |
( |
HANDLE |
hHandle, |
|
|
TPCANMsg * |
pMsgBuff, |
|
|
int |
nMicroSeconds | |
|
) |
| | |
int nGetLastError |
( |
void |
|
) |
|