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
16typedef 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
25typedef struct {
26 wiz_NetInfo net_info;
27 uint8_t udp_address[4];
28 uint16_t udp_port;
29 uint8_t udp_socket;
31
32void w5500_register_callbacks(void);
33void eth_thread_periodic(void);
34
35#endif // ETHERNET_H
Definition ethernet.h:25