USB Library
USBHostSetNAKTimeout Function
Syntax
uint8_t USBHostSetNAKTimeout(
    uint8_t deviceAddress, 
    uint8_t endpoint, 
    uint16_t flags, 
    uint16_t timeoutCount
);
Description

This function is used to set whether or not an endpoint on a device should time out a transaction based on the number of NAKs received, and if so, how many NAKs are allowed before the timeout.

Preconditions

None

Return Values
Return Values 
Description 
USB_SUCCESS 
NAK timeout was configured successfully. 
USB_UNKNOWN_DEVICE 
Device not found. 
USB_ENDPOINT_NOT_FOUND 
The specified endpoint was not found. 
Remarks

None

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