pub trait CaptureCompare32bitInstance: GeneralPurpose32bitInstance + CaptureCompare16bitInstance {
// Provided methods
fn set_compare_value(&mut self, channel: Channel, value: u32) { ... }
fn get_capture_value(&mut self, channel: Channel) -> u32 { ... }
fn get_max_compare_value(&self) -> u32 { ... }
fn get_compare_value(&self, channel: Channel) -> u32 { ... }
}
Expand description
Capture/Compare 32-bit timer instance.
Provided Methods§
Sourcefn set_compare_value(&mut self, channel: Channel, value: u32)
fn set_compare_value(&mut self, channel: Channel, value: u32)
Set comapre value for a channel.
Sourcefn get_capture_value(&mut self, channel: Channel) -> u32
fn get_capture_value(&mut self, channel: Channel) -> u32
Get capture value for a channel.
Sourcefn get_max_compare_value(&self) -> u32
fn get_max_compare_value(&self) -> u32
Get max compare value. This depends on the timer frequency and the clock frequency from RCC.
Sourcefn get_compare_value(&self, channel: Channel) -> u32
fn get_compare_value(&self, channel: Channel) -> u32
Get compare value for a channel.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.