pub struct UhciTx<'d, Dm>where
    Dm: DriverMode,{
    pub uart_tx: UartTx<'d, Dm>,
    /* private fields */
}Expand description
Splitted Uhci structs, Tx part for sending data
Fields§
§uart_tx: UartTx<'d, Dm>Tx of the used uart. You can configure it by accessing the value
Implementations§
Source§impl<'d, Dm> UhciTx<'d, Dm>where
    Dm: DriverMode,
 
impl<'d, Dm> UhciTx<'d, Dm>where
    Dm: DriverMode,
Sourcepub fn write<Buf: DmaTxBuffer>(
    self,
    tx_buffer: Buf,
) -> Result<UhciDmaTxTransfer<'d, Dm, Buf>, (Error, Self, Buf)>
 
pub fn write<Buf: DmaTxBuffer>( self, tx_buffer: Buf, ) -> Result<UhciDmaTxTransfer<'d, Dm, Buf>, (Error, Self, Buf)>
Starts the write DMA transfer and returns the instance of UhciDmaTxTransfer
Sourcepub fn apply_config(&mut self, config: &TxConfig) -> Result<(), ConfigError>
 
pub fn apply_config(&mut self, config: &TxConfig) -> Result<(), ConfigError>
Sets the config to the UHCI peripheral
Trait Implementations§
Source§impl<Dm> SetConfig for UhciTx<'_, Dm>where
    Dm: DriverMode,
 
impl<Dm> SetConfig for UhciTx<'_, Dm>where
    Dm: DriverMode,
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.