Mbed OS Reference
Loading...
Searching...
No Matches
NanostackEthernetPhy Class Referenceabstract

Ethernet PHY driver class for Nanostack. More...

#include <NanostackEthernetPhy.h>

Inheritance diagram for NanostackEthernetPhy:
NanostackMACPhy NanostackPhy

Public Member Functions

virtual void get_mac_address (uint8_t *mac)=0
 Read the mac address of this physical interface. More...
 
virtual void set_mac_address (uint8_t *mac)=0
 Set the mac address of this physical interface. More...
 
NanostackMACPhynanostack_mac_phy () final
 Provide access to the NanostackMACPhy. More...
 
virtual int8_t phy_register ()=0
 Register this physical interface with Nanostack. More...
 
virtual NanostackPPPPhynanostack_ppp_phy ()
 Return pointer to a NanostackPPPPhy. More...
 

Detailed Description

Ethernet PHY driver class for Nanostack.

Definition at line 24 of file NanostackEthernetPhy.h.

Member Function Documentation

◆ get_mac_address()

virtual void get_mac_address ( uint8_t *  mac)
pure virtualinherited

Read the mac address of this physical interface.

Note - some devices do not have a mac address in hardware.

Parameters
macmac address

◆ set_mac_address()

virtual void set_mac_address ( uint8_t *  mac)
pure virtualinherited

Set the mac address of this physical interface.

Parameters
macmac address

◆ nanostack_mac_phy()

NanostackMACPhy * nanostack_mac_phy ( )
finalvirtualinherited

Provide access to the NanostackMACPhy.

Returns
NanostackMACPhy

Reimplemented from NanostackPhy.

Definition at line 45 of file NanostackMACPhy.h.

◆ phy_register()

virtual int8_t phy_register ( )
pure virtualinherited

Register this physical interface with Nanostack.

Returns
Device driver ID or a negative error code on failure

Implemented in NanostackRfPhy.

◆ nanostack_ppp_phy()

virtual NanostackPPPPhy * nanostack_ppp_phy ( )
virtualinherited

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.