pub struct UhciRx<'d, Dm>where
Dm: DriverMode,{
pub uart_rx: UartRx<'d, Dm>,
/* private fields */
}Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Expand description
Splitted Uhci structs, Rx part for receiving data
Fields§
§uart_rx: UartRx<'d, Dm>Rx of the used uart. You can configure it by accessing the value
Implementations§
Source§impl<'d, Dm> UhciRx<'d, Dm>where
Dm: DriverMode,
impl<'d, Dm> UhciRx<'d, Dm>where
Dm: DriverMode,
Sourcepub fn read<Buf: DmaRxBuffer>(
self,
rx_buffer: Buf,
) -> Result<UhciDmaRxTransfer<'d, Dm, Buf>, (Error, Self, Buf)>
pub fn read<Buf: DmaRxBuffer>( self, rx_buffer: Buf, ) -> Result<UhciDmaRxTransfer<'d, Dm, Buf>, (Error, Self, Buf)>
Starts the read DMA transfer and returns the instance of UhciDmaRxTransfer
Sourcepub fn apply_config(&mut self, config: &RxConfig) -> Result<(), ConfigError>
pub fn apply_config(&mut self, config: &RxConfig) -> Result<(), ConfigError>
Sets the config to the UHCI peripheral
Trait Implementations§
Source§impl<Dm> SetConfig for UhciRx<'_, Dm>where
Dm: DriverMode,
impl<Dm> SetConfig for UhciRx<'_, 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.