pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn setup_packet_low(&self) -> &Reg<SETUP_PACKET_LOW_SPEC>
pub const fn setup_packet_low(&self) -> &Reg<SETUP_PACKET_LOW_SPEC>
0x00 - Bytes 0-3 of the SETUP packet from the host.
Sourcepub const fn setup_packet_high(&self) -> &Reg<SETUP_PACKET_HIGH_SPEC>
pub const fn setup_packet_high(&self) -> &Reg<SETUP_PACKET_HIGH_SPEC>
0x04 - Bytes 4-7 of the setup packet from the host.
Sourcepub const fn ep_control(&self, n: usize) -> &Reg<EP_CONTROL_SPEC>
pub const fn ep_control(&self, n: usize) -> &Reg<EP_CONTROL_SPEC>
0x08..0x80 - TODO
Sourcepub fn ep_control_iter(&self) -> impl Iterator<Item = &Reg<EP_CONTROL_SPEC>>
pub fn ep_control_iter(&self) -> impl Iterator<Item = &Reg<EP_CONTROL_SPEC>>
Iterator for array of: 0x08..0x80 - TODO
Sourcepub const fn ep_buffer_control(&self, n: usize) -> &Reg<EP_BUFFER_CONTROL_SPEC>
pub const fn ep_buffer_control(&self, n: usize) -> &Reg<EP_BUFFER_CONTROL_SPEC>
0x80..0x100 - TODO
Sourcepub fn ep_buffer_control_iter(
&self,
) -> impl Iterator<Item = &Reg<EP_BUFFER_CONTROL_SPEC>>
pub fn ep_buffer_control_iter( &self, ) -> impl Iterator<Item = &Reg<EP_BUFFER_CONTROL_SPEC>>
Iterator for array of: 0x80..0x100 - TODO
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more