SRV_PCOUP_Get_Default_Channel Function

C

DRV_PLC_PHY_CHANNEL SRV_PCOUP_Get_Default_Channel(void);

Summary

Get the default PRIME channel.

Description

This function allows to get the PRIME channel used by default, which is configured through MCC of PLC Driver.

Precondition

None.

Parameters

None.

Example

// 'handle', returned from DRV_PLC_PHY_Open
DRV_PLC_PHY_CHANNEL plcDefaultChannel;
DRV_PLC_PHY_PIB_OBJ pibObj;

plcDefaultChannel = SRV_PCOUP_Get_Default_Channel();

pibObj.id = PLC_ID_CHANNEL_CFG;
pibObj.length = 1;
pibObj.pData = &plcDefaultChannel;
DRV_PLC_PHY_PIBSet(handle, &pibObj);
            
SRV_PCOUP_Set_Channel_Config(handle, plcDefaultChannel);

Remarks

This function is only generated by MCC if the PLC Driver uses PRIME PHY.