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

Go to the source code of this file.

Functions

void setup ()
void loop ()

Variables

byte mac [] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEE}
IPAddress staticIP (192, 168, 2, 101)
IPAddress gateway (192, 168, 2, 1)
IPAddress subnet (255, 255, 255, 0)
IPAddress dns (192, 168, 2, 1)
unsigned int localPort
char packetBuffer [UDP_TX_PACKET_MAX_SIZE]
EthernetUDP udp
const int ETH_CS_PIN = 6

Function Documentation

◆ loop()

void loop ( )

Definition at line 43 of file main.cpp.

References packetBuffer, Serial, and udp.

◆ setup()

void setup ( void )

Definition at line 22 of file main.cpp.

References delay(), dns, ETH_CS_PIN, Ethernet, gateway, localPort, mac, Serial, staticIP, subnet, and udp.

Variable Documentation

◆ dns

IPAddress dns(192, 168, 2, 1) ( 192 ,
168 ,
2 ,
1  )

◆ ETH_CS_PIN

const int ETH_CS_PIN = 6

Definition at line 20 of file main.cpp.

◆ gateway

IPAddress gateway(192, 168, 2, 1) ( 192 ,
168 ,
2 ,
1  )

◆ localPort

unsigned int localPort
Initial value:
=
5006

Definition at line 13 of file main.cpp.

Referenced by printBoardInfo(), and setup().

◆ mac

byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEE}

Definition at line 7 of file main.cpp.

◆ packetBuffer

◆ staticIP

IPAddress staticIP(192, 168, 2, 101) ( 192 ,
168 ,
2 ,
101  )

◆ subnet

IPAddress subnet(255, 255, 255, 0) ( 255 ,
255 ,
255 ,
0  )

◆ udp

EthernetUDP udp

Definition at line 17 of file main.cpp.