Classes | Defines
pcan.h File Reference
#include <linux/types.h>
#include <linux/ioctl.h>
Include dependency graph for pcan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Defines

#define BYTE   __u8
#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_MAX_EXTENDED_ID   0x1fffffff
#define CAN_MAX_STANDARD_ID   0x7ff
#define DWORD   __u32
#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_PCCARD   12
#define HW_PCI   10
#define HW_USB   11
#define HW_USB_PRO   13
#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_EXTRA_PARAMS   _IOWR(PCAN_MAGIC_NUMBER, MYSEQ_START + 8, TPEXTRAPARAMS)
#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_MSG_FILTER   _IOW (PCAN_MAGIC_NUMBER, MYSEQ_START + 7, TPMSGFILTER)
#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 SF_GET_HCDEVICENO   3
#define SF_GET_SERIALNUMBER   1
#define SF_SET_HCDEVICENO   4
#define SF_SET_SERIALNUMBER   2
#define VERSIONSTRING_LEN   64
#define WORD   __u16

Define Documentation

#define BYTE   __u8

Definition at line 57 of file pcan.h.

#define CAN_ERR_BUSHEAVY   0x0008

Definition at line 84 of file pcan.h.

#define CAN_ERR_BUSLIGHT   0x0004

Definition at line 83 of file pcan.h.

#define CAN_ERR_BUSOFF   0x0010

Definition at line 85 of file pcan.h.

#define CAN_ERR_ILLPARAMTYPE   0x4000

Definition at line 92 of file pcan.h.

#define CAN_ERR_ILLPARAMVAL   0x8000

Definition at line 93 of file pcan.h.

#define CAN_ERR_NOVXD   0x0200

Definition at line 90 of file pcan.h.

#define CAN_ERR_OK   0x0000

Definition at line 80 of file pcan.h.

#define CAN_ERR_OVERRUN   0x0002

Definition at line 82 of file pcan.h.

#define CAN_ERR_QOVERRUN   0x0040

Definition at line 87 of file pcan.h.

#define CAN_ERR_QRCVEMPTY   0x0020

Definition at line 86 of file pcan.h.

#define CAN_ERR_QXMTFULL   0x0080

Definition at line 88 of file pcan.h.

#define CAN_ERR_REGTEST   0x0100

Definition at line 89 of file pcan.h.

#define CAN_ERR_RESOURCE   0x2000

Definition at line 91 of file pcan.h.

#define CAN_ERR_XMTFULL   0x0001

Definition at line 81 of file pcan.h.

#define CAN_ERRMASK_ILLHANDLE   0x1C00

Definition at line 94 of file pcan.h.

#define CAN_MAX_EXTENDED_ID   0x1fffffff

Definition at line 76 of file pcan.h.

#define CAN_MAX_STANDARD_ID   0x7ff

Definition at line 75 of file pcan.h.

#define DWORD   __u32

Definition at line 55 of file pcan.h.

#define HW_DONGLE_PRO   7

Definition at line 65 of file pcan.h.

#define HW_DONGLE_PRO_EPP   8

Definition at line 66 of file pcan.h.

#define HW_DONGLE_SJA   5

Definition at line 63 of file pcan.h.

#define HW_DONGLE_SJA_EPP   6

Definition at line 64 of file pcan.h.

#define HW_ISA   1

Definition at line 62 of file pcan.h.

#define HW_ISA_SJA   9

Definition at line 67 of file pcan.h.

#define HW_PCCARD   12

Definition at line 70 of file pcan.h.

#define HW_PCI   10

Definition at line 68 of file pcan.h.

#define HW_USB   11

Definition at line 69 of file pcan.h.

#define HW_USB_PRO   13

Definition at line 71 of file pcan.h.

#define MSGTYPE_EXTENDED   0x02

Definition at line 99 of file pcan.h.

#define MSGTYPE_RTR   0x01

Definition at line 100 of file pcan.h.

#define MSGTYPE_STANDARD   0x00

Definition at line 101 of file pcan.h.

#define MSGTYPE_STATUS   0x80

Definition at line 98 of file pcan.h.

#define MYSEQ_START   0x80

Definition at line 193 of file pcan.h.

Definition at line 202 of file pcan.h.

#define PCAN_DIAG   _IOR (PCAN_MAGIC_NUMBER, MYSEQ_START + 4, TPDIAG)

Definition at line 201 of file pcan.h.

Definition at line 205 of file pcan.h.

Definition at line 203 of file pcan.h.

Definition at line 200 of file pcan.h.

Definition at line 197 of file pcan.h.

#define PCAN_MAGIC_NUMBER   'z'

Definition at line 192 of file pcan.h.

Definition at line 204 of file pcan.h.

Definition at line 199 of file pcan.h.

Definition at line 198 of file pcan.h.

#define SF_GET_HCDEVICENO   3

Definition at line 177 of file pcan.h.

#define SF_GET_SERIALNUMBER   1

Definition at line 175 of file pcan.h.

#define SF_SET_HCDEVICENO   4

Definition at line 178 of file pcan.h.

#define SF_SET_SERIALNUMBER   2

Definition at line 176 of file pcan.h.

#define VERSIONSTRING_LEN   64

Definition at line 105 of file pcan.h.

#define WORD   __u16

Definition at line 56 of file pcan.h.



libpcan
Author(s): Florian Weisshardt
autogenerated on Fri Aug 28 2015 10:21:51