Rtos API example
ns_virtual_rf_api.h File Reference
Virtual RF interface API. More...
Go to the source code of this file.
Functions | |
int8_t | virtual_rf_device_register (phy_link_type_e link_type, uint16_t mtu_size) |
virtual_rf_device_register Creates virtual RF device Emulates "radio" link like the real RF driver would do it. | |
int8_t | virtual_rf_client_register (void) |
virtual_rf_client_register Creates virtual RF client "Acts" in a role of upper layer for MAC (802.15.4 or ethernet) and in a role of RF driver for serial MAC. |
Detailed Description
Virtual RF interface API.
Definition in file ns_virtual_rf_api.h.
Function Documentation
int8_t virtual_rf_client_register | ( | void | ) |
virtual_rf_client_register Creates virtual RF client "Acts" in a role of upper layer for MAC (802.15.4 or ethernet) and in a role of RF driver for serial MAC.
Forwards data between serial MAC and either 802.15.4 or ethernet MAC.
- Returns:
- Rf driver id
int8_t virtual_rf_device_register | ( | phy_link_type_e | link_type, |
uint16_t | mtu_size | ||
) |
virtual_rf_device_register Creates virtual RF device Emulates "radio" link like the real RF driver would do it.
MAC does not know the difference. Sends and listens data to/from serial MAC.
- Parameters:
-
link_type Link type behind virtual device mtu_size Maximum transmission unit size
- Returns:
- Rf driver id
Generated on Sun Jul 17 2022 08:25:35 by 1.7.2