pub struct PeripheralType<P: Peripheral> {
pub registertype: Reg<RegisterType, P>,
}Expand description
type: only on peripheral struct
Fields§
§registertype: Reg<RegisterType, P>Implementations§
Source§impl<P: Peripheral> PeripheralType<P>
impl<P: Peripheral> PeripheralType<P>
Sourcepub fn into_dyn(self) -> &'static mut DynPeripheralType
pub fn into_dyn(self) -> &'static mut DynPeripheralType
Erase peripheral information
This allows to choose at runtime which instance of a peripheral to use.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for PeripheralType<P>
impl<P> RefUnwindSafe for PeripheralType<P>where
P: RefUnwindSafe,
impl<P> Send for PeripheralType<P>where
P: Send,
impl<P> Sync for PeripheralType<P>where
P: Sync,
impl<P> Unpin for PeripheralType<P>where
P: Unpin,
impl<P> UnwindSafe for PeripheralType<P>where
P: UnwindSafe,
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