#[repr(transparent)]pub struct Eptoggle(pub u32);Expand description
USB Endpoint toggle register
Tuple Fields§
§0: u32Implementations§
Source§impl Eptoggle
impl Eptoggle
Sourcepub const fn toggle(&self) -> u16
pub const fn toggle(&self) -> u16
Endpoint data toggle: This field indicates the current value of the data toggle for the corresponding endpoint.
Sourcepub const fn set_toggle(&mut self, val: u16)
pub const fn set_toggle(&mut self, val: u16)
Endpoint data toggle: This field indicates the current value of the data toggle for the corresponding endpoint.
Trait Implementations§
impl Copy for Eptoggle
impl Eq for Eptoggle
impl StructuralPartialEq for Eptoggle
Auto Trait Implementations§
impl Freeze for Eptoggle
impl RefUnwindSafe for Eptoggle
impl Send for Eptoggle
impl Sync for Eptoggle
impl Unpin for Eptoggle
impl UnwindSafe for Eptoggle
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