Home |
Media Transfer Protocol Class Driver Structure RTUSBMTPConfig Function USBMTPGetFileProperty Function USBMTPSetFileProperty |
Structure RTUSBMTPConfigThe MTP class driver has a few global options which it reads from structure RTUSBMTPConfig. The default values are given below. Applications can modify selected values before the driver is registered. typedef struct { int MaxDevices; int TaskPriority; int TaskStackSize; int Timeout; int BufferSize; } RTUSB32MTPConfig; RTUSB32MTPConfig RTUSBMTPConfig = { 2, // MaxDevices 0, // TaskPriority; 4*1024, // TaskStackSize; 2000, // Timeout; 64*1024 // BufferSize; }; MaxDevice specifies how many MTP devices may be maintained simultaneously. TaskPriority and TaskStackSize are applied to the thread to manage MTP Events (function USBMTPSetEventCallback). Timeout is the timeout in milliseconds to apply for all communications with an MTP device. BufferSize is the size of the I/O buffer used for each device. BufferSize should be a multiple of 2k. Larger buffers can lead to higher data throughput for functions USBMTPGetFile and USBMTPPutFile.
|