#[repr(u8)]pub enum Master {
SLAVE_MODE = 0,
MASTER_MODE = 1,
}Variants§
SLAVE_MODE = 0
Slave mode. The SPI will operate in slave mode. SCK, MOSI, and the SSEL signals are inputs, MISO is an output.
MASTER_MODE = 1
Master mode. The SPI will operate in master mode. SCK, MOSI, and the SSEL signals are outputs, MISO is an input.
Implementations§
Trait Implementations§
Source§impl Ord for Master
impl Ord for Master
Source§impl PartialOrd for Master
impl PartialOrd for Master
impl Copy for Master
impl Eq for Master
impl StructuralPartialEq for Master
Auto Trait Implementations§
impl Freeze for Master
impl RefUnwindSafe for Master
impl Send for Master
impl Sync for Master
impl Unpin for Master
impl UnwindSafe for Master
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