1.4.3.17 PAL_Status Function

C

SYS_STATUS PAL_Status(SYS_MODULE_OBJ object);

Summary

Gets the current status of the PAL module.

Description

This routine provides the current status of the PAL module.

Precondition

The PAL_Initialize function should have been called before calling this function.

Parameters

ParamDescription
objectIdentifier for the object instance

Returns

SYS_STATUS_READY: Indicates that the driver is ready and accept requests for new operations.

SYS_STATUS_UNINITIALIZED: Indicates the driver is not initialized.

SYS_STATUS_ERROR: Indicates the driver is not initialized correctly.

SYS_STATUS_BUSY: Indicates the driver is initializing.

Example

 
    SYS_MODULE_OBJ sysObjPal;
    sysObjPal = PAL_Initialize(PRIME_PAL_INDEX);
    SYS_STATUS status;

    status = PAL_Status(sysObjPal);

Remarks

None