2.3.3 PHY_Reset Function

C

PHY_Retval_t PHY_Reset( bool setDefaultPibs )

Summary

Resets the PHY Layer

Description

This function is called to Resets PHY state machine and sets the default PIB values if requested

Precondition

PHY_Init() should have been called before calling this function

Parameters

ParamDescription
setDefaultPibsDefines whether PIB values need to be set to its default values

Returns

PHY_SUCCESS - If the transceiver state is changed to TRX_OFF and PIBs are set to their default value

PHY_FAILURE - Otherwise

Example

PHY_Retval_t retVal = PHY_FAILURE;
bool setDefault = false;

retVal = PHY_Reset(setDefault);
if (PHY_SUCCESS =! retVal)
{
    while(1);
}

Remarks

None