Technical reference
22
© 2005 Pico Technology Limited. All rights reserved.
USBTC08044-2
3.3.2.10
usb_tc08_get_last_error
short usb_tc08_get_last_error (short handle)
This routine returns the last error for the unit specified by handle. If zero is passed instead
of a handle, the function returns the error associated with the last call to
Note: If an invalid handle is passed to a function, the function will fail. The error code,
however, cannot be associated with a unit so
retain an error code in this instance.
invalid handle is passed to it.
The error codes, also found in the C header file, are as follows:
User/Developer error codes:
USBTC08_ERROR_OS_NOT_SUPPORTED
Need to use Windows 98 SE
(or later) or Windows 2000 (or
USBTC08_ERROR_NO_CHANNELS_SET
USBTC08_ERROR_INVALID_PARAMETER
One or more of the function
USBTC08_ERROR_VARIANT_NOT_SUPPORTE
The hardware version is not
supported. Download the latest
USBTC08_ERROR_INCORRECT_MODE
An incompatible mix of legacy
and non-legacy functions was
USBTC08_ERROR_ENUMERATION_INCOMPL
background enumeration was
Note: For more details on error codes, see