Poly_Eval (FUN) ¶ FUNCTION Poly_Eval : BOOL Evaluates a polynomial a[0] + … + a[iN]*x^iN InOut: Scope Name Type Comment Input pa POINTER TO SM3M.SMC_Vec The coefficient vector, containing iN+1 coefficients iN DINT The degree of the polynomial, must be at least 3 dx LREAL The place of evaluation Inout v SM3M.SMC_Vec Return Poly_Eval BOOL
Poly_EvalDerivs (FUN) ¶ FUNCTION Poly_EvalDerivs : BOOL Evaluates a polynomial a[0] + … + a[iN]*x^iN and its three derivatives InOut: Scope Name Type Comment Input pa POINTER TO SM3M.SMC_Vec The coefficient vector, containing iN+1 coefficients iN DINT The degree of the polynomial, must be non-negative dx LREAL The place of evaluation Inout v DynVState Return Poly_EvalDerivs BOOL
VPoly (STRUCT) ¶ TYPE VPoly : STRUCT Polynomial with vector-valued coefficients InOut: Name Type Comment ad ARRAY [0..MAX_VPOLY_DEG] OF SM3M.SMC_Vec The coefficients: ad[0] is the constant term, ad[deg] is the factor of x^deg. Note: ad[deg] <> 0 must hold if deg > 0. deg UDINT 0 <= deg <= MAX_VPOLY_DEG must hold
VPoly5_Create (FUN) ¶ FUNCTION VPoly5_Create : BOOL InOut: Scope Name Type Return VPoly5_Create BOOL Inout p VPoly r0 DynVState r1 DynVState
VPoly_Add (FUN) ¶ FUNCTION VPoly_Add : BOOL Adds two vector-valued polynomials. InOut: Scope Name Type Return VPoly_Add BOOL Inout dst VPoly Inout Const lhs VPoly rhs VPoly
VPoly_Create (FUN) ¶ FUNCTION VPoly_Create : BOOL InOut: Scope Name Type Return VPoly_Create BOOL Inout dst VPoly Input pv POINTER TO SM3M.SMC_Vec nDeg UDINT
GenericQueue.IsEmpty (METH) ¶ METHOD FINAL IsEmpty : BOOL Returns whether the queue is currently empty. task-safety: may be called from both tasks InOut: Scope Name Type Return IsEmpty BOOL
GenericQueue.NumElems (METH) ¶ METHOD FINAL NumElems : UDINT Returns the number of elements currently in the queue. task-safety: may be called from both tasks InOut: Scope Name Type Return NumElems UDINT
GenericQueue.RemoveAll (METH) ¶ METHOD FINAL RemoveAll Removes all elements of the queue and resets the end of data flag. Invalidates the pointer returned by a prior call to GetFirst. task-safety: call from consumer task only
GenericQueue.RemoveFirst (METH) ¶ METHOD FINAL RemoveFirst : BOOL Removes the first element of the queue. Invalidates the pointer returned by a prior call to GetFirst. task-safety: call from consumer task only InOut: Scope Name Type Return RemoveFirst BOOL