1.2.4.4.5 SRV_PVDDMON_CheckWindow Function
C
bool SRV_PVDDMON_CheckWindow(void);
Summary
Allows a client to check if the current ADC value is between correct threshold levels to be able to transmit through PLC.
Description
Allows a client to check if the current ADC value is between correct threshold levels to be able to transmit through PLC. Threshold levels are obtained from the MCC.
Precondition
Function SRV_PVDDMON_Start must have been called before calling this function.
Parameters
None.
Returns
True if the current ADC level is correct. Otherwise, false.
Example
if (SRV_PVDDMON_CheckWindow())
{
DRV_PLC_PHY_EnableTX(appData.drvPlcHandle, true);
appData.pvddMonTxEnable = true;
}
else
{
DRV_PLC_PHY_EnableTX(appData.drvPlcHandle, false);
appData.pvddMonTxEnable = false;
}
Remarks
None.
