[][src]Crate w5500

Structs

ActiveW5500

This - by concept meant to be a temporary - instance allows to directly communicate with the w5500 device. The reference to the W5500 provides the chip-select OutputPin as well as its current state. The given SPI interface is borrowed for as long as this instance lives to communicate with the W5500 chip. Drop this instance to re-use the SPI bus for communication with another device.

IpAddress

IP Address struct. Represents an IP address as a u8 array of length 4. Can be instantiated with IpAddress::new

MacAddress

MAC address struct. Represents a MAC address as a u8 array of length 6. Can be instantiated with MacAddress::new

UdpSocket

Represents a Socket that has been initialized to use the UDP protocol

UninitializedSocket

Represents a Socket that has not yet been initialized for a particular protocol

W5500

The first level of instantiating communication with the W5500 device. This type is not used for communication, but to keep track of the state of the device. Calling W5500::activate will return an ActiveW5500 which can be used to communicate with the device. This allows the SPI-Bus to be used for other devices while not being activated without loosing the state.

Enums

ArpResponses
ConnectionType

Use ConnectionType::PPoE when talking to an ADSL modem. Otherwise use ConnectionType::Ethernet

Interrupt

Interrupt state bits

OnPingRequest

Settings for ping. Allows the W5500 to respond to or ignore network ping requests.

OnWakeOnLan

Settings for wake on LAN. Allows the W5500 to optionally emit an interrupt upon receiving a WOL magic packet.

Protocol

Register protocol mode bits

Register

Chip register names

Socket

Identifiers for each socket on the W5500

SocketCommand

Bits for socket commands

SocketRegister

Offset addresses in each socket register

TransferError

Error enum that represents the union between SPI hardware errors and digital IO pin errors. Returned as an Error type by many ActiveW5500 operations that talk to the chip

Traits

IntoUdpSocket
Udp

UDP trait that defines send and receive methods for UDP packets