SMC_TokenQueue.GetFromEnd (METH)ΒΆ
METHOD GetFromEnd : POINTER TO SMC_Token
Returns a pointer to the n-last token, or 0 if the queue has less than n+1 tokens.
The pointer is valid until the next call to RemoveFirst
.
Only to be called safely from the writing task, or when it is made sure that
no tokens are added concurrently.
- InOut:
Scope
Name
Type
Input
n
UDINT
Return
GetFromEnd
POINTER TO SMC_Token