pub struct Config { /* private fields */ }
Expand description

USART Configuration structure

Implementations

Set the baudrate to a specific value

Set parity to none

Set parity to even

Set parity to odd

Set the number of stopbits

Set the oversampling size

Set the character match character

Set the receiver timeout, the value is the number of bit durations

Note that it only takes 24 bits, using more than this will cause a panic.

Disable overrun detection

Change to onebit sampling

Trait Implementations

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

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.