Struct DmaChannel2

Source
#[non_exhaustive]
pub struct DmaChannel2 {}
Available on crate feature unstable only.
Expand description

A description of a specific GDMA channel

Implementations§

Source§

impl DmaChannel2

Source

pub unsafe fn steal() -> Self

Unsafely constructs a new DMA channel.

§Safety

The caller must ensure that only a single instance is used.

Trait Implementations§

Source§

impl Debug for DmaChannel2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DmaChannel for DmaChannel2

Source§

type Rx = AnyGdmaRxChannel

A description of the RX half of a DMA Channel.
Source§

type Tx = AnyGdmaTxChannel

A description of the TX half of a DMA Channel.
Source§

unsafe fn split_internal(self, _: Internal) -> (Self::Rx, Self::Tx)

Splits the DMA channel into its RX and TX halves. Read more
Source§

fn split(self) -> (Self::Rx, Self::Tx)

Splits the DMA channel into its RX and TX halves.
Source§

impl Format for DmaChannel2

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl PartialEq for DmaChannel2

Source§

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

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

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

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

impl Peripheral for DmaChannel2

Source§

type P = DmaChannel2

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&self) -> Self::P

Unsafely clone (duplicate) a peripheral singleton. Read more
Source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more
Source§

fn map_into<U>(self) -> U
where Self::P: Into<U>, U: Peripheral<P = U>,

Map the peripheral using Into. Read more
Source§

fn map<U>(self, transform: impl FnOnce(Self::P) -> U) -> U
where U: Peripheral<P = U>,

Map the peripheral using Into. Read more
Source§

impl Eq for DmaChannel2

Source§

impl StructuralPartialEq for DmaChannel2

Auto Trait Implementations§

§

impl Freeze for DmaChannel2

§

impl RefUnwindSafe for DmaChannel2

§

impl Send for DmaChannel2

§

impl Sync for DmaChannel2

§

impl Unpin for DmaChannel2

§

impl UnwindSafe for DmaChannel2

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.