[][src]Struct esp8266::timer::frc1_ctrl::R

pub struct R(_);

Reader of register FRC1_CTRL

Implementations

impl R[src]

pub fn frc1_int(&self) -> FRC1_INT_R[src]

Bit 8 - the status of the interrupt, when the count isdereased to zero

pub fn frc1_ctrl(&self) -> FRC1_CTRL_R[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(&self) -> TIMER_ENABLE_R[src]

Bit 7 - Enable or disable the timer

pub fn rollover(&self) -> ROLLOVER_R[src]

Bit 6 - Automatically reload when the counter hits zero

pub fn prescale_divider(&self) -> PRESCALE_DIVIDER_R[src]

Bits 2:3 - Pre-scale divider for the timer

pub fn interrupt_type(&self) -> INTERRUPT_TYPE_R[src]

Bit 0 - Configure the interrupt type

Methods from Deref<Target = R<FRC1_CTRL_SPEC>>

pub fn bits(&self) -> REG::Ux[src]

Reads raw bits from register.

Trait Implementations

impl Deref for R[src]

type Target = R<FRC1_CTRL_SPEC>

The resulting type after dereferencing.

impl From<R<FRC1_CTRL_SPEC>> for R[src]

Auto Trait Implementations

impl Send for R

impl Sync for R

impl Unpin for R

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.