1.3.4.1.4 MAC_PLC_Status Function

C

SYS_STATUS MAC_PLC_Status
(
    void
);

Summary

The MAC_PLC_Status primitive retrieves the Status of PLC MAC.

Description

This primitive is intended to be called before using PLC MAC layer to ensure it is ready to be used.

Precondition

MAC_PLC_Init must have been called before calling this function.

Parameters

None.

Returns

Status of PLC MAC layer as a SYS_STATUS code.

Example

SYS_STATUS status;
status = MAC_PLC_Status();
if (status == SYS_STATUS_READY)
{
    // MAC is ready to be used
}

Remarks

None.