#[repr(C)]pub struct uart_config {
pub baudrate: u32,
pub parity: u8,
pub stop_bits: u8,
pub data_bits: u8,
pub flow_ctrl: u8,
}Expand description
@brief UART controller configuration structure
Fields§
§baudrate: u32< Baudrate setting in bps
parity: u8< Parity bit, use @ref uart_config_parity
stop_bits: u8< Stop bits, use @ref uart_config_stop_bits
data_bits: u8< Data bits, use @ref uart_config_data_bits
flow_ctrl: u8< Flow control setting, use @ref uart_config_flow_control
Trait Implementations§
Source§impl Debug for uart_config
impl Debug for uart_config
Source§impl Default for uart_config
impl Default for uart_config
Source§fn default() -> uart_config
fn default() -> uart_config
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for uart_config
impl RefUnwindSafe for uart_config
impl Send for uart_config
impl Sync for uart_config
impl Unpin for uart_config
impl UnwindSafe for uart_config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more