1.4.3.28 PAL_SetAGC Function

C

uint8_t PAL_SetAGC(uint16_t pch, uint8_t mode, uint8_t gain);

Summary

Set the automatic gain mode of the PHY PLC layer.

Description

This routine is used to set Automatic Gain Mode (AGC) of the PHY PLC layer.

Precondition

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

Parameters

ParamDescription
pchPhysical channel
modeAuto/Manual mode (auto mode(0), manual mode(1))
gainInitial receiving gain in auto mode

Returns

PAL_CFG_SUCCESS - If successful

PAL_CFG_INVALID_INPUT - If unsuccessful

Example

 
    uint8_t result=PAL_CFG_SUCCESS;
    uint8_t mode=0;
    uint8_t gain=0;
    uint16_t pch=1;

    result = PAL_SetAGC(pch, mode, gain);

Remarks

Not available for PHY Serial and PHY RF.