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

Raspberry Pi Pico W / Pico 2 W dongle: raw Ethernet frames between USB and WiFi. More...

#include <Rp2040Dongle.h>

Public Member Functions

 Rp2040Dongle ()
bool begin (const TinyWifiDongleConfig &cfg)
 Start USB and WiFi and bridge them; false if a part could not be started.
bool usbReady ()
 True once the USB host has configured the adapter.
bool uplinkConnected ()
 True while the board is associated with the access point.
L2Bridge::Stats bridgeStats () const
 Counters of the bridge since start.
Rp2040UsbNcm::Stats usbStats () const
 Counters of the USB side since start.

Detailed Description

Raspberry Pi Pico W / Pico 2 W dongle: raw Ethernet frames between USB and WiFi.

Rp2040UsbNcm (UsbTransport) <-> L2Bridge <-> Rp2040WifiFrameLink (FrameLink)

The USB adapter takes the WiFi chip's station MAC address; the host does its own DHCP/DNS with the WiFi network. The board has no IP address of its own. Needs the core option "USB Stack: Pico SDK" (the default).

The settings manageUsb, pinUsbTask, stallTimeoutMs and usbMaxFrame of the configuration only apply to the ESP32 and are ignored here; framesToHost and framesFromHost only apply here.

Definition at line 24 of file Rp2040Dongle.h.

Constructor & Destructor Documentation

◆ Rp2040Dongle()

twd::Rp2040Dongle::Rp2040Dongle ( )
inline

Definition at line 26 of file Rp2040Dongle.h.

Member Function Documentation

◆ begin()

bool twd::Rp2040Dongle::begin ( const TinyWifiDongleConfig & cfg)
inline

Start USB and WiFi and bridge them; false if a part could not be started.

Definition at line 29 of file Rp2040Dongle.h.

◆ bridgeStats()

L2Bridge::Stats twd::Rp2040Dongle::bridgeStats ( ) const
inline

Counters of the bridge since start.

Definition at line 59 of file Rp2040Dongle.h.

◆ uplinkConnected()

bool twd::Rp2040Dongle::uplinkConnected ( )
inline

True while the board is associated with the access point.

Definition at line 56 of file Rp2040Dongle.h.

◆ usbReady()

bool twd::Rp2040Dongle::usbReady ( )
inline

True once the USB host has configured the adapter.

Definition at line 54 of file Rp2040Dongle.h.

◆ usbStats()

Rp2040UsbNcm::Stats twd::Rp2040Dongle::usbStats ( ) const
inline

Counters of the USB side since start.

Definition at line 61 of file Rp2040Dongle.h.


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