pub trait ChannelEnable<const C: u8>: Instance {
// Required methods
fn set_chxen(&mut self, on: bool);
fn set_chxie(&mut self, on: bool);
fn read_chxie(&self) -> bool;
fn read_chxif(&self) -> bool;
fn clear_chxif(&mut self);
}Expand description
The switch turning channel C on, whichever direction it points.
CHxEN releases the output on a compare channel and arms the latch on a
capture one. Implemented for the timer/channel pairs that exist: TIMER13
has channel 0 alone, TIMER5 none at all.
Required Methods§
Sourcefn set_chxie(&mut self, on: bool)
fn set_chxie(&mut self, on: bool)
Lets this channel’s event through to the NVIC. The flag is raised either way, and every channel shares the timer’s one interrupt line.
Sourcefn read_chxie(&self) -> bool
fn read_chxie(&self) -> bool
Whether this channel’s event reaches the NVIC.
Sourcefn read_chxif(&self) -> bool
fn read_chxif(&self) -> bool
Channel flag — a capture latched or a compare matched, depending on the role the channel is in. Set by hardware, never cleared by it.
Sourcefn clear_chxif(&mut self)
fn clear_chxif(&mut self)
Clears the channel flag.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".