1.2.6 PRIME_Status Function

C

SYS_STATUS PRIME_Status(void)

Summary

Gets the current status of the PRIME Stack.

Description

This routine provides the current status of the PRIME Stack.

Precondition

PRIME_Initialize routine must have been called before.

Parameters

None.

Returns

SYS_STATUS_READY: Indicates that the PRIME Stack is ready and accepts requests for new operations.

SYS_STATUS_UNINITIALIZED: Indicates the PRIME Stack is not initialized.

SYS_STATUS_ERROR: Indicates the PRIME Stack is not initialized correctly.

SYS_STATUS_BUSY: Indicates the PRIME Stack is initializing.

Example

PRIME_STACK_INIT initData;

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

if (PRIME_Status() == SYS_STATUS_READY)
{

}

Remarks

None.