pub struct Rmt<'rmt, Dm>where
    Dm: DriverMode,{
    pub channel0: ChannelCreator<'rmt, Dm, 0>,
    pub channel1: ChannelCreator<'rmt, Dm, 1>,
    pub channel2: ChannelCreator<'rmt, Dm, 2>,
    pub channel3: ChannelCreator<'rmt, Dm, 3>,
    /* private fields */
}Expand description
RMT Instance
Fields§
§channel0: ChannelCreator<'rmt, Dm, 0>RMT Channel 0
channel1: ChannelCreator<'rmt, Dm, 1>RMT Channel 1
channel2: ChannelCreator<'rmt, Dm, 2>RMT Channel 2
channel3: ChannelCreator<'rmt, Dm, 3>RMT Channel 3
Implementations§
Source§impl<'rmt> Rmt<'rmt, Blocking>
 
impl<'rmt> Rmt<'rmt, Blocking>
Sourcepub fn new(peripheral: RMT<'rmt>, frequency: Rate) -> Result<Self, Error>
 
pub fn new(peripheral: RMT<'rmt>, frequency: Rate) -> Result<Self, Error>
Create a new RMT instance
Sourcepub fn into_async(self) -> Rmt<'rmt, Async>
 
pub fn into_async(self) -> Rmt<'rmt, Async>
Reconfigures the driver for asynchronous operation.
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.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>
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 Rmt<'_, 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.
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