py32_metapac::usb::regs

Struct InCsr2

#[repr(transparent)]
pub struct InCsr2(pub u8);
Expand description

IN Endpoint Control Register 2.

Tuple Fields§

§0: u8

Implementations§

§

impl InCsr2

pub const fn frc_data_tog(&self) -> bool

Force Data Toggle. Forces toggle even without ACK and clears FIFO.

pub fn set_frc_data_tog(&mut self, val: bool)

Force Data Toggle. Forces toggle even without ACK and clears FIFO.

pub const fn dmae(&self) -> bool

DMA request enable for IN endpoint.

pub fn set_dmae(&mut self, val: bool)

DMA request enable for IN endpoint.

pub const fn mode(&self) -> Mode

Endpoint mode. 1, IN endpoint, 0, OUT endpoint.

pub fn set_mode(&mut self, val: Mode)

Endpoint mode. 1, IN endpoint, 0, OUT endpoint.

pub const fn iso(&self) -> bool

Enable ISO transmission. 1, ISO mode, 0, Bulk or Interrupt mode.

pub fn set_iso(&mut self, val: bool)

Enable ISO transmission. 1, ISO mode, 0, Bulk or Interrupt mode.

pub const fn auto_set(&self) -> bool

When set, automatically sets InPktRdy when the maximum packet size is written to the FIFO.

pub fn set_auto_set(&mut self, val: bool)

When set, automatically sets InPktRdy when the maximum packet size is written to the FIFO.

Trait Implementations§

§

impl Clone for InCsr2

§

fn clone(&self) -> InCsr2

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for InCsr2

§

fn default() -> InCsr2

Returns the “default value” for a type. Read more
§

impl PartialEq for InCsr2

§

fn eq(&self, other: &InCsr2) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for InCsr2

§

impl Eq for InCsr2

§

impl StructuralPartialEq for InCsr2

Auto Trait Implementations§

§

impl Freeze for InCsr2

§

impl RefUnwindSafe for InCsr2

§

impl Send for InCsr2

§

impl Sync for InCsr2

§

impl Unpin for InCsr2

§

impl UnwindSafe for InCsr2

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.