Trait kernel::hil::uart::Configure

source ·
pub trait Configure {
    // Required method
    fn configure(&self, params: Parameters) -> Result<(), ErrorCode>;
}
Expand description

Trait for configuring a UART.

Required Methods§

source

fn configure(&self, params: Parameters) -> Result<(), ErrorCode>

Returns Ok(()), or

  • OFF: The underlying hardware is currently not available, perhaps because it has not been initialized or in the case of a shared hardware USART controller because it is set up for SPI.
  • INVAL: Impossible parameters (e.g. a baud_rate of 0)
  • ENOSUPPORT: The underlying UART cannot satisfy this configuration.

Implementors§