1.4.3.30 PAL_GetChannel Function

C

uint8_t PAL_GetChannel(uint16_t *pPch, uint16_t channelReference);

Summary

Get the band (PLC) or the pch (RF).

Description

This routine is used to get the pch or band used for the communication.

Precondition

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

Parameters

ParamDescription
pchPhysical channel
channelReferencePhysical channel in the same channels range

Returns

PAL_CFG_SUCCESS - If successful

PAL_CFG_INVALID_INPUT - If unsuccessful

Example

 
    uint8_t result=PAL_CFG_SUCCESS;
    uint16_t pPch=0;
    uint16_t channelRef=1;

    result = PAL_GetChannel(&pch, channelRef);

Remarks

Not available for PHY Serial.