Struct stabilizer::hardware::pounder::QspiInterface
source · pub struct QspiInterface {
pub qspi: Qspi<QUADSPI>,
/* private fields */
}
Expand description
A structure for the QSPI interface for the DDS.
Fields§
§qspi: Qspi<QUADSPI>
Implementations§
Trait Implementations§
source§impl Interface for QspiInterface
impl Interface for QspiInterface
source§fn configure_mode(&mut self, mode: Mode) -> Result<(), Error>
fn configure_mode(&mut self, mode: Mode) -> Result<(), Error>
Configure the operations mode of the interface.
Args:
mode
- The newly desired operational mode.
source§fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Error>
fn write(&mut self, addr: u8, data: &[u8]) -> Result<(), Error>
Write data over QSPI to the DDS.
Args:
addr
- The address to write over QSPI to the DDS.data
- The data to write.
type Error = Error
fn read(&mut self, addr: u8, dest: &mut [u8]) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for QspiInterface
impl RefUnwindSafe for QspiInterface
impl Send for QspiInterface
impl !Sync for QspiInterface
impl Unpin for QspiInterface
impl UnwindSafe for QspiInterface
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