1.3.3.4 PAL_Status Function
C
PAL_STATUS PAL_Status (void)
Summary
Returns status of the specific instance of the PAL module.
Description
This function returns the status of the specific PAL module instance.
Parameters
None.
Returns
Returns the status of the Meters And Mores PAL module.
- PAL_STATUS_UNINITIALIZED: PAL module has not been initialized.
- PAL_STATUS_BUSY: PAL module is performing initialization duties.
- PAL_STATUS_READY: PAL module is ready to be used.
- PAL_STATUS_ERROR: PAL module is in an error status and needs to be reinitialized.
Example
PAL_STATUS palStatus;
palStatus = PAL_Status();
if (palStatus == PAL_STATUS_READY)
{
}
Remarks
The upper layer must ensure that PAL_Status returns PAL_STATUS_READY before performing PAL operations.
