pub struct Timer0 { /* private fields */ }Implementations§
Source§impl Timer0
impl Timer0
pub fn start(&mut self)
pub fn stop(&mut self)
pub fn enable_clock(&mut self)
pub fn set_clock_div(&mut self, div: BaseClockDiv)
pub fn init( &mut self, interrupt_controller: &mut Nvic, clk_sel: ClockSel, pwm_mode: PwmMode, clk_div: TimerClockDiv, )
pub fn set_pwm(&mut self, pwm_on: u16, pwm_high: u16, pwm_low: u16)
pub fn set_pwm_on(&mut self, pwm_on: u16)
pub fn set_pwm_high(&mut self, pwm_high: u16)
pub fn set_pwm_low(&mut self, pwm_low: u16)
pub fn register_handler(&self, handler: fn())
pub fn init_triple_pwm(&mut self, clk_sel: ClockSel, freq_hz: u32)
pub fn start_triple_pwm(&mut self)
pub fn stop_triple_pwm(&mut self)
pub fn set_triple_pwm_duty_cycle( &mut self, channel: Timer2PwmChannel, start: u16, end: u16, )
Auto Trait Implementations§
impl !Sync for Timer0
impl Freeze for Timer0
impl RefUnwindSafe for Timer0
impl Send for Timer0
impl Unpin for Timer0
impl UnsafeUnpin for Timer0
impl UnwindSafe for Timer0
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more