1.1.3.4.14 DRV_RF215_GetPib Function
C
DRV_RF215_PIB_RESULT DRV_RF215_GetPib (
DRV_HANDLE drvHandle,
DRV_RF215_PIB_ATTRIBUTE attr,
void* value
);Summary
Gets value of PIB attribute.
Description
This routine allows a client to get the value of a PIB (PHY Information Base) attribute of the RF215 Driver.
Precondition
DRV_RF215_Open must have been called to obtain a valid opened driver handle.
Parameters
| Param | Description |
|---|---|
| drvHandle | A valid open-instance handle, returned from the driver's open routine. |
| attr | A valid RF215 Driver PIB attribute (see DRV_RF215_PIB_ATTRIBUTE). |
| value | Pointer to store PIB value. The allocated memory must be same or equal of PIB size (see DRV_RF215_GetPibSize). |
Returns
Result of getting the PIB (see DRV_RF215_PIB_RESULT).
Example
DRV_HANDLE drvRf215Handle; // returned from DRV_RF215_Open
DRV_RF215_PHY_BAND_OPM phyBandOpm;
DRV_RF215_PIB_RESULT pibResult;
pibResult = DRV_RF215_GetPib(drvRf215Handle,
RF215_PIB_PHY_BAND_OPERATING_MODE, &phyBandOpm);
if (pibResult == RF215_PIB_RESULT_SUCCESS)
{
// PIB get successful
}Remarks
If dual-band is used, the PIB values are different for each transceiver.
