CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Error code Enumeration. Error codes from 0x01 to 0xFF are related to a CopperLan functions return code (see Errors Enumeration in CLC_Enums.h). Other values are related to CHAI Link.

  • For Boolean return code, TRUE is CLC_ErrorCode_Success (or ERR_None) and FALSE is ERR_Failed.
  • For Errors return codes returned by CHAI methods, the code is returned itself.
    Remarks
    The origin of the error (CHAI or CHAI Link) can simply be detected by testing the MSB of the error code (16 bits).
Enumerator
CLC_ErrorCode_Success 
CLC_ErrorCode_CPErrorsReserved 
CLC_ErrorCode_General_MissingARHCallback 
CLC_ErrorCode_General_MissingNHCallback 
CLC_ErrorCode_General_UnknownModule 
CLC_ErrorCode_General_FunctionNotRecognized 
CLC_ErrorCode_General_BadPayloadSize 
CLC_ErrorCode_General_BadFunctionReturn 
CLC_ErrorCode_General_AlreadyProcessingAsync 
CLC_ErrorCode_General_DataToLarge 
CLC_ErrorCode_General_CannotCallFromSystem 
CLC_ErrorCode_General_InvalidHandle 
CLC_ErrorCode_General_NotConnected 
CLC_ErrorCode_General_LowResources 
CLC_ErrorCode_General_ArrayTooLarge 
CLC_ErrorCode_General_InvalidParameter 
CLC_ErrorCode_CHAI_InvalidDuplicateNumber 
CLC_ErrorCode_LovalDevice_DeviceTypeNotSupported 
CLC_ErrorCode_Client_TransportWriteFailed 
CLC_ErrorCode_Client_FunctionReturnTimeout 
CLC_ErrorCode_Server_ObjectTypeUnknown 
CLC_ErrorCode_Server_MemoryAllocation 
CLC_ErrorCode_Server_EthNotAvailable 
CLC_ErrorCode_Server_EthFrameTooLong 
CLC_ErrorCode_ModuleMask 
CLC_ErrorCode_IndexMask