M
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
8.6. usb_ep_unhalt......................................................................................................8-7
8.7. usb_reset_notice...................................................................................................8-8
9. Appendix 1: File Transfer Application. ................................................9-1
9.1. Introduction..........................................................................................................9-1
9.1.1. Important Notes............................................................................................9-1
9.1.2. Capabilities of File Transfer Application.....................................................9-1
9.1.3. Related Files.................................................................................................9-2
9.2. UFTP Protocol Description..................................................................................9-2
9.2.1. USB Usage...................................................................................................9-2
9.2.2. Status Values................................................................................................9-3
9.2.3. UFTP Command Descriptions.....................................................................9-3
9.2.3.1. UFTP_READ command: 01h..............................................................................................9-3
9.2.3.2. UFTP_WRITE command: 02h............................................................................................9-4
9.2.3.3. UFTP_GET_FILE_INFO command: 03h...........................................................................9-4
9.2.3.4. UFTP_GET_DIR command: 04h........................................................................................9-5
9.2.3.5. UFTP_SET_TRANSFER_LENGTH command: 05h........................................................9-6
9.2.3.6. UFTP_DELETE command: 06h..........................................................................................9-7
9.3. Implementation of File Transfer Application. .....................................................9-8
9.3.1. Implementation of File System. ...................................................................9-8
9.3.2. Initializing the Driver...................................................................................9-8
9.3.3. Program Execution.......................................................................................9-9
9.3.3.1. UFTP_READ command execution.....................................................................................9-9
9.3.3.2. UFTP_WRITE command execution................................................................................9-12
9.3.3.3. UFTP_GET_FILE_INFO command execution...............................................................9-14
9.3.3.4. UFTP_GET_DIR command execution............................................................................9-14
9.3.3.5. UFTP_SET_TRANSFER_LENGTH command execution............................................9-15
9.3.3.6. UFTP_DELETE command execution..............................................................................9-15
9.3.3.7. Request for string descriptor handling. ............................................................................ 9-15
9.4. USB File Transfer Application Function Specification.....................................9-18
9.4.1. do_command_delete. .................................................................................9-20
9.4.2. do_command_get_dir.................................................................................9-21
9.4.3. do_command_get_file_info. ......................................................................9-22
9.4.4. do_command_read.....................................................................................9-23
9.4.5. do_command_set_transfer_length. ............................................................9-24
9.4.6. do_command_write....................................................................................9-25
9.4.7. fetch_command..........................................................................................9-26
9.4.8. get_string_descriptor..................................................................................9-27
9.4.9. read_file.....................................................................................................9-28
9.4.10. write_file....................................................................................................9-29
10. Appendix 2: Audio Application. .....................................................10-1
10.1. Introduction....................................................................................................10-1
10.1.1. Important Notes..........................................................................................10-1
10.1.2. Capabilities of Audio Application. ............................................................10-1
10.1.3. Related Files...............................................................................................10-1
10.2. Implementation of USB Audio Application..................................................10-2
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...