1.5.3.3 PAL_RF_HandleGet Function
C
PAL_RF_HANDLE PAL_RF_HandleGet(const SYS_MODULE_INDEX index);
Summary
Returns a handle to the requested RF PAL instance.
Description
This function returns a handle to the requested RF PAL instance.
Precondition
The PAL_RF_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
index | Index of the RF PAL instance. Only one instance (index 0) supported. |
Returns
Handle (PAL_RF_HANDLE type) to the requested RF PAL instance.
PAL_RF_HANDLE_INVALID is returned if the index parameter is invalid.
Example
PAL_RF_HANDLE myPalRfHandle;
myPalRfHandle = PAL_RF_HandleGet(PAL_RF_INDEX_0);
if (myPalRfHandle != PAL_RF_HANDLE_INVALID)
{
// Found a valid handle to the RF PAL instance
}
Remarks
The handle returned by this function is needed to call other functions of the RF PAL module.