PoolCreateH (FUN) ¶ FUNCTION PoolCreateH : CAA.HANDLE Take a pool of ctNumBlocks * szBlockSize bytes from the Heap(OS) and build a block pool InOut: Scope Name Type Return PoolCreateH CAA.HANDLE Input ctNumBlocks CAA.COUNT szBlockSize CAA.SIZE eEmpty CB.EVENT peError POINTER TO ERROR
PoolCreateP (FUN) ¶ FUNCTION PoolCreateP : CAA.HANDLE Take as much as possible block of szBlockSize bytes from a PLC(IEC) provided memory and build a block pool InOut: Scope Name Type Return PoolCreateP CAA.HANDLE Input szBlockSize CAA.SIZE szMemSize CAA.SIZE pMemory CAA.PVOID eEmpty CB.EVENT peError POINTER TO ERROR
PoolDelete (FUN) ¶ FUNCTION PoolDelete : ERROR Deletes a block pool created by PoolCreateX provided that all blocks are free If a block is in use, this call aborts InOut: Scope Name Type Return PoolDelete ERROR Input hPool CAA.HANDLE
PoolExtendH (FUN) ¶ FUNCTION PoolExtendH : ERROR InOut: Scope Name Type Return PoolExtendH ERROR Input hPool CAA.HANDLE ctNumBlocks CAA.COUNT
PoolGetBlock (FUN) ¶ FUNCTION PoolGetBlock : CAA.HANDLE Gets the next available block from hPool and returns ist handle InOut: Scope Name Type Return PoolGetBlock CAA.HANDLE Input hPool CAA.HANDLE peError POINTER TO ERROR
PoolGetSize (FUN) ¶ FUNCTION PoolGetSize : CAA.SIZE InOut: Scope Name Type Return PoolGetSize CAA.SIZE Input ctNumBlock CAA.COUNT szBlockSize CAA.SIZE
PoolPutBlock (FUN) ¶ FUNCTION PoolPutBlock : ERROR Clears the block owner and returns hBlock to its pool InOut: Scope Name Type Return PoolPutBlock ERROR Input hBlock CAA.HANDLE
Ready List ¶ RLstAddPrio (Function) RLstCheckPrio (Function) RLstCreateH (Function) RLstCreateP (Function) RLstDelete (Function) RLstGetHighestPrio (Function) RLstGetSize (Function) RLstRemovePrio (Function)
RLstAddPrio (FUN) ¶ FUNCTION RLstAddPrio : ERROR Add the priroity level usiPrio to the ready list InOut: Scope Name Type Comment Return RLstAddPrio ERROR Input hRLst CAA.HANDLE usiPrio USINT [0..63] Priotity Level
RLstCheckPrio (FUN) ¶ FUNCTION RLstCheckPrio : BOOL return TRUE if the priority level usiPrio is part of the ready list InOut: Scope Name Type Comment Return RLstCheckPrio BOOL Input hRLst CAA.HANDLE usiPrio USINT [0..63] priority level. peError POINTER TO ERROR