Struct stm32_hal2::usart::UsartConfig
source · pub struct UsartConfig {
pub word_len: WordLen,
pub stop_bits: StopBits,
pub oversampling: OverSampling,
pub parity: Parity,
pub irda_mode: IrdaMode,
pub fifo_enabled: bool,
pub overrun_disabled: bool,
}Expand description
Configuration for Usart. Can be used with default::Default.
Fields§
§word_len: WordLenWord length. Defaults to 8-bits.
stop_bits: StopBitsStop bits: Defaults to 1.
oversampling: OverSamplingOversampling rate. Defaults to 16x.
parity: ParityEnable or disable parity control. Defaults to disabled.
irda_mode: IrdaModeIrDA mode: Enables this protocol, which is used to communicate with IR devices.
fifo_enabled: boolThe first-in, first-out buffer is enabled. Defaults to false,
overrun_disabled: boolOptionally, disable the overrun functionality. Defaults to false.