Jump to main content

# SRV_PCOUP_Get_Channel_Config Function

## C

    SRV_PLC_PCOUP_CHANNEL_DATA * SRV_PCOUP_Get_Channel_Config(DRV_PLC_PHY_CHANNEL channel);

## Summary

Get the PLC PHY Coupling parameters for the specified PRIME channel.

## Description

This function allows to get the PLC PHY Coupling parameters for the specified PRIME channel. These parameters can be sent to the PLC device through PLC Driver PIB interface (DRV_PLC_PHY_PIBSet).

## Precondition

None.

## Parameters

Param | Description
--- | ---
channel | PRIME channel (DRV_PLC_PHY_CHANNEL Enum) for which the parameters are requested

## Returns

- Pointer to SRV_PLC_PCOUP_CHANNEL_DATA Struct, containing the PLC PHY Coupling parameters
  - if `channel` parameter is valid
- NULL
  - if `channel` parameter is not valid

## Example

    SRV_PLC_PCOUP_CHANNEL_DATA *pCoupValues;

    pCoupValues = SRV_PCOUP_Get_Channel_Config(SRV_PLC_PCOUP_MAIN_BRANCH);

## Remarks

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

If SRV_PCOUP_Set_Channel_Config function is used to set the PLC PHY Coupling parameters, this function is not needed.

Rev: G