pub struct W(_);Expand description
Register FRC1_CTRL writer
Implementations
sourceimpl W
impl W
sourcepub fn frc1_ctrl(&mut self) -> FRC1_CTRL_W<'_>
pub fn frc1_ctrl(&mut self) -> FRC1_CTRL_W<'_>
Bits 0:7 - bit[7] : timer enable, bit[6] : automatically reload, when the counter isequal to zero, bit[3:2] : prescale-divider, 0: divided by 1, 1: dividedby 16, 2 or 3: divided by 256, bit[0] : interrupt type, 0:edge, 1:level
sourcepub fn timer_enable(&mut self) -> TIMER_ENABLE_W<'_>
pub fn timer_enable(&mut self) -> TIMER_ENABLE_W<'_>
Bit 7 - Enable or disable the timer
sourcepub fn rollover(&mut self) -> ROLLOVER_W<'_>
pub fn rollover(&mut self) -> ROLLOVER_W<'_>
Bit 6 - Automatically reload when the counter hits zero
sourcepub fn prescale_divider(&mut self) -> PRESCALE_DIVIDER_W<'_>
pub fn prescale_divider(&mut self) -> PRESCALE_DIVIDER_W<'_>
Bits 2:3 - Pre-scale divider for the timer
sourcepub fn interrupt_type(&mut self) -> INTERRUPT_TYPE_W<'_>
pub fn interrupt_type(&mut self) -> INTERRUPT_TYPE_W<'_>
Bit 0 - Configure the interrupt type
Methods from Deref<Target = W<FRC1_CTRL_SPEC>>
Trait Implementations
sourceimpl From<W<FRC1_CTRL_SPEC>> for W
impl From<W<FRC1_CTRL_SPEC>> for W
sourcefn from(writer: W<FRC1_CTRL_SPEC>) -> Self
fn from(writer: W<FRC1_CTRL_SPEC>) -> Self
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more