pub trait GeneralPurpose16bitInstance: Basic16bitInstance {
// Required method
fn regs_gp16() -> TimGp16;
// Provided methods
fn set_counting_mode(&mut self, mode: CountingMode) { ... }
fn get_counting_mode(&self) -> CountingMode { ... }
fn set_clock_division(&mut self, ckd: Ckd) { ... }
}
Expand description
Gneral-purpose 16-bit timer instance.
Required Methods§
sourcefn regs_gp16() -> TimGp16
fn regs_gp16() -> TimGp16
Get access to the general purpose 16bit timer registers.
Note: This works even if the timer is more capable, because registers for the less capable timers are a subset. This allows writing a driver for a given set of capabilities, and having it transparently work with more capable timers.
Provided Methods§
sourcefn set_counting_mode(&mut self, mode: CountingMode)
fn set_counting_mode(&mut self, mode: CountingMode)
Set counting mode.
sourcefn get_counting_mode(&self) -> CountingMode
fn get_counting_mode(&self) -> CountingMode
Get counting mode.
sourcefn set_clock_division(&mut self, ckd: Ckd)
fn set_clock_division(&mut self, ckd: Ckd)
Set clock divider.
Object Safety§
This trait is not object safe.