1.5.3.9 PAL_RF_GetRfPhyPib Function
C
PAL_RF_PIB_RESULT PAL_RF_GetRfPhyPib(PAL_RF_HANDLE handle, PAL_RF_PIB_OBJ *pibObj);
Summary
Gets value of RF PHY PIB attribute.
Description
This routine allows a client to get the value of a RF PHY Information Base (PIB) attribute from 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 read. PIB object includes a data buffer where the read value is stored. |
Returns
Result of getting 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_FW_VERSION; if (PAL_RF_GetRfPhyPib(palRfHandle, &pibObj) == PAL_RF_PIB_SUCCESS) { uint8_t size = PAL_RF_GetRfPhyPibLength(palRfHandle, PAL_RF_PIB_PHY_FW_VERSION); // The value is stored in pibObj.pData array }
Remarks
None.