pub struct DsiHost<'d, T: Instance> { /* private fields */ }
Expand description
DSIHOST driver.
Implementations§
source§impl<'d, T: Instance> DsiHost<'d, T>
impl<'d, T: Instance> DsiHost<'d, T>
sourcepub fn new(
_peri: impl Peripheral<P = T> + 'd,
te: impl Peripheral<P = impl TePin<T>> + 'd,
) -> Self
pub fn new( _peri: impl Peripheral<P = T> + 'd, te: impl Peripheral<P = impl TePin<T>> + 'd, ) -> Self
Note: Full-Duplex modes are not supported at this time
sourcepub fn get_version(&self) -> u32
pub fn get_version(&self) -> u32
Get the DSIHOST hardware version. Found in the reference manual for comparison.
sourcepub fn enable(&mut self)
pub fn enable(&mut self)
Set the enable bit in the control register and assert that it has been enabled
sourcepub fn disable(&mut self)
pub fn disable(&mut self)
Unset the enable bit in the control register and assert that it has been disabled
sourcepub fn enable_wrapper_dsi(&mut self)
pub fn enable_wrapper_dsi(&mut self)
Set the DSI enable bit in the wrapper control register and assert that it has been enabled
sourcepub fn disable_wrapper_dsi(&mut self)
pub fn disable_wrapper_dsi(&mut self)
Unset the DSI enable bit in the wrapper control register and assert that it has been disabled
Trait Implementations§
Auto Trait Implementations§
impl<'d, T> Freeze for DsiHost<'d, T>
impl<'d, T> RefUnwindSafe for DsiHost<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for DsiHost<'d, T>where
T: Send,
impl<'d, T> Sync for DsiHost<'d, T>where
T: Sync,
impl<'d, T> Unpin for DsiHost<'d, T>
impl<'d, T> !UnwindSafe for DsiHost<'d, T>
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