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
Param | Description |
---|---|
handle | A valid handle, returned from PAL_RF_HandleGet. |
pibObj | Pointer to PIB object to indicate the PIB attribute to write. PIB object includes a data buffer with the new value to write. |
Returns
Result of setting the PIB (see PAL_RF_PIB_RESULT).
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.