Rtos API example

Embed: (wiki syntax)

« Back to documentation index

ns_virtual_rf_api.h File Reference

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_typeLink type behind virtual device
mtu_sizeMaximum transmission unit size
Returns:
Rf driver id