Mistake on this page?
Report an issue in GitHub or email us
Public Types | Public Member Functions
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

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

Link state callback function prototype.

Parameters
uplink up

Definition at line 29 of file NanostackPPPPhy.h.

Member Function Documentation

virtual void get_iid64 ( uint8_t *  iid64)
pure virtual

Read the iid64 address of this physical interface.

Parameters
iid64iid64 address
virtual uint16_t get_mtu ( )
pure virtual

Read the mtu of this physical interface.

Returns
mtu
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.

NanostackPPPPhy* nanostack_ppp_phy ( )
finalvirtual

Provide access to the NanostackMACPhy.

Returns
NanostackPPPPhy

Reimplemented from NanostackPhy.

Definition at line 53 of file NanostackPPPPhy.h.

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.

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
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.