1.1.4.4.15 DRV_RF215_SetPib Function
C
DRV_RF215_PIB_RESULT DRV_RF215_SetPib ( DRV_HANDLE drvHandle, DRV_RF215_PIB_ATTRIBUTE attr, void* value );
Summary
Sets value of PIB attribute.
Description
This routine allows a client to set the value of a PIB (PHY Information Base) attribute of 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 PIB value to set. The allocated memory must be same or equal of PIB size (see DRV_RF215_GetPibSize). |
Returns
Result of setting the PIB (see DRV_RF215_PIB_RESULT).
Example
DRV_HANDLE drvRf215Handle; // returned from DRV_RF215_Open
DRV_RF215_PHY_BAND_OPM phyBandOpm = SUN_FSK_BAND_863_OPM1;
DRV_RF215_PIB_RESULT pibResult;
pibResult = DRV_RF215_SetPib(drvRf215Handle,
RF215_PIB_PHY_BAND_OPERATING_MODE, &phyBandOpm);
if (pibResult == RF215_PIB_RESULT_SUCCESS)
{
// PIB set successful
}
Remarks
If dual-band is used, the PIB values are different for each transceiver.