SysMCBDGetNextID (FUN)
FUNCTION SysMCBDGetNextID : UDINT
CpuCoreBindingDesc helper function
SysMCBDGetNextID returns the CoreId (i.e. the position) of the next set bit in CpuCoreBindingDesc.CpuCoreBits.
- InOut:
Scope
Name
Type
Comment
Return
SysMCBDGetNextIDUDINTReturns a valid CoreId if ERR_OK, otherwise the result is undefined.
Input
pBindingDescPOINTER TO CpuCoreBindingDesc
Pointer to the description of the core binding.
uPrevCoreIDUDINTCoreId found by SysMCBDGetFirstID or a previous call of SysMCBDGetNextID.
pResultPOINTER TO RTS_IEC_RESULT
- Pointer to a variable to return an error code.
ERR_OK: Next found CoreId is returned.
ERR_PARAMETER: CpuCoreBindingDesc is invalid pointer.
ERR_END_OF_OBJECT: No more cores were set.