[−][src]Struct esp8266::timer::frc1_ctrl::W
Writer for register FRC1_CTRL
Implementations
impl W
[src]
pub fn frc1_ctrl(&mut self) -> FRC1_CTRL_W<'_>
[src]
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
pub fn timer_enable(&mut self) -> TIMER_ENABLE_W<'_>
[src]
Bit 7 - Enable or disable the timer
pub fn rollover(&mut self) -> ROLLOVER_W<'_>
[src]
Bit 6 - Automatically reload when the counter hits zero
pub fn prescale_divider(&mut self) -> PRESCALE_DIVIDER_W<'_>
[src]
Bits 2:3 - Pre-scale divider for the timer
pub fn interrupt_type(&mut self) -> INTERRUPT_TYPE_W<'_>
[src]
Bit 0 - Configure the interrupt type
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self
[src]
Writes raw bits to the register.
Methods from Deref<Target = W<FRC1_CTRL_SPEC>>
Trait Implementations
impl Deref for W
[src]
type Target = W<FRC1_CTRL_SPEC>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for W
[src]
impl From<W<FRC1_CTRL_SPEC>> for W
[src]
fn from(writer: W<FRC1_CTRL_SPEC>) -> Self
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,