1.4.3.9 PAL_PLC_SetMacRtPib Function

C

PAL_PLC_PIB_RESULT PAL_PLC_SetMacRtPib(PAL_PLC_HANDLE handle, MAC_RT_PIB_OBJ *pibObj);

Summary

Sets value of G3 MAC-RT or G3 PHY PIB attribute.

Description

This routine allows a client to set information to PLC transceiver on MAC-RT and PHY information base (PIB).

Precondition

PAL_PLC_HandleGet must have been called to obtain a valid PLC PAL handle.

Parameters

ParamDescription
handleA valid handle, returned from PAL_PLC_HandleGet.
pibObjPointer to PIB object to indicate the PIB to write. PIB object includes a data buffer to write the new value.

Example

// 'palPlcHandle', returned from the PAL_PLC_HandleGet
MAC_RT_PIB_OBJ pibObj;

pibObj.pib = MAC_RT_PIB_PAN_ID;
pibObj.index = 0;
pibObj.length = 2;
pibObj.pData[0] = 0x12;
pibObj.pData[1] = 0x34;

if (PAL_PLC_SetMacRtPib(palPlcHandle, &pibObj) == PAL_PLC_PIB_SUCCESS)
{
    // PIB has been written successfully
}

Remarks

None.