My Project
Loading...
Searching...
No Matches
MattzoEthernet.h
Go to the documentation of this file.
1
#pragma once
2
#include <Arduino.h>
3
#include <Ethernet.h>
4
#include <EthernetUdp.h>
5
6
/*
7
The W5000 code comes from https://github.com/PuceBaboon/ESP32_W5500_NTP_CLIENT/blob/master/src/ESP32_NTP.ino
8
*/
9
// standard pins for SPI are used, the next ones are specific
10
#define RESET_P 26
11
#define CS_P 5
12
13
/* In pins_arduino.h the following pins are defined, we are using MOSI, MISO and SCK
14
We are not using the INT pin on the WS500 module.
15
static const uint8_t SS = 5;
16
static const uint8_t MOSI = 23;
17
static const uint8_t MISO = 19;
18
static const uint8_t SCK = 18;
19
*/
20
21
/*
22
* Wiz W5500 reset function. Change this for the specific reset
23
* sequence required for your particular board or module.
24
*/
25
void
WizReset
();
26
27
/*
28
* This is a crock. It's here in an effort
29
* to help people debug hardware problems with
30
* their W5100 ~ W5500 board setups. It's
31
* a copy of the Ethernet library enums and
32
* should, at the very least, be regenerated
33
* from Ethernet.h automatically before the
34
* compile starts (that's a TODO item).
35
*
36
*/
37
/*
38
* Print the result of the hardware status enum
39
* as a string.
40
* Ethernet.h currently contains these values:-
41
*
42
* enum EthernetHardwareStatus {
43
* EthernetNoHardware,
44
* EthernetW5100,
45
* EthernetW5200,
46
* EthernetW5500
47
* };
48
*
49
*/
50
void
prt_hwval
(uint8_t refval);
51
52
/*
53
* Print the result of the ethernet connection
54
* status enum as a string.
55
* Ethernet.h currently contains these values:-
56
*
57
* enum EthernetLinkStatus {
58
* Unknown,
59
* LinkON,
60
* LinkOFF
61
* };
62
*
63
*/
64
void
prt_ethval
(uint8_t refval);
65
WizReset
void WizReset()
Definition
MattzoEthernet.cpp:10
prt_ethval
void prt_ethval(uint8_t refval)
Definition
MattzoEthernet.cpp:78
prt_hwval
void prt_hwval(uint8_t refval)
Definition
MattzoEthernet.cpp:46
src
MattzoStuff
MattzoControllers
src
lib
MCNetwork
MattzoEthernet.h
Generated by
1.10.0