[−][src]Enum w5500_ll::Socket
W5500 sockets.
Variants
Implementations
impl Socket
[src]
pub const fn block(self) -> u8
[src]
Get the socket register block select bits.
Example
use w5500_ll::Socket; assert_eq!(Socket::Socket0.block(), 0b00001); assert_eq!(Socket::Socket1.block(), 0b00101); assert_eq!(Socket::Socket2.block(), 0b01001); assert_eq!(Socket::Socket3.block(), 0b01101); assert_eq!(Socket::Socket4.block(), 0b10001); assert_eq!(Socket::Socket5.block(), 0b10101); assert_eq!(Socket::Socket6.block(), 0b11001); assert_eq!(Socket::Socket7.block(), 0b11101);
pub const fn tx_block(self) -> u8
[src]
Get the socket TX buffer block select bits.
Example
use w5500_ll::Socket; assert_eq!(Socket::Socket0.tx_block(), 0b00010); assert_eq!(Socket::Socket1.tx_block(), 0b00110); assert_eq!(Socket::Socket2.tx_block(), 0b01010); assert_eq!(Socket::Socket3.tx_block(), 0b01110); assert_eq!(Socket::Socket4.tx_block(), 0b10010); assert_eq!(Socket::Socket5.tx_block(), 0b10110); assert_eq!(Socket::Socket6.tx_block(), 0b11010); assert_eq!(Socket::Socket7.tx_block(), 0b11110);
pub const fn rx_block(self) -> u8
[src]
Get the socket RX buffer block select bits.
Example
use w5500_ll::Socket; assert_eq!(Socket::Socket0.rx_block(), 0b00011); assert_eq!(Socket::Socket1.rx_block(), 0b00111); assert_eq!(Socket::Socket2.rx_block(), 0b01011); assert_eq!(Socket::Socket3.rx_block(), 0b01111); assert_eq!(Socket::Socket4.rx_block(), 0b10011); assert_eq!(Socket::Socket5.rx_block(), 0b10111); assert_eq!(Socket::Socket6.rx_block(), 0b11011); assert_eq!(Socket::Socket7.rx_block(), 0b11111);
Trait Implementations
impl Clone for Socket
[src]
pub fn clone(&self) -> Socket
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Socket
[src]
impl Debug for Socket
[src]
impl Eq for Socket
[src]
impl Hash for Socket
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Socket
[src]
pub fn cmp(&self, other: &Socket) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Socket> for Socket
[src]
pub fn eq(&self, other: &Socket) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Socket> for Socket
[src]
pub fn partial_cmp(&self, other: &Socket) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Socket
[src]
impl StructuralPartialEq for Socket
[src]
impl TryFrom<u8> for Socket
[src]
Auto Trait Implementations
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,
pub 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.
pub 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>,