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

PPP PHY driver class for Nanostack. More...

#include <NanostackPPPPhy.h>

Inheritance diagram for NanostackPPPPhy:
NanostackPhy

Public Types

typedef mbed::Callback< void(bool up)> link_state_change_cb_t
 Link state callback function prototype. More...
 

Public Member Functions

virtual void set_link_state_change_cb (link_state_change_cb_t cb)=0
 Set link state callback of this physical interface. More...
 
virtual void get_iid64 (uint8_t *iid64)=0
 Read the iid64 address of this physical interface. More...
 
virtual uint16_t get_mtu ()=0
 Read the mtu of this physical interface. More...
 
NanostackPPPPhynanostack_ppp_phy () final
 Provide access to the NanostackMACPhy. More...
 
virtual int8_t phy_register ()=0
 Register this physical interface with Nanostack. More...
 
virtual NanostackMACPhynanostack_mac_phy ()
 Return pointer to a NanostackMACPhy. More...
 

Detailed Description

PPP PHY driver class for Nanostack.

Definition at line 23 of file NanostackPPPPhy.h.

Member Typedef Documentation

◆ link_state_change_cb_t

typedef mbed::Callback<void (bool up)> link_state_change_cb_t

Link state callback function prototype.


up : link up

Definition at line 30 of file NanostackPPPPhy.h.

Member Function Documentation

◆ set_link_state_change_cb()

virtual void set_link_state_change_cb ( link_state_change_cb_t  cb)
pure virtual

Set link state callback of this physical interface.

Parameters
cbcallback

◆ get_iid64()

virtual void get_iid64 ( uint8_t *  iid64)
pure virtual

Read the iid64 address of this physical interface.

Parameters
iid64iid64 address

◆ get_mtu()

virtual uint16_t get_mtu ( )
pure virtual

Read the mtu of this physical interface.

Returns
mtu

◆ nanostack_ppp_phy()

NanostackPPPPhy * nanostack_ppp_phy ( )
finalvirtual

Provide access to the NanostackMACPhy.

Returns
NanostackPPPPhy

Reimplemented from NanostackPhy.

Definition at line 54 of file NanostackPPPPhy.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_mac_phy()

virtual NanostackMACPhy * nanostack_mac_phy ( )
virtualinherited

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.