pub struct ParlIoRxOnly<'d, Dm>where
Dm: DriverMode,{
pub rx: RxCreator<'d, Dm>,
}
unstable
only.Expand description
Parallel IO in half duplex / RX only mode
Fields§
§rx: RxCreator<'d, Dm>
The receiver (RX) channel responsible for handling DMA transfers in the parallel I/O operation.
Implementations§
Source§impl<'d> ParlIoRxOnly<'d, Blocking>
impl<'d> ParlIoRxOnly<'d, Blocking>
Sourcepub fn new<CH>(
_parl_io: impl Peripheral<P = PARL_IO> + 'd,
dma_channel: impl Peripheral<P = CH> + 'd,
frequency: Rate,
) -> Result<Self, Error>where
CH: RxChannelFor<PARL_IO>,
pub fn new<CH>(
_parl_io: impl Peripheral<P = PARL_IO> + 'd,
dma_channel: impl Peripheral<P = CH> + 'd,
frequency: Rate,
) -> Result<Self, Error>where
CH: RxChannelFor<PARL_IO>,
Create a new ParlIoRxOnly instance
Sourcepub fn into_async(self) -> ParlIoRxOnly<'d, Async>
pub fn into_async(self) -> ParlIoRxOnly<'d, Async>
Converts to Async mode.
Sourcepub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
pub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
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: impl Into<EnumSet<ParlIoInterrupt>>,
)
pub fn clear_interrupts( &mut self, interrupts: impl Into<EnumSet<ParlIoInterrupt>>, )
Resets asserted interrupts
Source§impl<'d> ParlIoRxOnly<'d, Async>
impl<'d> ParlIoRxOnly<'d, Async>
Sourcepub fn into_blocking(self) -> ParlIoRxOnly<'d, Blocking>
pub fn into_blocking(self) -> ParlIoRxOnly<'d, Blocking>
Convert to a blocking version.
Trait Implementations§
Source§impl InterruptConfigurable for ParlIoRxOnly<'_, Blocking>
§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 ParlIoRxOnly<'_, Blocking>
§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.