Struct MaxPkt
#[repr(transparent)]pub struct MaxPkt(pub u8);
Expand description
USB Endpoint Maximum Packet Size Register.
Tuple Fields§
§0: u8
Implementations§
§impl MaxPkt
impl MaxPkt
pub const fn max_pkt_size(&self) -> u8
pub const fn max_pkt_size(&self) -> u8
Maximum packet size for the endpoint.
pub fn set_max_pkt_size(&mut self, val: u8)
pub fn set_max_pkt_size(&mut self, val: u8)
Maximum packet size for the endpoint.
Trait Implementations§
impl Copy for MaxPkt
impl Eq for MaxPkt
impl StructuralPartialEq for MaxPkt
Auto Trait Implementations§
impl Freeze for MaxPkt
impl RefUnwindSafe for MaxPkt
impl Send for MaxPkt
impl Sync for MaxPkt
impl Unpin for MaxPkt
impl UnwindSafe for MaxPkt
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