Struct esp8266_hal::spi::SPI1Master
source · [−]pub struct SPI1Master { /* private fields */ }
Implementations
sourceimpl SPI1Master
impl SPI1Master
pub fn new(
spi: SPI1,
sclk: Gpio14<HSPI>,
miso: Gpio12<HSPI>,
mosi: Gpio13<HSPI>,
frequency: SpiClock
) -> Self
sourcepub fn decompose(
self
) -> Result<(SPI1, Gpio14<HSPI>, Gpio12<HSPI>, Gpio13<HSPI>), Void>
pub fn decompose(
self
) -> Result<(SPI1, Gpio14<HSPI>, Gpio12<HSPI>, Gpio13<HSPI>), Void>
free up the spi device and return the pins used
pub fn set_data_mode(&mut self, mode: Mode)
pub fn set_frequency(&mut self, frequency: SpiClock)
Trait Implementations
sourceimpl FullDuplex<u8> for SPI1Master
impl FullDuplex<u8> for SPI1Master
impl Default<u8> for SPI1Master
impl Default<u8> for SPI1Master
Auto Trait Implementations
impl RefUnwindSafe for SPI1Master
impl Send for SPI1Master
impl !Sync for SPI1Master
impl Unpin for SPI1Master
impl UnwindSafe for SPI1Master
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
impl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
type Error = <S as FullDuplex<W>>::Error
Error type