pub struct Timer2 { /* private fields */ }Implementations§
Source§impl Timer2
impl Timer2
Sourcepub const fn timer2_capture_gpio1_reg(
&self,
) -> &'static Reg<Timer2CaptureGpio1Reg_SPEC, RW>
pub const fn timer2_capture_gpio1_reg( &self, ) -> &'static Reg<Timer2CaptureGpio1Reg_SPEC, RW>
Timer value for event on GPIO1
Sourcepub const fn timer2_capture_gpio2_reg(
&self,
) -> &'static Reg<Timer2CaptureGpio2Reg_SPEC, RW>
pub const fn timer2_capture_gpio2_reg( &self, ) -> &'static Reg<Timer2CaptureGpio2Reg_SPEC, RW>
Timer value for event on GPIO2
Sourcepub const fn timer2_clear_irq_reg(
&self,
) -> &'static Reg<Timer2ClearIrqReg_SPEC, RW>
pub const fn timer2_clear_irq_reg( &self, ) -> &'static Reg<Timer2ClearIrqReg_SPEC, RW>
Timer clear interrupt
Sourcepub const fn timer2_ctrl_reg(&self) -> &'static Reg<Timer2CtrlReg_SPEC, RW>
pub const fn timer2_ctrl_reg(&self) -> &'static Reg<Timer2CtrlReg_SPEC, RW>
Timer control register
Sourcepub const fn timer2_gpio1_conf_reg(
&self,
) -> &'static Reg<Timer2Gpio1ConfReg_SPEC, RW>
pub const fn timer2_gpio1_conf_reg( &self, ) -> &'static Reg<Timer2Gpio1ConfReg_SPEC, RW>
Timer gpio1 selection
Sourcepub const fn timer2_gpio2_conf_reg(
&self,
) -> &'static Reg<Timer2Gpio2ConfReg_SPEC, RW>
pub const fn timer2_gpio2_conf_reg( &self, ) -> &'static Reg<Timer2Gpio2ConfReg_SPEC, RW>
Timer gpio2 selection
Sourcepub const fn timer2_prescaler_reg(
&self,
) -> &'static Reg<Timer2PrescalerReg_SPEC, RW>
pub const fn timer2_prescaler_reg( &self, ) -> &'static Reg<Timer2PrescalerReg_SPEC, RW>
Timer prescaler value
Sourcepub const fn timer2_prescaler_val_reg(
&self,
) -> &'static Reg<Timer2PrescalerValReg_SPEC, RW>
pub const fn timer2_prescaler_val_reg( &self, ) -> &'static Reg<Timer2PrescalerValReg_SPEC, RW>
Timer prescaler counter valuew
Sourcepub const fn timer2_pwm_dc_reg(&self) -> &'static Reg<Timer2PwmDcReg_SPEC, RW>
pub const fn timer2_pwm_dc_reg(&self) -> &'static Reg<Timer2PwmDcReg_SPEC, RW>
Timer pwm dc register
Sourcepub const fn timer2_pwm_freq_reg(
&self,
) -> &'static Reg<Timer2PwmFreqReg_SPEC, RW>
pub const fn timer2_pwm_freq_reg( &self, ) -> &'static Reg<Timer2PwmFreqReg_SPEC, RW>
Timer pwm frequency register
Sourcepub const fn timer2_reload_reg(&self) -> &'static Reg<Timer2ReloadReg_SPEC, RW>
pub const fn timer2_reload_reg(&self) -> &'static Reg<Timer2ReloadReg_SPEC, RW>
Timer reload value and Delay in shot mode
Sourcepub const fn timer2_shotwidth_reg(
&self,
) -> &'static Reg<Timer2ShotwidthReg_SPEC, RW>
pub const fn timer2_shotwidth_reg( &self, ) -> &'static Reg<Timer2ShotwidthReg_SPEC, RW>
Timer Shot duration in shot mode
Sourcepub const fn timer2_status_reg(&self) -> &'static Reg<Timer2StatusReg_SPEC, RW>
pub const fn timer2_status_reg(&self) -> &'static Reg<Timer2StatusReg_SPEC, RW>
Timer status register
Sourcepub const fn timer2_timer_val_reg(
&self,
) -> &'static Reg<Timer2TimerValReg_SPEC, RW>
pub const fn timer2_timer_val_reg( &self, ) -> &'static Reg<Timer2TimerValReg_SPEC, RW>
Timer counter value
Trait Implementations§
impl Copy for Timer2
impl Eq for Timer2
impl Send for Timer2
TIMER2 registers
impl StructuralPartialEq for Timer2
impl Sync for Timer2
Auto Trait Implementations§
impl Freeze for Timer2
impl RefUnwindSafe for Timer2
impl Unpin for Timer2
impl UnwindSafe for Timer2
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