cusb.h
1 /*** FX2FW Ver1.00 by OPTIMIZE ***/
2 //#include "c:\cypress\usb\drivers\ezusbdrv\ezusbsys.h"
3 
4 #define IOCTL_Ezusb_GET_STRING_DESCRIPTOR 0x222044
5 #define IOCTL_Ezusb_ANCHOR_DOWNLOAD 0x22201c
6 #define IOCTL_Ezusb_VENDOR_REQUEST 0x222014
7 #define IOCTL_EZUSB_BULK_WRITE 0x222051
8 #define IOCTL_EZUSB_BULK_READ 0x22204e
9 #define IOCTL_Ezusb_RESETPIPE 0x222035
10 
12  UCHAR direction;
13  UCHAR requestType;
14  UCHAR recepient;
15  UCHAR requestTypeReservedBits;
16  UCHAR request;
17  USHORT value;
18  USHORT index;
20 
21 typedef struct _GET_STRING_DESCRIPTOR_IN {
22  UCHAR Index;
23  USHORT LanguageId;
25 
26 typedef struct _VENDOR_REQUEST_IN {
27  BYTE bRequest;
28  WORD wValue;
29  WORD wIndex;
30  WORD wLength;
31  BYTE direction;
32  BYTE bData;
34 
35 typedef struct _BULK_TRANSFER_CONTROL {
36  ULONG pipeNum;
38 
39 typedef struct _BULK_LATENCY_CONTROL {
40  ULONG bulkPipeNum;
41  ULONG intPipeNum;
42  ULONG loops;
44 
45 typedef unsigned char u8;
46 typedef signed char s8;
47 typedef unsigned short int u16;
48 typedef signed short int s16;
49 typedef unsigned int u32;
50 typedef signed int s32;
51 
52 #define CUSB_DEBUG 0
53 #define CUSB_DWLSIZE 0x2000
54 
55 s32 usb_open(s32 n,HANDLE *h);
56 s32 usb_close(HANDLE *h);
57 s32 usb_halt(HANDLE *h);
58 s32 usb_run(HANDLE *h);
59 s32 usb_dwnload(HANDLE *h,u8 *image,s32 len);
60 s32 usb_resetpipe(HANDLE *h,ULONG p);
61 s32 usb_bulk_write(HANDLE *h,s32 pipe,u8 *buf,s32 len);
62 s32 usb_bulk_read(HANDLE *h,s32 pipe,u8 *buf,s32 len);
63 s32 cusb_init(s32 n,HANDLE *h,u8 *fw,s8 *str1,s8 *str2);

Generated for KAME4 by  doxygen 1.8.3