6 int controlEp
; //config endpoint id
7 int bulkEpI
; //in endpoint id
8 unsigned char bulkEpIAddr
; // in endpoint address
9 int bulkEpO
; //out endpoint id
10 unsigned char bulkEpOAddr
; // out endpoint address
11 int packetSzI
; //packet size in
12 int packetSzO
; //packet size out
13 int devId
; //device id
14 int configId
; //configuration id
16 int interfaceNumber
; //interface number
17 int interfaceAlt
; //interface alternate setting
18 unsigned sectorSize
; // = 512; // store size of sector from usb mass
24 int mass_stor_sectorsize(mass_dev
*dev
);
25 int mass_stor_disconnect(int devId
);
26 int mass_stor_connect(int devId
);
27 int mass_stor_probe(int devId
);
28 int mass_stor_readSector(mass_dev
* mass_device
, unsigned int sector
, unsigned char* buffer
, int size
);
29 int mass_stor_writeSector(mass_dev
* mass_device
, unsigned int sector
, unsigned char* buffer
, int size
);
30 int mass_stor_configureNextDevice(void);