pub struct ParlIo<'d, Dm>where
    Dm: DriverMode,{
    pub tx: TxCreator<'d, Dm>,
    pub rx: RxCreator<'d, Dm>,
}Expand description
Parallel IO
Fields§
§tx: TxCreator<'d, Dm>The transmitter (TX) channel responsible for handling DMA transfers in the parallel I/O operation.
rx: RxCreator<'d, Dm>The receiver (RX) channel responsible for handling DMA transfers in the parallel I/O operation.
Implementations§
Source§impl<'d> ParlIo<'d, Blocking>
 
impl<'d> ParlIo<'d, Blocking>
Sourcepub fn new(
    _parl_io: PARL_IO<'d>,
    dma_channel: impl DmaChannelFor<PARL_IO<'d>>,
) -> Result<Self, Error>
 
pub fn new( _parl_io: PARL_IO<'d>, dma_channel: impl DmaChannelFor<PARL_IO<'d>>, ) -> Result<Self, Error>
Create a new instance of ParlIo
Sourcepub fn into_async(self) -> ParlIo<'d, Async>
 
pub fn into_async(self) -> ParlIo<'d, Async>
Convert to an async version.
Sourcepub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
 Available on crate feature unstable only.
pub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
unstable only.Sets the interrupt handler, enables it with crate::interrupt::Priority::min()
Interrupts are not enabled at the peripheral level here.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn listen(&mut self, interrupts: impl Into<EnumSet<ParlIoInterrupt>>)
 
pub fn listen(&mut self, interrupts: impl Into<EnumSet<ParlIoInterrupt>>)
Listen for the given interrupts
Sourcepub fn unlisten(&mut self, interrupts: impl Into<EnumSet<ParlIoInterrupt>>)
 
pub fn unlisten(&mut self, interrupts: impl Into<EnumSet<ParlIoInterrupt>>)
Unlisten the given interrupts
Sourcepub fn interrupts(&mut self) -> EnumSet<ParlIoInterrupt>
 
pub fn interrupts(&mut self) -> EnumSet<ParlIoInterrupt>
Gets asserted interrupts
Sourcepub fn clear_interrupts(&mut self, interrupts: EnumSet<ParlIoInterrupt>)
 
pub fn clear_interrupts(&mut self, interrupts: EnumSet<ParlIoInterrupt>)
Resets asserted interrupts
Trait Implementations§
Source§impl InterruptConfigurable for ParlIo<'_, Blocking>
Available on crate feature unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
 
impl InterruptConfigurable for ParlIo<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.