Sending Packets to the PHY Module
This section describes how to use the API functions to send packets to the PHY module of the advanced wireless package. The following procedure does not allow you to specify wireless properties of the packets but bases those properties on the attribute settings of the node.
Note: This procedure is applicable for single-carrier mode only.
Procedure 2: Sending Packets to the PHY Module
-
Get a handle to the PHY module from the client module.
1.1 Within the client module, call oms_wp_phy_module_handle_get().
1.2 Provide the actual name of the PHY module.
*Result:* A local handle to the PHY module is created. Note that calling this function does not cause any interrupt or event interaction between the client module and the PHY module. -
Use the function oms_wp_phy_pk_send() to pass the packet pointer and the PHY handle previously obtained.
Result: The wireless properties of the packet will be obtained for it within the PHY module, based on the current attribute configuration of the node.
End of Procedure 2
Note: Similarly, packets can be sent to the PHY module of the advanced wireless package by using
op_pk_send()or similar kernel procedures. The advantage of using the functions described in the procedure above is that you do not need to discover and specify the corresponding packet stream needed byop_pk_send().