| EZ-USB FX2 produced by Cypress company is a Single Chip Micyoco with USB interface. This device is wildly used in Digital multimedia, data collection, medicine sanitation and so on.Medicine image technology gradually becomes the essential method for modern diagnose since sciencedeveloped. Medicine Image Process System use a USB device to collect image data, the device use USB to transmit image information, the main chip of this USB device is EZ-USB FX2 which produced by Cypress company. The intent of This dissertation is to design and implement EZ-USB FX2 device driver in Windows CE and this will lay a foundation for transplant Medicine Image Process System from PC Windows to embedded Windows CE.We use EBOX-II as our hardware platform to run Windows CE, use platform builder 5.0 to create operating system, use C language to develop the device driver. First, we analyse the Windows CE operating system, then tailor a proper windows CE Operating System image for device driver development. We design the implementation blue print for EZ-USB FX2 device driver According to Windows CE driver model.The device driver can be accessed by File System APIs after implementing the stream interface functions. All the call back functions provided by USB bus driver module are implemented, so the device driver can be installed, loaded and unloaded successfully. The operation for getting descriptors and configuring device are implemented. The function for pipe establishment and data transfer are implemented too. This dissertation analyse the memory layout of EZ-USB FX2 then implement the firmware download. |