embassy-stm32

Crates

0.1.0

Versions

stm32g431mb

Flavors

Trait CaptureCompare32bitInstance

Source
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§

Source

fn set_compare_value(&mut self, channel: Channel, value: u32)

Set comapre value for a channel.

Source

fn get_capture_value(&mut self, channel: Channel) -> u32

Get capture value for a channel.

Source

fn get_max_compare_value(&self) -> u32

Get max compare value. This depends on the timer frequency and the clock frequency from RCC.

Source

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.

Implementors§