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

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.2. Types used in library.
10.2.2.1.
Definition:
typedef void (*PROGRESS_ROUTINE)(PPROGRESS_STRUCT);
10.2.2.2.
Definition:
typedef struct {
} PROGRESS_STRUCT, *PPROGRESS_STRUCT;
Members:
eventCode
Can be one of the following constant:
param
Misc. parameter that the Client specifies in
parameter.
timeMs
Time in milliseconds since transfer operation started.
bytesDone
Transferred bytes count.
BytesTotal
Total bytes count to transmit.
Comments:
This structure is used by the progress callback routine. The UFTP library calls the
progress routine when it has to transfer results, and puts the pointer to this structure as a
parameter. In this way the UFTP Client by using
retrieve notifications of progress results.
M
BYTE
LPVOID param;
DWORD timeMs;
DWORD bytesDone;
DWORD bytesTotal;
EVENT_START
EVENT_STOP
EVENT_UPDATE - operation has progress
eventCode;
PROGRESS_ROUTINE
PROGRESS_STRUCT
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Appendix 4:USB FILE TRANSFER LIBRARY.
- operation starts
- operation stops
Uftp_SetProgressRoutine
Uftp_SetProgressRoutine
param
can
10-14

Related parts for USB HOST DRIVER V03