USB HOST DRIVER V03 Freescale Semiconductor / Motorola, USB HOST DRIVER V03 Datasheet - Page 147

no-image

USB HOST DRIVER V03

Manufacturer Part Number
USB HOST DRIVER V03
Description
USB Host Driver v03
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
10.2.
The UFTP library provides the programming interface for communication with a UFTP
Device. The USB file transfer protocol defines the following set of requests:
UFTP_READ
UFTP_WRITE
UFTP_GET_FILE_INFO
UFTP_GET_DIR
UFTP_SET_TRANSFER_LENGTH
UFTP_DELETE
The library encapsulates these requests into C language functions. In this way the library
provides the simplest way to communicate with the UFTP Device. The library use
handles to track the request from different thread contexts. The Client should connect the
UFTP interface and receive a handle ( HUFTP ) in order to perform any library
operation.
Function Name
Uftp_Connect
Uftp_Disconnect
Uftp_SetProgressRoutine
Uftp_SendFile
Uftp_GetFile
Uftp_GetFileInfo
Uftp_ReadDir
Uftp_SetTransferLength
Uftp_DelFile
Uftp_GetLastError
Uftp_GetErrorText
M
Programming interface
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Appendix 4:USB FILE TRANSFER LIBRARY.
Table 10.2 Functions Summary.
Table 10.1 UFTP requests.
Description
Connect the UFTP interface
Disconnect the UFTP interface
Set the progress routine
Send file from Host to Device
Send file from Device to Host
Get file information about particular file on Device
Get directory information
Set maximum transfer length
Delete file from Device
Get the last UFTP error
Get the string message for specified UFTP error
Read file from Device to Host
Write file from Device to Host
Retrieve file information
Retrieve directory structure
Set maximum transfer length
Delete file from the Device
10-2

Related parts for USB HOST DRIVER V03