Trait embassy_stm32::dma::word::Word

source ·
pub trait Word: Word + Default + Copy + 'static {
    // Required methods
    fn size() -> WordSize;
    fn bits() -> usize;
}
Expand description

DMA word trait.

This is implemented for u8, u16, u32, etc.

Required Methods§

source

fn size() -> WordSize

Word size

source

fn bits() -> usize

Amount of bits of this word size.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Word for u8

source§

impl Word for u16

source§

impl Word for u32

Implementors§

source§

impl Word for U1

source§

impl Word for U2

source§

impl Word for U3

source§

impl Word for U4

source§

impl Word for U5

source§

impl Word for U6

source§

impl Word for U7

source§

impl Word for U9

source§

impl Word for U10

source§

impl Word for U11

source§

impl Word for U12

source§

impl Word for U13

source§

impl Word for U14

source§

impl Word for U15

source§

impl Word for U17

source§

impl Word for U18

source§

impl Word for U19

source§

impl Word for U20

source§

impl Word for U21

source§

impl Word for U22

source§

impl Word for U23

source§

impl Word for U24

source§

impl Word for U25

source§

impl Word for U26

source§

impl Word for U27

source§

impl Word for U28

source§

impl Word for U29

source§

impl Word for U30

source§

impl Word for U31