I am frustrated from ME's implementation of this library.
- why do I need to call the USBHost_Main() function endlessly?
- what is this function doing?
- who launches the USBHost_MSCApplication()?
- when is USBHost_MSCApplication lunched?
- Do i have to implement the actual code within this function or it is used to monitor the assistance of USB stick
and the code ( for example reading from or writing to a file) can be implemented and called from another function?
USB HOST library
Re: USB HOST library
hi,
just to make the whole story simple
I need to read/write to USB stick and identify when the stick is connected/disconnected.
All the headache concerning the call to USBHost_Main() is not clear.
just to make the whole story simple
I need to read/write to USB stick and identify when the stick is connected/disconnected.
All the headache concerning the call to USBHost_Main() is not clear.
Re: USB HOST library
Hi,
i.e. it enumerates the device and processes the USB Host stack.
Regards,
Filip.
The library is designed in this way, so you must put this function into endless loop.why do I need to call the USBHost_Main() function endlessly?
This function ensures that the communication with the device will be performed in the proper way,what is this function doing?
i.e. it enumerates the device and processes the USB Host stack.
The USBHost_Main() launches this function.who launches the USBHost_MSCApplication()?
This function is launched when enumeration of MS device and initialization of MS interface is finished.when is USBHost_MSCApplication lunched?
Yes, you will need to implement it in your code, in the similar way that we done in the example.Do i have to implement the actual code within this function or it is used to monitor the assistance of USB stick
Regards,
Filip.