4.4.7.2.3 USB_TransferHandler()

RETURN_CODE_t USB_TransferHandler (void )

Handles the different types of packages received or transferred.

Checks if a setup package is received or if a transaction is completed and which pipe has a completed transaction, then it handles them accordingly. Sends an ACK upon completed transaction confirmation.

Parameters:
None.
Returns:

SUCCESS or an Error code according to RETURN_CODE_t