Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

NanostackPPPPhy Class Reference

NanostackPPPPhy Class Reference

PPP PHY driver class for Nanostack. More...

#include <NanostackPPPPhy.h>

Inherits NanostackPhy.

Inherited by PPPPhy.

Public Types

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

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.
virtual void get_iid64 (uint8_t *iid64)=0
 Read the iid64 address of this physical interface.
virtual uint16_t get_mtu ()=0
 Read the mtu of this physical interface.
virtual NanostackPPPPhynanostack_ppp_phy ()
 Provide access to the NanostackMACPhy.
virtual int8_t phy_register ()=0
 Register this physical interface with Nanostack.
virtual NanostackMACPhynanostack_mac_phy ()
 Return pointer to a NanostackMACPhy.

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 (  ) [virtual, inherited]

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.

virtual NanostackPPPPhy* nanostack_ppp_phy (  ) [virtual]

Provide access to the NanostackMACPhy.

Returns:
NanostackPPPPhy

Reimplemented from NanostackPhy.

Definition at line 53 of file NanostackPPPPhy.h.

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_link_state_change_cb ( link_state_change_cb_t  cb ) [pure virtual]

Set link state callback of this physical interface.

Parameters:
cbcallback