oms_wp_phy_pk_send_delayed()
Abstract
Sends the given packet to the PHY module with a specific time delay.
Note: This function can be used for single carrier and multicarrier modes.
Syntax
oms_wp_phy_pk_send_delayed (pkptr, phy_handle, delay)
| Argument | Type | Description |
|---|---|---|
| phy_handle | OmsT_PHY_Handle* |
PHY module handle |
| pkptr | Packet* |
Packet to be sent |
| delay | double |
Delay |
Return Type
void
Details
A PHY module handle can be obtained with the following functions:
- oms_wp_phy_module_initialize_single_carrier()
- oms_wp_phy_module_initialize_multi_carrier()
- oms_wp_phy_module_handle_get()
Example
Excerpt from lte_enb_as process model, function block.
/* Install the radio information in the packet. */
oms_wp_phy_pk_transmission_info_set (sib1_pkptr,
OMSC_WP_PK_SIZE_BITS_INT64, (OpT_Int64) op_pk_total_size_get
(sib1_pkptr),
OMSC_WP_PK_SIZE_PHY_BLOCKS_INT, frame_state_info.num_sib1_alloc_blks,
OMSC_WP_PK_START_TIME_DBL, start_time,
OMSC_WP_PK_TX_DELAY_DBL, delay,
OMSC_WP_PK_START_FREQ_HZ_DBL, burst_start_freq_hz,
OMSC_WP_PK_END_FREQ_HZ_DBL, burst_end_freq_hz,
OMSC_WP_PK_MCS_INDEX_INT, LTEC_DEFAULT_MCS_INDEX,
OMSC_WP_PK_BURST_TYPE_INT, LteT_Burst_Type_Data_No_Phy_Stats,
OMSC_WP_ARG_END);
/* Send the packet to the Wireless PHY module layer. */
oms_wp_phy_pk_send_delayed (sib1_pkptr, phy_module_hdl, start_time - op_sim_time ());
Note
Regular op_pk_send_... () and op_pk_deliver_... () kernel procedures can also be used to send packets to the advanced wireless package module. If you use the kernel procedures, the client code is responsible for determining the correct packet streams or module object IDs related to the PHY module.