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
23 int mass_stor_init(void);
24 int mass_stor_disconnect(int devId
);
25 int mass_stor_connect(int devId
);
26 int mass_stor_probe(int devId
);
27 int mass_stor_readSector(unsigned int lba
, int nsectors
, unsigned char* buffer
);
28 int mass_stor_writeSector(unsigned int lba
, int nsectors
, unsigned char* buffer
);
29 int mass_stor_configureDevice(void);
30 int mass_stor_ReadCD(unsigned int lsn
, unsigned int nsectors
, void *buf
, int part_num
);