Linux Kernel
3.7.1
|
#include <linux/netdevice.h>
#include <linux/usb.h>
#include <linux/module.h>
#include <linux/can.h>
#include <linux/can/dev.h>
#include <linux/can/error.h>
#include "pcan_usb_core.h"
Go to the source code of this file.
Data Structures | |
struct | pcan_usb |
struct | pcan_usb_msg_context |
Functions | |
MODULE_SUPPORTED_DEVICE ("PEAK-System PCAN-USB adapter") | |
Variables | |
struct peak_usb_adapter | pcan_usb |
#define PCAN_USB_CMD_ARGS 2 |
Definition at line 40 of file pcan_usb.c.
#define PCAN_USB_CMD_ARGS_LEN 14 |
Definition at line 41 of file pcan_usb.c.
#define PCAN_USB_CMD_FUNC 0 |
Definition at line 38 of file pcan_usb.c.
#define PCAN_USB_CMD_LEN |
Definition at line 42 of file pcan_usb.c.
#define PCAN_USB_CMD_NUM 1 |
Definition at line 39 of file pcan_usb.c.
#define PCAN_USB_COMMAND_TIMEOUT 1000 |
Definition at line 46 of file pcan_usb.c.
#define PCAN_USB_CRYSTAL_HZ 16000000 |
Definition at line 58 of file pcan_usb.c.
#define PCAN_USB_EP_CMDIN (PCAN_USB_EP_CMDOUT | USB_DIR_IN) |
Definition at line 33 of file pcan_usb.c.
#define PCAN_USB_EP_CMDOUT 1 |
Definition at line 32 of file pcan_usb.c.
#define PCAN_USB_EP_MSGIN (PCAN_USB_EP_MSGOUT | USB_DIR_IN) |
Definition at line 35 of file pcan_usb.c.
#define PCAN_USB_EP_MSGOUT 2 |
Definition at line 34 of file pcan_usb.c.
#define PCAN_USB_ERROR_BUS_HEAVY 0x08 |
Definition at line 71 of file pcan_usb.c.
#define PCAN_USB_ERROR_BUS_LIGHT 0x04 |
Definition at line 70 of file pcan_usb.c.
#define PCAN_USB_ERROR_BUS_OFF 0x10 |
Definition at line 72 of file pcan_usb.c.
#define PCAN_USB_ERROR_QOVR 0x40 |
Definition at line 74 of file pcan_usb.c.
#define PCAN_USB_ERROR_RXQEMPTY 0x20 |
Definition at line 73 of file pcan_usb.c.
#define PCAN_USB_ERROR_RXQOVR 0x02 |
Definition at line 69 of file pcan_usb.c.
#define PCAN_USB_ERROR_TXFULL 0x01 |
Definition at line 68 of file pcan_usb.c.
#define PCAN_USB_ERROR_TXQFULL 0x80 |
Definition at line 75 of file pcan_usb.c.
#define PCAN_USB_MSG_HEADER_LEN 2 |
Definition at line 55 of file pcan_usb.c.
#define PCAN_USB_REC_ANALOG 2 |
Definition at line 91 of file pcan_usb.c.
#define PCAN_USB_REC_BUSEVT 5 |
Definition at line 94 of file pcan_usb.c.
#define PCAN_USB_REC_BUSLOAD 3 |
Definition at line 92 of file pcan_usb.c.
#define PCAN_USB_REC_ERROR 1 |
Definition at line 90 of file pcan_usb.c.
#define PCAN_USB_REC_TS 4 |
Definition at line 93 of file pcan_usb.c.
#define PCAN_USB_RX_BUFFER_SIZE 64 |
Definition at line 52 of file pcan_usb.c.
#define PCAN_USB_STARTUP_TIMEOUT 10 |
Definition at line 49 of file pcan_usb.c.
#define PCAN_USB_STATUSLEN_DLC (0xf) |
Definition at line 65 of file pcan_usb.c.
#define PCAN_USB_STATUSLEN_EXT_ID (1 << 5) |
Definition at line 63 of file pcan_usb.c.
#define PCAN_USB_STATUSLEN_INTERNAL (1 << 6) |
Definition at line 62 of file pcan_usb.c.
#define PCAN_USB_STATUSLEN_RTR (1 << 4) |
Definition at line 64 of file pcan_usb.c.
#define PCAN_USB_STATUSLEN_TIMESTAMP (1 << 7) |
Definition at line 61 of file pcan_usb.c.
#define PCAN_USB_TS_DIV_SHIFTER 20 |
Definition at line 86 of file pcan_usb.c.
#define PCAN_USB_TS_US_PER_TICK 44739243 |
Definition at line 87 of file pcan_usb.c.
#define PCAN_USB_TX_BUFFER_SIZE 64 |
Definition at line 53 of file pcan_usb.c.
#define SJA1000_MODE_INIT 0x01 |
Definition at line 79 of file pcan_usb.c.
#define SJA1000_MODE_NORMAL 0x00 |
Definition at line 78 of file pcan_usb.c.
Definition at line 857 of file pcan_usb.c.