pub struct Peripherals<TSci, TSdi, TDreq, TRst> {
pub sci: TSci,
pub sdi: TSdi,
pub dreq: TDreq,
pub xrst: TRst,
}Expand description
Contains all peripherals required to interface with VS1003
Fields§
§sci: TSciThe SCI SPI slave. Typically that will be the same SPI bus as SDI, with different CS (xCS).
sdi: TSdiThe SDI SPI Slave. Typically that will be the same SPI bus as SCI, with different CS (xDCS).
dreq: TDreqThe DREQ input pin.
xrst: TRstThe xRST output pin.
Trait Implementations§
Source§impl<TSci: Debug, TSdi: Debug, TDreq: Debug, TRst: Debug> Debug for Peripherals<TSci, TSdi, TDreq, TRst>
impl<TSci: Debug, TSdi: Debug, TDreq: Debug, TRst: Debug> Debug for Peripherals<TSci, TSdi, TDreq, TRst>
Auto Trait Implementations§
impl<TSci, TSdi, TDreq, TRst> Freeze for Peripherals<TSci, TSdi, TDreq, TRst>
impl<TSci, TSdi, TDreq, TRst> RefUnwindSafe for Peripherals<TSci, TSdi, TDreq, TRst>
impl<TSci, TSdi, TDreq, TRst> Send for Peripherals<TSci, TSdi, TDreq, TRst>
impl<TSci, TSdi, TDreq, TRst> Sync for Peripherals<TSci, TSdi, TDreq, TRst>
impl<TSci, TSdi, TDreq, TRst> Unpin for Peripherals<TSci, TSdi, TDreq, TRst>
impl<TSci, TSdi, TDreq, TRst> UnwindSafe for Peripherals<TSci, TSdi, TDreq, TRst>
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