TinyWifiDongle 0.1.0
Header-only USB WiFi dongle for Arduino
Loading...
Searching...
No Matches
twd::FrameLink Class Referenceabstract

Raw Ethernet access to the uplink network (bridge mode). More...

#include <Interfaces.h>

Inheritance diagram for twd::FrameLink:

Public Member Functions

virtual ~FrameLink ()=default
virtual bool sendFrame (const uint8_t *frame, uint16_t len)=0
 Sends a frame to the uplink network; false if it was dropped.
virtual void setFrameReceiver (FrameReceiver *receiver)=0
 Frames coming from the uplink network are passed to receiver.
virtual const uint8_t * macAddress ()=0
 MAC address the uplink network knows this device by.

Detailed Description

Raw Ethernet access to the uplink network (bridge mode).

Frames are exchanged as they are on the wire; the MCU takes no part in layer 3. The access point only accepts frames that carry macAddress() as source address.

See also
L2Bridge

Definition at line 76 of file Interfaces.h.

Constructor & Destructor Documentation

◆ ~FrameLink()

virtual twd::FrameLink::~FrameLink ( )
virtualdefault

Member Function Documentation

◆ macAddress()

virtual const uint8_t * twd::FrameLink::macAddress ( )
pure virtual

MAC address the uplink network knows this device by.

Implemented in twd::Esp32WifiFrameLink, and twd::Rp2040WifiFrameLink.

◆ sendFrame()

virtual bool twd::FrameLink::sendFrame ( const uint8_t * frame,
uint16_t len )
pure virtual

Sends a frame to the uplink network; false if it was dropped.

Implemented in twd::Esp32WifiFrameLink, and twd::Rp2040WifiFrameLink.

◆ setFrameReceiver()

virtual void twd::FrameLink::setFrameReceiver ( FrameReceiver * receiver)
pure virtual

Frames coming from the uplink network are passed to receiver.

Implemented in twd::Esp32WifiFrameLink, and twd::Rp2040WifiFrameLink.


The documentation for this class was generated from the following file: