oms_wp_phy_module_activate()
Abstract
Initializes and commits the PHY module properties.
Syntax
oms_wp_phy_module_activate (phy_handle)
| Argument | Type | Description |
|---|---|---|
phy_handle |
OmsT_WP_Phy_Handle* |
Handle to the PHY module |
Return Type
Compcode
Returns OPC_COMPCODE_FAILURE if an invalid phy_handle is specified, or OPC_COMPCODE_SUCCESS if the operation was successful.
Details
This function commits the properties set in the PHY handle towards the actual PHY module and allows the PHY module complete its initialization states. PHY handle properties are set via oms_wp_phy_module_attr_set(). Use this function only during initialization states.
Example
Excerpt from lte_enb_as process model, init exit executives.
/* Set the properties of the PHY layer. */
oms_wp_phy_module_attr_set (phy_module_hdl,
OMSC_WP_ATTR_PHY_TYPE, OmsC_WP_OFDMA,
OMSC_WP_ATTR_PHY_MODEL, OmsC_WP_Lte_Ofdma,
OMSC_WP_ATTR_PHY_CELL_ID, enb_id,
OMSC_WP_ATTR_PHY_MAC_TO_PHY_PARAMS_CONVERT_PROC, (void*)
lte_support_mac_config_to_phy_convert,
OMSC_WP_ATTR_PHY_CLIENT_INFO, (void*) &chnl_descriptor,
OMSC_WP_ATTR_PHY_MCARRIER_SUBBAND_MEASURE_PROC, (void*) OPC_NIL,
OMSC_WP_ATTR_ARG_END);
/* Initialize and commit the PHY layer properties. */
oms_wp_phy_module_activate (phy_module_hdl);