Constants (GVL) ¶ InOut: Scope Name Type Initial Comment Constant gc_hINVALID HANDLE 0 Invalid Handle gc_pNULL PVOID 0 Invalid Pointer gc_szZERO SIZE 0 Invalid Size gc_ctMAX_COUNT COUNT -1 Invalid Counter Value gc_idMAX_IDENT IDENT -1 Invalid Key Value
System (GVL) ¶ InOut: Scope Name Type Initial Comment Constant gc_eENDIANESS ENDIANESS ENDIANESS.LITTLE The endianness of a this system gc_eSYSTYPE SYSTYPE SYSTYPE.MEDIUM The type system of this system
GlobalVariables ¶ Architecture (GVL)
Architecture (GVL) ¶ InOut: Name Type Initial Comment g_eENDIANESS ENDIANESS CalcEndianess() The endianness of a this system g_eSYSTYPE SYSTYPE CalcSystemType() The system type of this system
Helper Fuctions ¶ The exchange of data between different tasks can be carried out with the functions (Message Passing) of the CAA_MemBlockManager ( MBM.MsgSend , MBM.MsgReceive ). Alternatively the jobs of different tasks on shared memory can be coordinated with the following functions or function blocks. These functions are to protect short code sections against simultaneous access of other IEC tasks (e.g. the consistent reallocation of pointers). This function uses a central semaphore and is based on the macros CAA_ENTER_LOCK and CAA_LEAVE_LOCK in the runtime system. As a consequence, a caller is really blocked. These functions are only meant for library developers and therefore have the attribute hide . TaskLock (Function) TaskUnlock (Function)
TaskLock (FUN) ¶ FUNCTION TaskLock : ERROR This call blocks the calling task until the respective code section is free. InOut: Scope Name Type Return TaskLock ERROR Input xDummy BOOL
TaskUnlock (FUN) ¶ FUNCTION TaskUnlock : ERROR This call unlocks a code section formally blocked with TaskLock. InOut: Scope Name Type Return TaskUnlock ERROR Input xDummy BOOL
Types ¶ COUNT (Alias) DURATION (Alias) FILENAME (Alias) FLOAT (Alias) HANDLE (Alias) IDENT (Alias) PVOID (Alias) SIGNED (Alias) SIZE (Alias) TICK (Alias) UNSIGNED (Alias)
COUNT (ALIAS) ¶ TYPE COUNT : __UXINT Realize a target specific data type for handlig counter values.
DURATION (ALIAS) ¶ TYPE DURATION : TIME Realize a general data type for handlig durations.