PER Firmware
Loading...
Searching...
No Matches
daq_eth.c File Reference

W5500 Ethernet. More...

#include <string.h>
#include "common/phal/can.h"
#include "common/phal/gpio.h"
#include "main.h"
#include "w5500/socket.h"
#include "w5500/wizchip_conf.h"
#include "common/can_library/generated/DAQ.h"

Classes

struct  eth_config_t
 

Macros

#define eth_handle_error(err, res)
 

Functions

void eth_update_periodic (void)
 

Variables

eth_config_t eth_config
 

Detailed Description

W5500 Ethernet.

Author
Luke Oxley (lcoxl.nosp@m.ey@p.nosp@m.urdue.nosp@m..edu) Eileen Yoon (eyn@p.nosp@m.urdu.nosp@m.e.edu)
Version
0.1
Date
2025-02-25

Macro Definition Documentation

◆ eth_handle_error

#define eth_handle_error ( err,
res )
Value:
_eth_handle_error(err, res)

Variable Documentation

◆ eth_config

eth_config_t eth_config
Initial value:
= {
.net_info = {
.mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef},
.ip = {192, 168, 10, 41},
.sn = {255, 255, 255, 0},
.gw = {192, 168, 10, 1},
},
.udp_bc_addr = {192, 168, 10, 255},
.udp_bc_port = 5005,
.udp_bc_sock = DAQ_SOCKET_UDP_BROADCAST,
.tcp_port = 5005,
.tcp_sock = DAQ_SOCKET_TCP,
}