31 #define _CLTP_CLIENTMODE
77 #ifdef ENABLE_RUNTIMECHECK
78 #define CHECK_INSYSTEMPROCESS() if (!(g_CLCWD.eStatus & CLCS_InCPProcess)) \
79 return CLC_ErrorCode_General_CannotCallFromSystem;
81 #define CHECK_INSYSTEMPROCESS()
98 CPBOOLEAN
const fKeepAliveActive );
112 #ifdef ENABLE_THREADING
116 #define CLC_RequestProcessing()
142 #define CLC_FUNCTIONRETURN_TIMEOUTMS (5000000)
161 CLCS_CLTPConnected = 0x0001,
162 CLCS_WaitingForRT = 0x0002,
163 CLCS_RTToProcess = 0x0004,
164 CLCS_AHToProcess = 0x0008,
165 CLCS_InCPProcess = 0x0010,
166 CLCS_NotifyConnectionStateChanged = 0x0020,
167 CLCS_StopRequired = 0x0040
175 CLTP_Working CLTPVariables;
191 volatile CLC_Status eStatus;
194 #if defined(ENABLE_ETHERNET_PASSTHRU)
195 CPBYTE arbAHBufferT[
sizeof(
CPUINT16) + CLMSG_ETHERNETFRAMEMAXSIZE + 3];
197 CPBYTE arbAHBufferT[CLMSG_PAYLOADMAXSIZE + 3];
200 CPBYTE arbRTBufferT[CLMSG_PAYLOADMAXSIZE + 3];
203 extern CLC_WorkingData g_CLCWD;
216 #endif // _CLC_MAIN_H_
CPBOOLEAN CLC_Init(CLC_Callbacks const *const pCB, CLT_Interface const *const pTransportInterface, CPBOOLEAN const fKeepAliveActive)
CHAILink Client Initialization.
Container structure for Section ID Each Input is associated to a SectionID giving information about i...
Definition: CLC_Types.h:67
CPBOOLEAN CLC_IsInitialized(void)
Check if the CHAILink is initialized.
CLC_ErrorCode
Error code Enumeration. Error codes from 0x01 to 0xFF are related to a CopperLan functions return cod...
Definition: CLCm_Defines.h:469
void CLC_CallSystemDoProcess(void)
Call the SystemDoProcess This API enables external components to call the SystemDoProcess. For instance the transport that should perform send request synchronously can call this function in order that the system continues processing others IO while the transport is waiting for an event.
CPBOOLEAN CLC_StopScheduler(void)
CHAILink Client Scheduler stop This function allows the internal scheduler to stop.
CPBOOLEAN CLC_IsReady(void)
Check if the CHAILink is ready.
Container structure for Parameter ID. Knowing a ParameterID and its owning Device gives enough inform...
Definition: CLC_Types.h:76
Container structure for Endpoint.
Definition: CLC_Types.h:48
Container structure for Device ID.
Definition: CLC_Types.h:39
Structure containing all CHAILink client callbacks.
Definition: CLC_Callbacks.h:1988
CPBOOLEAN CLC_StartScheduler(void)
CHAILink Client Scheduler start.
CPUINT32 CPHOBJECT
Handle on Object.
Definition: CLCm_Types.h:57
CHAI Link Transport Interface.
Definition: CLCm_Transport.h:82
#define CLC_RequestProcessing()
Definition: CLC_Main.h:116
void CLC_DoProcess(void)
CHAILink Client DoProcess.