Skip to main content

DmaWord

Trait DmaWord 

Source
pub trait DmaWord {
    const WIDTH: Width;
}
Expand description

A type usable as a DMA transfer unit, mapping to its Width.

Bounds the peripheral’s word type so only u8/u16/u32 qualify, and carries the Width that a channel writes into PWIDTH/MWIDTH.

Required Associated Constants§

Source

const WIDTH: Width

The transfer width of this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DmaWord for u8

Source§

const WIDTH: Width = Width::Bits8

Source§

impl DmaWord for u16

Source§

const WIDTH: Width = Width::Bits16

Source§

impl DmaWord for u32

Source§

const WIDTH: Width = Width::Bits32

Implementors§