1.4.3.34 PAL_SetConfiguration Function

C

uint8_t PAL_SetConfiguration(uint16_t pch, uint16_t id, void *val,
    uint16_t length);

Summary

Set PHY attribute.

Description

This function is used to set a PHY attribute in the selected medium.

Precondition

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

Parameters

ParamDescription
pchPhysical channel
idPHY attribute identifier
valInput parameter value
lengthLength of the parameter

Returns

PAL_CFG_SUCCESS - If successful

PAL_CFG_INVALID_INPUT - If unsuccessful

Example

 
    uint8_t result=PAL_CFG_SUCCESS;
    uint16_t id=PAL_ID_CFG_ATTENUATION;
    void val=2;
    uint16_t len=1;
    uint16_t pch = 16;

    result = PAL_SetConfiguration(pch, id, &val, len);

Remarks

Not available for PHY Serial.