USB Library
MSDTransferTerminated Function
Syntax
void MSDTransferTerminated(
    USB_HANDLE handle
);
Description

Check if the host recently did a clear endpoint halt on the MSD OUT endpoint. In this case, we want to re-arm the MSD OUT endpoint, so we are prepared to receive the next CBW that the host might want to send.

Preconditions

A transfer was terminated. This should be called from the transfer terminated event handler.

Remarks

If however the STALL was due to a CBW not valid condition, then we are required to have a persistent STALL, where it cannot be cleared (until MSD reset recovery takes place). See MSD BOT specs v1.0, section 6.6.1. 

None

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla