Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
sw_mac.h File Reference
Software MAC API. More...
Go to the source code of this file.
Functions | |
struct mac_api_s * | ns_sw_mac_create (int8_t rf_driver_id, struct mac_description_storage_size_s *storage_sizes) |
Creates 802.15.4 MAC API instance which will use RF driver given. | |
int8_t | ns_sw_mac_virtual_client_register (struct mac_api_s *api, int8_t virtual_driver_id) |
ns_sw_mac_virtual_client_register registers virtual driver to be used with 802.15.4 MAC. | |
int8_t | ns_sw_mac_virtual_client_unregister (struct mac_api_s *api) |
ns_sw_mac_virtual_client_unregister Unregisters virtual driver from 802.15.4 MAC |
Detailed Description
Software MAC API.
Definition in file sw_mac.h.
Function Documentation
struct mac_api_s* ns_sw_mac_create | ( | int8_t | rf_driver_id, |
struct mac_description_storage_size_s * | storage_sizes | ||
) | [read] |
Creates 802.15.4 MAC API instance which will use RF driver given.
- Parameters:
-
rf_driver_id RF driver id. Must be valid storage_sizes dynamic mac storage sizes DO NOT set any values to zero !!
- Returns:
- New MAC instance if successful, NULL otherwise
int8_t ns_sw_mac_virtual_client_register | ( | struct mac_api_s * | api, |
int8_t | virtual_driver_id | ||
) |
ns_sw_mac_virtual_client_register registers virtual driver to be used with 802.15.4 MAC.
This is always used with serial_mac_api
- Parameters:
-
api API to start using virtual driver virtual_driver_id
- Returns:
- 0 if success, -1 if api or driver is invalid
int8_t ns_sw_mac_virtual_client_unregister | ( | struct mac_api_s * | api ) |
ns_sw_mac_virtual_client_unregister Unregisters virtual driver from 802.15.4 MAC
- Parameters:
-
api API from which to unregister virtual driver
- Returns:
- 0 if success, -1 if api is invalid
Generated on Tue Jul 12 2022 11:03:06 by
