Struct nrf51_hal::Rtc[][src]

pub struct Rtc<T> { /* fields omitted */ }
Expand description

An opaque high level interface to an RTC peripheral.

Implementations

Creates a new RTC peripheral instance with a 12 bits prescaler. fRTC = 32_768 / (prescaler + 1 )

Enable/start the Real Time Counter.

Disable/stop the Real Time Counter.

Enable the generation of a hardware interrupt from a given stimulus.

If access to the NVIC is not provided, the interrupt must ALSO be enabled there outside of this function (e.g. manually call nvic.enable, or through the use of RTIC).

Disable the generation of a hardware interrupt from a given stimulus.

If access to the NVIC is not provided, the interrupt must ALSO be disabled there outside of this function (e.g. manually call nvic.disable, or through the use of RTIC).

Enable the generation of a hardware event from a given stimulus.

Disables the generation of a hardware event from a given stimulus.

Checks if the given event has been triggered.

Resets the given event.

Set the compare value of a given register. The compare registers have a width of 24 bits.

Obtain the current value of the Real Time Counter, 24 bits of range.

Clear the Real Time Counter.

Sets the Real Time Counter value to 0xFFFFF0, to allow tests of the overflow condition. The overflow event occurs when the Real Time Counter overflows from 0xFFFFFF to 0.

Destructure the high level interface. Does not reset any configuration made to the given RTC peripheral.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

OverflowingCasts the value.

Should always be Self

Casts the value.

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.