1.5.3.10 PAL_RF_SetRfPhyPib Function

C

PAL_RF_PIB_RESULT PAL_RF_SetRfPhyPib(PAL_RF_HANDLE handle, PAL_RF_PIB_OBJ *pibObj);

Summary

Sets value of RF PHY PIB attribute.

Description

This routine allows a client to set the value of a RF PHY Information Base (PIB) attribute in the RF PHY layer.

Precondition

PAL_RF_HandleGet must have been called to obtain a valid RF PAL handle.

Parameters

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

Example

PAL_RF_HANDLE palRfHandle; // returned from PAL_RF_HandleGet
PAL_RF_PIB_OBJ pibObj;

pibObj.pib = PAL_RF_PIB_PHY_CHANNEL_NUM;
pibObj.pData[0] = 1;

if (PAL_RF_SetRfPhyPib(palRfHandle, &pibObj) == PAL_RF_PIB_SUCCESS)
{
    // PIB set successfully
}

Remarks

None.