STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
EthernetHandler.cpp File Reference
#include "EthernetHandler.h"
#include <Arduino.h>
#include <ETH.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
#include <WiFiUdp.h>
#include <esp_system.h>
Include dependency graph for EthernetHandler.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{EthernetHandler.cpp}

Functions

void EthernetInit (const EthernetConfig &config)
void sendPacket (const uint8_t *data, size_t len)
void sendPacket (const String &data)
IPAddress getLocalIP ()
bool ethernetReady ()

Variables

EthernetConfig anonymous_namespace{EthernetHandler.cpp}::currentConfig {}
EthernetUDP anonymous_namespace{EthernetHandler.cpp}::spiUdp
WiFiUDP anonymous_namespace{EthernetHandler.cpp}::nativeUdp
bool anonymous_namespace{EthernetHandler.cpp}::initialized = false
bool anonymous_namespace{EthernetHandler.cpp}::usingNative = false

Function Documentation

◆ EthernetInit()

◆ ethernetReady()

bool ethernetReady ( )

Definition at line 84 of file EthernetHandler.cpp.

References anonymous_namespace{EthernetHandler.cpp}::initialized.

Referenced by loop().

◆ getLocalIP()

IPAddress getLocalIP ( )

Definition at line 77 of file EthernetHandler.cpp.

References ETH, Ethernet, and anonymous_namespace{EthernetHandler.cpp}::usingNative.

Referenced by setup().

◆ sendPacket() [1/2]

void sendPacket ( const String & data)

◆ sendPacket() [2/2]