M
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
9.26. usb_vendreq_done. ........................................................................................9-26
9.27. usb_vendreq_service......................................................................................9-27
9.28. Interface functions..........................................................................................9-28
10. Appendix 1: File Transfer Application............................................10-1
10.1. Introduction....................................................................................................10-1
10.1.1. Important Notes..........................................................................................10-1
10.1.2. Capabilities of File Transfer Application...................................................10-1
10.1.3. Related Files...............................................................................................10-1
10.2. UFTP Protocol Description............................................................................10-2
10.2.1. USB Usage.................................................................................................10-2
10.2.2. Status Values..............................................................................................10-2
10.2.3. UFTP Command Descriptions...................................................................10-3
10.2.3.1. UFTP_READ command: 01h...........................................................................................10-3
10.2.3.2. UFTP_WRITE command: 02h.........................................................................................10-3
10.2.3.3. UFTP_GET_FILE_INFO command: 03h........................................................................10-4
10.2.3.4. UFTP_GET_DIR command: 04h.....................................................................................10-4
10.2.3.5. UFTP_SET_TRANSFER_LENGTH command: 05h.....................................................10-5
10.2.3.6. UFTP_DELETE command: 06h.......................................................................................10-6
10.3. Implementation of File Transfer Application. ...............................................10-7
10.3.1. Initializing the Driver.................................................................................10-7
10.3.2. Program Execution.....................................................................................10-8
10.3.2.1. UFTP_READ command execution..................................................................................10-9
10.3.2.2. UFTP_WRITE command execution..............................................................................10-11
10.3.2.3. UFTP_GET_FILE_INFO command execution.............................................................10-13
10.3.2.4. UFTP_GET_DIR command execution..........................................................................10-13
10.3.2.5. UFTP_SET_TRANSFER_LENGTH command execution..........................................10-14
10.3.2.6. UFTP_DELETE command execution............................................................................10-14
10.3.2.7. Request for string descriptor handling. ..........................................................................10-14
10.4. USB File Transfer Application Function Specification...............................10-17
10.4.1. accept_event.............................................................................................10-19
10.4.2. do_command_delete. ...............................................................................10-20
10.4.3. do_command_get_dir...............................................................................10-21
10.4.4. do_command_get_file_info. ....................................................................10-22
10.4.5. do_command_read...................................................................................10-23
10.4.6. do_command_set_transfer_length. ..........................................................10-24
10.4.7. do_command_write..................................................................................10-25
10.4.8. fetch_command........................................................................................10-26
10.4.9. get_string_descriptor................................................................................10-27
10.4.10. read_file...............................................................................................10-28
10.4.11. write_file..............................................................................................10-29
11. Appendix 2: Audio Application. .....................................................11-1
11.1. Introduction....................................................................................................11-1
11.1.1. Important Notes..........................................................................................11-1
11.1.2. Capabilities of the Audio Application. ......................................................11-1
11.1.3. Related Files...............................................................................................11-1
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...