Nicolas Borla / Mbed OS BBR_1Ebene
Embed: (wiki syntax)

« Back to documentation index

NanostackEthernetPhy Class Reference

NanostackEthernetPhy Class Reference

Ethernet PHY driver class for Nanostack. More...

#include <NanostackEthernetPhy.h>

Inherits NanostackPhy.

Public Member Functions

virtual int8_t phy_register ()=0
 Register this physical interface with Nanostack.
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.

Detailed Description

Ethernet PHY driver class for Nanostack.

Definition at line 24 of file NanostackEthernetPhy.h.


Member Function Documentation

virtual void get_mac_address ( uint8_t *  mac ) [pure virtual, inherited]

Read the mac address of this physical interface.

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

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, inherited]

Set the mac address of this physical interface.