Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pcan_usb_pro.c File Reference
#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"
#include "pcan_usb_pro.h"

Go to the source code of this file.

Data Structures

struct  pcan_usb_pro_interface
 
struct  pcan_usb_pro_device
 
struct  pcan_usb_pro_msg
 

Macros

#define PCAN_USBPRO_EP_CMDOUT   1
 
#define PCAN_USBPRO_EP_CMDIN   (PCAN_USBPRO_EP_CMDOUT | USB_DIR_IN)
 
#define PCAN_USBPRO_EP_MSGOUT_0   2
 
#define PCAN_USBPRO_EP_MSGIN   (PCAN_USBPRO_EP_MSGOUT_0 | USB_DIR_IN)
 
#define PCAN_USBPRO_EP_MSGOUT_1   3
 
#define PCAN_USBPRO_EP_UNUSED   (PCAN_USBPRO_EP_MSGOUT_1 | USB_DIR_IN)
 
#define PCAN_USBPRO_CHANNEL_COUNT   2
 
#define PCAN_USBPRO_CRYSTAL_HZ   56000000
 
#define PCAN_USBPRO_COMMAND_TIMEOUT   1000
 
#define PCAN_USBPRO_RX_BUFFER_SIZE   1024
 
#define PCAN_USBPRO_TX_BUFFER_SIZE   64
 
#define PCAN_USBPRO_MSG_HEADER_LEN   4
 
#define PCAN_USBPRO_RSP_SUBMIT_MAX   2
 
#define PCAN_USBPRO_RTR   0x01
 
#define PCAN_USBPRO_EXT   0x02
 
#define PCAN_USBPRO_CMD_BUFFER_SIZE   512
 

Functions

 MODULE_SUPPORTED_DEVICE ("PEAK-System PCAN-USB Pro adapter")
 

Variables

struct peak_usb_adapter pcan_usb_pro
 

Macro Definition Documentation

#define PCAN_USBPRO_CHANNEL_COUNT   2

Definition at line 38 of file pcan_usb_pro.c.

#define PCAN_USBPRO_CMD_BUFFER_SIZE   512

Definition at line 58 of file pcan_usb_pro.c.

#define PCAN_USBPRO_COMMAND_TIMEOUT   1000

Definition at line 44 of file pcan_usb_pro.c.

#define PCAN_USBPRO_CRYSTAL_HZ   56000000

Definition at line 41 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EP_CMDIN   (PCAN_USBPRO_EP_CMDOUT | USB_DIR_IN)

Definition at line 32 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EP_CMDOUT   1

Definition at line 31 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EP_MSGIN   (PCAN_USBPRO_EP_MSGOUT_0 | USB_DIR_IN)

Definition at line 34 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EP_MSGOUT_0   2

Definition at line 33 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EP_MSGOUT_1   3

Definition at line 35 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EP_UNUSED   (PCAN_USBPRO_EP_MSGOUT_1 | USB_DIR_IN)

Definition at line 36 of file pcan_usb_pro.c.

#define PCAN_USBPRO_EXT   0x02

Definition at line 56 of file pcan_usb_pro.c.

#define PCAN_USBPRO_MSG_HEADER_LEN   4

Definition at line 50 of file pcan_usb_pro.c.

#define PCAN_USBPRO_RSP_SUBMIT_MAX   2

Definition at line 53 of file pcan_usb_pro.c.

#define PCAN_USBPRO_RTR   0x01

Definition at line 55 of file pcan_usb_pro.c.

#define PCAN_USBPRO_RX_BUFFER_SIZE   1024

Definition at line 47 of file pcan_usb_pro.c.

#define PCAN_USBPRO_TX_BUFFER_SIZE   64

Definition at line 48 of file pcan_usb_pro.c.

Function Documentation

MODULE_SUPPORTED_DEVICE ( "PEAK-System PCAN-USB Pro adapter )

Variable Documentation

struct peak_usb_adapter pcan_usb_pro

Definition at line 993 of file pcan_usb_pro.c.