SMC_TokenQueue.GetFromStart (METH)

METHOD GetFromStart : POINTER TO SMC_Token

Returns a pointer to the n-th token if the queue is at least n token, otherwise 0. The pointer is valid until the next call to RemoveFirst. Only to be called safely from the reading task, or when it is made sure that no elements are removed concurrently.

InOut:

Scope

Name

Type

Input

n

UDINT

Return

GetFromStart

POINTER TO SMC_Token