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: TYBLE16_simple_data_logger TYBLE16_MP3_Air
NanostackMACPhy Class Reference
MAC PHY driver class for Nanostack. More...
#include <NanostackMACPhy.h>
Inherits NanostackPhy.
Inherited by NanostackEthernetPhy, and NanostackRfPhy.
Public Member Functions | |
| virtual void | get_mac_address (uint8_t *mac)=0 |
| Read the mac address of this physical interface. | |
| virtual void | set_mac_address (uint8_t *mac)=0 |
| Set the mac address of this physical interface. | |
| virtual NanostackMACPhy * | nanostack_mac_phy () |
| Provide access to the NanostackMACPhy. | |
| virtual int8_t | phy_register ()=0 |
| Register this physical interface with Nanostack. | |
| virtual NanostackPPPPhy * | nanostack_ppp_phy () |
| Return pointer to a NanostackPPPPhy. | |
Detailed Description
MAC PHY driver class for Nanostack.
Definition at line 24 of file NanostackMACPhy.h.
Member Function Documentation
| virtual void get_mac_address | ( | uint8_t * | mac ) | [pure virtual] |
Read the mac address of this physical interface.
Note - some devices do not have a mac address in hardware.
- Parameters:
-
mac mac address
| virtual NanostackMACPhy* nanostack_mac_phy | ( | ) | [virtual] |
Provide access to the NanostackMACPhy.
- Returns:
- NanostackMACPhy
Reimplemented from NanostackPhy.
Definition at line 45 of file NanostackMACPhy.h.
| virtual NanostackPPPPhy* nanostack_ppp_phy | ( | ) | [virtual, inherited] |
Return pointer to a NanostackPPPPhy.
- Returns:
- Pointer to requested phy type or NULL if this class doesn't implement the phy.
Reimplemented in NanostackPPPPhy.
Definition at line 50 of file NanostackPhy.h.
| virtual int8_t phy_register | ( | ) | [pure virtual, inherited] |
Register this physical interface with Nanostack.
- Returns:
- Device driver ID or a negative error code on failure
Implemented in NanostackRfPhy.
| virtual void set_mac_address | ( | uint8_t * | mac ) | [pure virtual] |
Set the mac address of this physical interface.
- Parameters:
-
mac mac address
Generated on Tue Jul 12 2022 13:55:34 by
1.7.2