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_core.h File Reference

Go to the source code of this file.

Data Structures

struct  peak_usb_adapter
 
struct  peak_time_ref
 
struct  peak_tx_urb_context
 
struct  peak_usb_device
 

Macros

#define PCAN_USB_VENDOR_ID   0x0c72
 
#define PCAN_USB_PRODUCT_ID   0x000c
 
#define PCAN_USBPRO_PRODUCT_ID   0x000d
 
#define PCAN_USB_DRIVER_NAME   "peak_usb"
 
#define PCAN_USB_MAX_RX_URBS   4
 
#define PCAN_USB_MAX_TX_URBS   10
 
#define PCAN_USB_MAX_CHANNEL   2
 
#define PCAN_USB_MAX_CMD_LEN   32
 
#define PCAN_USB_STATE_CONNECTED   0x00000001
 
#define PCAN_USB_STATE_STARTED   0x00000002
 

Functions

void pcan_dump_mem (char *prompt, void *p, int l)
 
void peak_usb_init_time_ref (struct peak_time_ref *time_ref, struct peak_usb_adapter *adapter)
 
void peak_usb_update_ts_now (struct peak_time_ref *time_ref, u32 ts_now)
 
void peak_usb_set_ts_now (struct peak_time_ref *time_ref, u32 ts_now)
 
void peak_usb_get_ts_tv (struct peak_time_ref *time_ref, u32 ts, struct timeval *tv)
 
void peak_usb_async_complete (struct urb *urb)
 
void peak_usb_restart_complete (struct peak_usb_device *dev)
 

Variables

struct peak_usb_adapter pcan_usb
 
struct peak_usb_adapter pcan_usb_pro
 

Macro Definition Documentation

#define PCAN_USB_DRIVER_NAME   "peak_usb"

Definition at line 29 of file pcan_usb_core.h.

#define PCAN_USB_MAX_CHANNEL   2

Definition at line 36 of file pcan_usb_core.h.

#define PCAN_USB_MAX_CMD_LEN   32

Definition at line 39 of file pcan_usb_core.h.

#define PCAN_USB_MAX_RX_URBS   4

Definition at line 32 of file pcan_usb_core.h.

#define PCAN_USB_MAX_TX_URBS   10

Definition at line 33 of file pcan_usb_core.h.

#define PCAN_USB_PRODUCT_ID   0x000c

Definition at line 26 of file pcan_usb_core.h.

#define PCAN_USB_STATE_CONNECTED   0x00000001

Definition at line 99 of file pcan_usb_core.h.

#define PCAN_USB_STATE_STARTED   0x00000002

Definition at line 100 of file pcan_usb_core.h.

#define PCAN_USB_VENDOR_ID   0x0c72

Definition at line 23 of file pcan_usb_core.h.

#define PCAN_USBPRO_PRODUCT_ID   0x000d

Definition at line 27 of file pcan_usb_core.h.

Function Documentation

void pcan_dump_mem ( char prompt,
void p,
int  l 
)

Definition at line 56 of file pcan_usb_core.c.

void peak_usb_async_complete ( struct urb urb)

Definition at line 604 of file pcan_usb_core.c.

void peak_usb_get_ts_tv ( struct peak_time_ref time_ref,
u32  ts,
struct timeval tv 
)

Definition at line 144 of file pcan_usb_core.c.

void peak_usb_init_time_ref ( struct peak_time_ref time_ref,
struct peak_usb_adapter adapter 
)

Definition at line 67 of file pcan_usb_core.c.

void peak_usb_restart_complete ( struct peak_usb_device dev)

Definition at line 595 of file pcan_usb_core.c.

void peak_usb_set_ts_now ( struct peak_time_ref time_ref,
u32  ts_now 
)

Definition at line 112 of file pcan_usb_core.c.

void peak_usb_update_ts_now ( struct peak_time_ref time_ref,
u32  ts_now 
)

Definition at line 94 of file pcan_usb_core.c.

Variable Documentation

Definition at line 857 of file pcan_usb.c.

struct peak_usb_adapter pcan_usb_pro

Definition at line 993 of file pcan_usb_pro.c.