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

Consumer of Ethernet frames. More...

#include <Interfaces.h>

Inheritance diagram for twd::FrameReceiver:

Public Member Functions

virtual ~FrameReceiver ()=default
virtual void onFrame (const uint8_t *frame, uint16_t len)=0
 The frame is only valid during the call; copy it if it must be kept.

Detailed Description

Consumer of Ethernet frames.

Implemented by the network interface; a UsbTransport hands every frame it receives from the host to its FrameReceiver.

Definition at line 23 of file Interfaces.h.

Constructor & Destructor Documentation

◆ ~FrameReceiver()

virtual twd::FrameReceiver::~FrameReceiver ( )
virtualdefault

Member Function Documentation

◆ onFrame()

virtual void twd::FrameReceiver::onFrame ( const uint8_t * frame,
uint16_t len )
pure virtual

The frame is only valid during the call; copy it if it must be kept.

Implemented in twd::L2Bridge.


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