Struct enc424j600::Enc424j600
source · pub struct Enc424j600<SPI: Transfer<u8>, NSS: OutputPin> { /* private fields */ }
Expand description
ENC424J600 controller in SPI mode
Implementations§
source§impl<SPI: Transfer<u8>, NSS: OutputPin> Enc424j600<SPI, NSS>
impl<SPI: Transfer<u8>, NSS: OutputPin> Enc424j600<SPI, NSS>
pub fn new(spi: SPI, nss: NSS) -> Self
pub fn init(&mut self, delay: &mut impl DelayUs<u16>) -> Result<(), Error>
pub fn reset(&mut self, delay: &mut impl DelayUs<u16>) -> Result<(), Error>
pub fn init_rxbuf(&mut self) -> Result<(), Error>
pub fn init_txbuf(&mut self) -> Result<(), Error>
sourcepub fn set_promiscuous(&mut self) -> Result<(), Error>
pub fn set_promiscuous(&mut self) -> Result<(), Error>
Set controller to Promiscuous Mode
pub fn write_mac_addr(&mut self, mac: &[u8]) -> Result<(), Error>
Trait Implementations§
source§impl<SPI: Transfer<u8>, NSS: OutputPin> EthPhy for Enc424j600<SPI, NSS>
impl<SPI: Transfer<u8>, NSS: OutputPin> EthPhy for Enc424j600<SPI, NSS>
Auto Trait Implementations§
impl<SPI, NSS> RefUnwindSafe for Enc424j600<SPI, NSS>where NSS: RefUnwindSafe, SPI: RefUnwindSafe,
impl<SPI, NSS> Send for Enc424j600<SPI, NSS>where NSS: Send, SPI: Send,
impl<SPI, NSS> Sync for Enc424j600<SPI, NSS>where NSS: Sync, SPI: Sync,
impl<SPI, NSS> Unpin for Enc424j600<SPI, NSS>where NSS: Unpin, SPI: Unpin,
impl<SPI, NSS> UnwindSafe for Enc424j600<SPI, NSS>where NSS: UnwindSafe, SPI: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more