STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
EthernetHandler.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Arduino.h
>
4
#include <IPAddress.h>
5
6
struct
EthernetPins
{
7
int
clk
;
8
int
miso
;
9
int
mosi
;
10
int
cs
;
11
};
12
13
struct
EthernetConfig
{
14
EthernetPins
pins
;
15
IPAddress
staticIP
;
16
IPAddress
gateway
;
17
IPAddress
subnet
;
18
IPAddress
dns
;
19
IPAddress
receiverIP
;
20
uint16_t
receiverPort
= 5006;
21
uint16_t
localPort
= 5005;
22
bool
useNativeEth
=
false
;
23
};
24
25
void
EthernetInit
(
const
EthernetConfig
&
config
);
26
void
sendPacket
(
const
uint8_t *data,
size_t
len);
27
void
sendPacket
(
const
String &data);
28
IPAddress
getLocalIP
();
29
bool
ethernetReady
();
Arduino.h
EthernetInit
void EthernetInit(const EthernetConfig &config)
Definition
EthernetHandler.cpp:19
getLocalIP
IPAddress getLocalIP()
Definition
EthernetHandler.cpp:77
ethernetReady
bool ethernetReady()
Definition
EthernetHandler.cpp:84
sendPacket
void sendPacket(const uint8_t *data, size_t len)
Definition
EthernetHandler.cpp:53
IPAddress
Definition
Arduino.h:63
config
static const idle_config_t config
Definition
idle_task.c:17
actuator_board_pins
Definition
actuator_board_pins.h:6
EthernetConfig
Definition
EthernetHandler.h:13
EthernetConfig::gateway
IPAddress gateway
Definition
EthernetHandler.h:16
EthernetConfig::subnet
IPAddress subnet
Definition
EthernetHandler.h:17
EthernetConfig::useNativeEth
bool useNativeEth
Definition
EthernetHandler.h:22
EthernetConfig::localPort
uint16_t localPort
Definition
EthernetHandler.h:21
EthernetConfig::receiverIP
IPAddress receiverIP
Definition
EthernetHandler.h:19
EthernetConfig::receiverPort
uint16_t receiverPort
Definition
EthernetHandler.h:20
EthernetConfig::dns
IPAddress dns
Definition
EthernetHandler.h:18
EthernetConfig::staticIP
IPAddress staticIP
Definition
EthernetHandler.h:15
EthernetPins
Definition
EthernetHandler.h:6
EthernetPins::cs
int cs
Definition
EthernetHandler.h:10
EthernetPins::mosi
int mosi
Definition
EthernetHandler.h:9
EthernetPins::clk
int clk
Definition
EthernetHandler.h:7
EthernetPins::miso
int miso
Definition
EthernetHandler.h:8
firmware
libraries
EthernetHandler
src
EthernetHandler.h
Generated by
1.15.0