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

PHY driver class for Nanostack. More...

#include <NanostackPhy.h>

Inheritance diagram for NanostackPhy:
NanostackMACPhy NanostackPPPPhy NanostackEthernetPhy NanostackRfPhy

Public Member Functions

virtual int8_t phy_register ()=0
 Register this physical interface with Nanostack. More...
 
virtual NanostackMACPhynanostack_mac_phy ()
 Return pointer to a NanostackMACPhy. More...
 
virtual NanostackPPPPhynanostack_ppp_phy ()
 Return pointer to a NanostackPPPPhy. More...
 

Detailed Description

PHY driver class for Nanostack.

Definition at line 25 of file NanostackPhy.h.

Member Function Documentation

◆ phy_register()

virtual int8_t phy_register ( )
pure virtual

Register this physical interface with Nanostack.

Returns
Device driver ID or a negative error code on failure

Implemented in NanostackRfPhy.

◆ nanostack_mac_phy()

virtual NanostackMACPhy * nanostack_mac_phy ( )
virtual

Return pointer to a NanostackMACPhy.

Returns
Pointer to requested phy type or NULL if this class doesn't implement the phy.

Reimplemented in NanostackMACPhy.

Definition at line 40 of file NanostackPhy.h.

◆ nanostack_ppp_phy()

virtual NanostackPPPPhy * nanostack_ppp_phy ( )
virtual

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.