Struct stm32f0xx_hal::serial::Serial[][src]

pub struct Serial<USART, TXPIN, RXPIN> { /* fields omitted */ }
Expand description

Serial abstraction

Implementations

Creates a new serial instance

Creates a new tx-only serial instance

Creates a new rx-only serial instance

Starts listening for an interrupt event

Stop listening for an interrupt event

Creates a new serial instance

Creates a new tx-only serial instance

Creates a new rx-only serial instance

Starts listening for an interrupt event

Stop listening for an interrupt event

Splits the UART Peripheral in a Tx and an Rx part This is required for sending/receiving

Trait Implementations

Tries to read a byte from the uart

Read error

Writes a string slice into this writer, returning whether the write succeeded. Read more

Writes a char into this writer, returning whether the write succeeded. Read more

Glue for usage of the write! macro with implementors of this trait. Read more

Ensures that none of the previously written words are still buffered

Tries to write a byte to the uart Fails if the transmit buffer is full

Write error

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

Performs the conversion.

Performs the conversion.

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.