[−][src]Struct w5500::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.
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]
chip_select: ChipSelect,
spi: &mut Spi,
wol: OnWakeOnLan,
ping: OnPingRequest,
mode: ConnectionType,
arp: ArpResponses
) -> Result<Self, TransferError<Spi::Error, ChipSelectError>>
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]
&'a mut self,
spi: &'b mut Spi
) -> Result<ActiveW5500<'a, 'b, ChipSelect, Spi>, TransferError<Spi::Error, ChipSelectError>>
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,
ChipSelect: Send,
impl<ChipSelect> Sync for W5500<ChipSelect> where
ChipSelect: Sync,
ChipSelect: Sync,
impl<ChipSelect> Unpin for W5500<ChipSelect> where
ChipSelect: Unpin,
ChipSelect: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,