pub struct Uhci<'d, Dm>where
Dm: DriverMode,{ /* private fields */ }Expand description
UHCI (To use with UART over DMA)
Implementations§
Source§impl<'d, Dm> Uhci<'d, Dm>where
Dm: DriverMode,
impl<'d, Dm> Uhci<'d, Dm>where
Dm: DriverMode,
Sourcepub fn set_uart_config(
&mut self,
uart_config: &Config,
) -> Result<(), ConfigError>
pub fn set_uart_config( &mut self, uart_config: &Config, ) -> Result<(), ConfigError>
Sets the configuration of the consumed UART.
Sourcepub fn apply_rx_config(&mut self, config: &RxConfig) -> Result<(), ConfigError>
pub fn apply_rx_config(&mut self, config: &RxConfig) -> Result<(), ConfigError>
Sets the config to the UHCI peripheral, Rx part.
Sourcepub fn apply_tx_config(&mut self, config: &TxConfig) -> Result<(), ConfigError>
pub fn apply_tx_config(&mut self, config: &TxConfig) -> Result<(), ConfigError>
Sets the config to the UHCI peripheral, Tx part.
Trait Implementations§
Source§impl<Dm> SetConfig for Uhci<'_, Dm>where
Dm: DriverMode,
Available on crate feature unstable only.
impl<Dm> SetConfig for Uhci<'_, Dm>where
Dm: DriverMode,
Available on crate feature
unstable only.Source§type ConfigError = ConfigError
type ConfigError = ConfigError
The error type that can occur if
set_config fails.Source§fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
Set the configuration of the driver.