pub struct Rmt<'d, Dm>where
Dm: DriverMode,{
pub channel0: ChannelCreator<Dm, 0>,
pub channel1: ChannelCreator<Dm, 1>,
pub channel2: ChannelCreator<Dm, 2>,
pub channel3: ChannelCreator<Dm, 3>,
/* private fields */
}
Available on crate feature
unstable
only.Expand description
RMT Instance
Fields§
§channel0: ChannelCreator<Dm, 0>
RMT Channel 0.
channel1: ChannelCreator<Dm, 1>
RMT Channel 1.
channel2: ChannelCreator<Dm, 2>
RMT Channel 2.
channel3: ChannelCreator<Dm, 3>
RMT Channel 3.
Implementations§
Source§impl<'d> Rmt<'d, Blocking>
impl<'d> Rmt<'d, Blocking>
Sourcepub fn new(
peripheral: impl Peripheral<P = RMT> + 'd,
frequency: Rate,
) -> Result<Self, Error>
pub fn new( peripheral: impl Peripheral<P = RMT> + 'd, frequency: Rate, ) -> Result<Self, Error>
Create a new RMT instance
Sourcepub fn into_async(self) -> Rmt<'d, Async>
pub fn into_async(self) -> Rmt<'d, Async>
Reconfigures the driver for asynchronous operation.
Sourcepub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
pub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Registers an interrupt handler for the RMT peripheral.
Note that this will replace any previously registered interrupt handlers.
§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.
Trait Implementations§
Source§impl InterruptConfigurable for Rmt<'_, 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 Rmt<'_, 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.
Source§fn set_interrupt_handler(&mut self, handler: InterruptHandler)
fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Registers an interrupt handler for the peripheral. Read more