1.5.3.1 PAL_RF_Initialize Function
C
SYS_MODULE_OBJ PAL_RF_Initialize(const SYS_MODULE_INDEX index, const SYS_MODULE_INIT * const init);
Summary
Initializes the RF PAL module.
Description
This routine initializes the RF PAL module, making it ready for clients to use it. The initialization data is specified by the init parameter. It is a single instance module, so this function should be called only once (unless PAL_RF_Deinitialize is called).
Precondition
None.
Parameters
Param | Description |
---|---|
index | Identifier for the instance to be initialized. Only one instance (index 0) supported. |
init | Pointer to the initialization data structure containing the data necessary to initialize the module. |
Returns
If successful, returns a valid handle to a module instance object. Otherwise, returns SYS_MODULE_OBJ_INVALID.
Example
PAL_RF_INIT palRfInitData; SYS_MODULE_OBJ palRfObj; palRfInitData.rfPhyHandlers.palRfDataIndication = _rfDataIndication; palRfInitData.rfPhyHandlers.palRfTxConfirm = _rfTxConfirm; palRfObj = PAL_RF_Initialize( PAL_RF_PHY_INDEX, (const SYS_MODULE_INIT *) &palRfInitData );
Remarks
This routine must be called before any other RF PAL routine is called.