Struct rp2040_pac2::usb::regs::AddrEndp[][src]

#[repr(transparent)]pub struct AddrEndp(pub u32);

Device address and endpoint control

Implementations

impl AddrEndp[src]

pub const fn endpoint(&self) -> u8[src]

Device endpoint to send data to. Only valid for HOST mode.

pub fn set_endpoint(&mut self, val: u8)[src]

Device endpoint to send data to. Only valid for HOST mode.

pub const fn address(&self) -> u8[src]

In device mode, the address that the device should respond to. Set in response to a SET_ADDR setup packet from the host. In host mode set to the address of the device to communicate with.

pub fn set_address(&mut self, val: u8)[src]

In device mode, the address that the device should respond to. Set in response to a SET_ADDR setup packet from the host. In host mode set to the address of the device to communicate with.

Trait Implementations

impl Clone for AddrEndp[src]

impl Copy for AddrEndp[src]

impl Default for AddrEndp[src]

Auto Trait Implementations

impl Send for AddrEndp

impl Sync for AddrEndp

impl Unpin for AddrEndp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.