1.1.4.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

ParamDescription
drvHandleA valid open-instance handle, returned from the driver's open routine.
attrA valid RF215 Driver PIB attribute (see DRV_RF215_PIB_ATTRIBUTE).
valuePointer to store PIB value. The allocated memory must be same or equal of PIB size (see DRV_RF215_GetPibSize).

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.