pub trait CaptureCompare16bitInstance: GeneralPurpose16bitInstance {
Show 16 methods // Required method fn enable_outputs(&mut self); // Provided methods fn set_input_capture_filter(&mut self, channel: Channel, icf: Icf) { ... } fn clear_input_interrupt(&mut self, channel: Channel) { ... } fn enable_input_interrupt(&mut self, channel: Channel, enable: bool) { ... } fn set_input_capture_prescaler(&mut self, channel: Channel, factor: u8) { ... } fn set_input_ti_selection( &mut self, channel: Channel, tisel: InputTISelection ) { ... } fn set_input_capture_mode( &mut self, channel: Channel, mode: InputCaptureMode ) { ... } fn set_output_compare_mode( &mut self, channel: Channel, mode: OutputCompareMode ) { ... } fn set_output_polarity( &mut self, channel: Channel, polarity: OutputPolarity ) { ... } fn enable_channel(&mut self, channel: Channel, enable: bool) { ... } fn get_channel_enable_state(&self, channel: Channel) -> bool { ... } fn set_compare_value(&mut self, channel: Channel, value: u16) { ... } fn get_capture_value(&mut self, channel: Channel) -> u16 { ... } fn get_max_compare_value(&self) -> u16 { ... } fn get_compare_value(&self, channel: Channel) -> u16 { ... } fn set_output_compare_preload(&mut self, channel: Channel, preload: bool) { ... }
}
Expand description

Capture/Compare 16-bit timer instance.

Required Methods§

source

fn enable_outputs(&mut self)

Enable timer outputs.

Provided Methods§

source

fn set_input_capture_filter(&mut self, channel: Channel, icf: Icf)

Set input capture filter.

source

fn clear_input_interrupt(&mut self, channel: Channel)

Clear input interrupt.

source

fn enable_input_interrupt(&mut self, channel: Channel, enable: bool)

Enable input interrupt.

source

fn set_input_capture_prescaler(&mut self, channel: Channel, factor: u8)

Set input capture prescaler.

source

fn set_input_ti_selection(&mut self, channel: Channel, tisel: InputTISelection)

Set input TI selection.

source

fn set_input_capture_mode(&mut self, channel: Channel, mode: InputCaptureMode)

Set input capture mode.

source

fn set_output_compare_mode(&mut self, channel: Channel, mode: OutputCompareMode)

Set output compare mode.

source

fn set_output_polarity(&mut self, channel: Channel, polarity: OutputPolarity)

Set output polarity.

source

fn enable_channel(&mut self, channel: Channel, enable: bool)

Enable/disable a channel.

source

fn get_channel_enable_state(&self, channel: Channel) -> bool

Get enable/disable state of a channel

source

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

Set compare value for a channel.

source

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

Get capture value for a channel.

source

fn get_max_compare_value(&self) -> u16

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

source

fn get_compare_value(&self, channel: Channel) -> u16

Get compare value for a channel.

source

fn set_output_compare_preload(&mut self, channel: Channel, preload: bool)

Set output compare preload.

Object Safety§

This trait is not object safe.

Implementors§