pub struct ParlIoTxOnly<'d, Dm>where
Dm: DriverMode,{
pub tx: TxCreator<'d, Dm>,
}
unstable
only.Expand description
Parallel IO in half duplex / TX only mode
Fields§
§tx: TxCreator<'d, Dm>
The transmitter (TX) channel responsible for handling DMA transfers in the parallel I/O operation.
Implementations§
Source§impl<'d> ParlIoTxOnly<'d, Blocking>
impl<'d> ParlIoTxOnly<'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: TxChannelFor<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: TxChannelFor<PARL_IO>,
Creates a new ParlIoTxOnly
Sourcepub fn into_async(self) -> ParlIoTxOnly<'d, Async>
pub fn into_async(self) -> ParlIoTxOnly<'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> ParlIoTxOnly<'d, Async>
impl<'d> ParlIoTxOnly<'d, Async>
Sourcepub fn into_blocking(self) -> ParlIoTxOnly<'d, Blocking>
pub fn into_blocking(self) -> ParlIoTxOnly<'d, Blocking>
Convert to a blocking version.
Trait Implementations§
Source§impl InterruptConfigurable for ParlIoTxOnly<'_, 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 ParlIoTxOnly<'_, 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.