[][src]Struct w5500::W5500

pub struct W5500<ChipSelect: OutputPin> { /* fields omitted */ }

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.

Implementations

impl<ChipSelectError, ChipSelect: OutputPin<Error = ChipSelectError>> W5500<ChipSelect>[src]

pub fn with_initialisation<Spi: FullDuplex<u8>>(
    chip_select: ChipSelect,
    spi: &mut Spi,
    wol: OnWakeOnLan,
    ping: OnPingRequest,
    mode: ConnectionType,
    arp: ArpResponses
) -> Result<Self, TransferError<Spi::Error, ChipSelectError>>
[src]

Creates a new instance and initializes the device accordingly to the parameters. To do so, it briefly activates the W5500, to set it up with the specified configuration.

pub fn take_socket(&mut self, socket: Socket) -> Option<UninitializedSocket>[src]

Returns the requested socket if it is not already taken.

pub fn activate<'a, 'b, Spi: FullDuplex<u8>>(
    &'a mut self,
    spi: &'b mut Spi
) -> Result<ActiveW5500<'a, 'b, ChipSelect, Spi>, TransferError<Spi::Error, ChipSelectError>>
[src]

Returns a ActiveW5500 which can be used to modify the device and to communicate with other ethernet devices within the connected LAN.

Auto Trait Implementations

impl<ChipSelect> Send for W5500<ChipSelect> where
    ChipSelect: Send

impl<ChipSelect> Sync for W5500<ChipSelect> where
    ChipSelect: Sync

impl<ChipSelect> Unpin for W5500<ChipSelect> where
    ChipSelect: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.