int eth32_set_timeout(eth32 handle, unsigned int timeout);
This function is used to set the internal API timeout on any functions that require a response from the ETH32 device (for example, eth32_input_byte). If a function does not receive a reply within the timeout period specified, it returns the ETH_TIMEOUT error. This function does not affect the actual ETH32 device, but just the functionality within the API itself. This function does not affect any other open handles to devices.
handle - The handle value returned by the eth32_open function.
timeout - Specifies the timeout in milliseconds. A value of zero means that functions should never time out.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.