pub enum HdCommand {
WriteReg = 1,
ReadReg = 2,
WriteDma = 3,
ReadDma = 4,
WriteDone = 7,
ReadDone = 8,
Int1 = 9,
}Expand description
Represents a command on the half-duplex SPI interface.
Variants§
WriteReg = 1
Write to a 32-bit buffer register on the co-processor.
ReadReg = 2
Read from a 32-bit buffer register on the co-processor
WriteDma = 3
Write data to the co-processor.
ReadDma = 4
Read data from the co-processor.
WriteDone = 7
End of write.
ReadDone = 8
CMD8 - End of read.
Int1 = 9
CMD9 - The host is done with the register read. The co-processor can de-assert Data_Ready.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HdCommand
impl RefUnwindSafe for HdCommand
impl Send for HdCommand
impl Sync for HdCommand
impl Unpin for HdCommand
impl UnwindSafe for HdCommand
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