1.2.3 PRIME_Tasks Function

C

void PRIME_Tasks
(
  SYS_MODULE_OBJ object
)

Summary

Maintains the PRIME Stack State Machine.

Description

This routine maintains the PRIME Stack State Machine.

Precondition

PRIME_Initialize routine must have been called before, and its returned object used when calling this function.

Parameters

ParamDescription
objectIdentifier for the object instance

Returns

None.

Example

PRIME_STACK_INIT initData;
SYS_MODULE_OBJ sysObjPrime;

sysObjPrime = PRIME_Initialize(PRIME_INDEX_0, (SYS_MODULE_INIT *)&initData);

while (true)
{
    PRIME_Tasks(sysObjPrime);
}

Remarks

This routine must be called periodically.