pcan_pci/pcan_ioctl_interface.H File Reference

Go to the source code of this file.

Classes

struct  TPCANInit
struct  TPCANMsg
struct  TPCANRdMsg
struct  TPSTATUS
struct  TPDIAG
struct  TPBTR0BTR1
struct  TPEXTENDEDSTATUS

Defines

#define DWORD   unsigned long
#define WORD   unsigned short
#define BYTE   unsigned char \
#define HW_ISA   1
#define HW_DONGLE_SJA   5
#define HW_DONGLE_SJA_EPP   6
#define HW_DONGLE_PRO   7
#define HW_DONGLE_PRO_EPP   8
#define HW_ISA_SJA   9
#define HW_PCI   10
#define HW_USB   11
#define CAN_MAX_STANDARD_ID   0x7ff
#define CAN_MAX_EXTENDED_ID   0x1fffffff
#define CAN_ERR_OK   0x0000
#define CAN_ERR_XMTFULL   0x0001
#define CAN_ERR_OVERRUN   0x0002
#define CAN_ERR_BUSLIGHT   0x0004
#define CAN_ERR_BUSHEAVY   0x0008
#define CAN_ERR_BUSOFF   0x0010
#define CAN_ERR_QRCVEMPTY   0x0020
#define CAN_ERR_QOVERRUN   0x0040
#define CAN_ERR_QXMTFULL   0x0080
#define CAN_ERR_REGTEST   0x0100
#define CAN_ERR_NOVXD   0x0200
#define CAN_ERR_RESOURCE   0x2000
#define CAN_ERR_ILLPARAMTYPE   0x4000
#define CAN_ERR_ILLPARAMVAL   0x8000
#define CAN_ERRMASK_ILLHANDLE   0x1C00
#define MSGTYPE_STATUS   0x80
#define MSGTYPE_EXTENDED   0x02
#define MSGTYPE_RTR   0x01
#define MSGTYPE_STANDARD   0x00
#define VERSIONSTRING_LEN   64
#define CAN_INIT_TYPE_EX   0x01
#define CAN_INIT_TYPE_ST   0x00
#define PCAN_MAGIC_NUMBER   'z'
#define MYSEQ_START   0x80
#define PCAN_INIT   _IOWR(PCAN_MAGIC_NUMBER, MYSEQ_START, TPCANInit)
#define PCAN_WRITE_MSG   _IOW (PCAN_MAGIC_NUMBER, MYSEQ_START + 1, TPCANMsg)
#define PCAN_READ_MSG   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 2, TPCANRdMsg)
#define PCAN_GET_STATUS   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 3, TPSTATUS)
#define PCAN_DIAG   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 4, TPDIAG)
#define PCAN_BTR0BTR1   _IOWR(PCAN_MAGIC_NUMBER, MYSEQ_START + 5, TPBTR0BTR1)
#define PCAN_GET_EXT_STATUS   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 6, TPEXTENDEDSTATUS)

Define Documentation

#define BYTE   unsigned char \
#define CAN_ERR_BUSHEAVY   0x0008
#define CAN_ERR_BUSLIGHT   0x0004
#define CAN_ERR_BUSOFF   0x0010
#define CAN_ERR_ILLPARAMTYPE   0x4000
#define CAN_ERR_ILLPARAMVAL   0x8000
#define CAN_ERR_NOVXD   0x0200
#define CAN_ERR_OK   0x0000
#define CAN_ERR_OVERRUN   0x0002
#define CAN_ERR_QOVERRUN   0x0040
#define CAN_ERR_QRCVEMPTY   0x0020
#define CAN_ERR_QXMTFULL   0x0080
#define CAN_ERR_REGTEST   0x0100
#define CAN_ERR_RESOURCE   0x2000
#define CAN_ERR_XMTFULL   0x0001
#define CAN_ERRMASK_ILLHANDLE   0x1C00
#define CAN_INIT_TYPE_EX   0x01
#define CAN_INIT_TYPE_ST   0x00
#define CAN_MAX_EXTENDED_ID   0x1fffffff
#define CAN_MAX_STANDARD_ID   0x7ff
#define DWORD   unsigned long
#define HW_DONGLE_PRO   7
#define HW_DONGLE_PRO_EPP   8
#define HW_DONGLE_SJA   5
#define HW_DONGLE_SJA_EPP   6
#define HW_ISA   1
#define HW_ISA_SJA   9
#define HW_PCI   10
#define HW_USB   11
#define MSGTYPE_EXTENDED   0x02
#define MSGTYPE_RTR   0x01
#define MSGTYPE_STANDARD   0x00
#define MSGTYPE_STATUS   0x80
#define MYSEQ_START   0x80
#define PCAN_BTR0BTR1   _IOWR(PCAN_MAGIC_NUMBER, MYSEQ_START + 5, TPBTR0BTR1)
#define PCAN_DIAG   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 4, TPDIAG)
#define PCAN_GET_EXT_STATUS   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 6, TPEXTENDEDSTATUS)
#define PCAN_GET_STATUS   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 3, TPSTATUS)
#define PCAN_INIT   _IOWR(PCAN_MAGIC_NUMBER, MYSEQ_START, TPCANInit)
#define PCAN_MAGIC_NUMBER   'z'
#define PCAN_READ_MSG   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 2, TPCANRdMsg)
#define PCAN_WRITE_MSG   _IOW (PCAN_MAGIC_NUMBER, MYSEQ_START + 1, TPCANMsg)
#define VERSIONSTRING_LEN   64
#define WORD   unsigned short

Generated on Fri Apr 9 10:45:12 2010 for drivers by  doxygen 1.6.1