PER Firmware
Loading...
Searching...
No Matches
ethernet.h
Go to the documentation of this file.
1
#ifndef ETHERNET_H
2
#define ETHERNET_H
3
13
#include <stdint.h>
14
#include "w5500/wizchip_conf.h"
15
16
typedef
enum
{
17
ETH_THREAD_HW_INIT = 0,
18
ETH_THREAD_UDP_INIT = 1,
19
ETH_THREAD_LINKING = 2,
20
ETH_THREAD_READY = 3,
21
ETH_THREAD_RECOVERING = 4,
22
ETH_THREAD_FATAL = 5,
23
} eth_thread_state_t;
24
25
typedef
struct
{
26
wiz_NetInfo net_info;
27
uint8_t udp_address[4];
28
uint16_t udp_port;
29
uint8_t udp_socket;
30
}
ethernet_config_t
;
31
32
void
w5500_register_callbacks(
void
);
33
void
eth_thread_periodic(
void
);
34
35
#endif
// ETHERNET_H
ethernet_config_t
Definition
ethernet.h:25
source
daq
ethernet
ethernet.h
Generated by
1.12.0