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§
sourcefn enable_outputs(&mut self)
fn enable_outputs(&mut self)
Enable timer outputs.
Provided Methods§
sourcefn set_input_capture_filter(&mut self, channel: Channel, icf: Icf)
fn set_input_capture_filter(&mut self, channel: Channel, icf: Icf)
Set input capture filter.
sourcefn clear_input_interrupt(&mut self, channel: Channel)
fn clear_input_interrupt(&mut self, channel: Channel)
Clear input interrupt.
sourcefn enable_input_interrupt(&mut self, channel: Channel, enable: bool)
fn enable_input_interrupt(&mut self, channel: Channel, enable: bool)
Enable input interrupt.
sourcefn set_input_capture_prescaler(&mut self, channel: Channel, factor: u8)
fn set_input_capture_prescaler(&mut self, channel: Channel, factor: u8)
Set input capture prescaler.
sourcefn set_input_ti_selection(&mut self, channel: Channel, tisel: InputTISelection)
fn set_input_ti_selection(&mut self, channel: Channel, tisel: InputTISelection)
Set input TI selection.
sourcefn set_input_capture_mode(&mut self, channel: Channel, mode: InputCaptureMode)
fn set_input_capture_mode(&mut self, channel: Channel, mode: InputCaptureMode)
Set input capture mode.
sourcefn set_output_compare_mode(&mut self, channel: Channel, mode: OutputCompareMode)
fn set_output_compare_mode(&mut self, channel: Channel, mode: OutputCompareMode)
Set output compare mode.
sourcefn set_output_polarity(&mut self, channel: Channel, polarity: OutputPolarity)
fn set_output_polarity(&mut self, channel: Channel, polarity: OutputPolarity)
Set output polarity.
sourcefn enable_channel(&mut self, channel: Channel, enable: bool)
fn enable_channel(&mut self, channel: Channel, enable: bool)
Enable/disable a channel.
sourcefn get_channel_enable_state(&self, channel: Channel) -> bool
fn get_channel_enable_state(&self, channel: Channel) -> bool
Get enable/disable state of a channel
sourcefn set_compare_value(&mut self, channel: Channel, value: u16)
fn set_compare_value(&mut self, channel: Channel, value: u16)
Set compare value for a channel.
sourcefn get_capture_value(&mut self, channel: Channel) -> u16
fn get_capture_value(&mut self, channel: Channel) -> u16
Get capture value for a channel.
sourcefn get_max_compare_value(&self) -> u16
fn get_max_compare_value(&self) -> u16
Get max compare value. This depends on the timer frequency and the clock frequency from RCC.
sourcefn get_compare_value(&self, channel: Channel) -> u16
fn get_compare_value(&self, channel: Channel) -> u16
Get compare value for a channel.
sourcefn set_output_compare_preload(&mut self, channel: Channel, preload: bool)
fn set_output_compare_preload(&mut self, channel: Channel, preload: bool)
Set output compare preload.
Object Safety§
This trait is not object safe.