embassy-stm32

Crates

git

Versions

stm32l4r5vi

Flavors

Skip to main content

UsartWord

Trait UsartWord 

Source
pub trait UsartWord: Word + SealedUsartWord { }
Expand description

The word sizes the USART data register can carry.

Selects the width used to access the data register, so that a 9 bit frame is read and written as a u16 while an 8 bit frame stays a u8.

Implemented for u8 and u16; this trait is sealed.

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 UsartWord for u8

Source§

impl UsartWord for u16

Implementors§