Struct nrf5x::timer::Timer [] [src]

pub struct Timer {
    which: Location,
    client: Cell<Option<&'static CompareClient>>,
}

Fields

Methods

impl Timer
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Capture the current timer value into the CC register specified by which, and return the value.

[src]

Capture the current value to the CC register specified by which and do not return the value.

[src]

Shortcuts can automatically stop or clear the timer on a particular compare event; refer to section 18.3 of the nRF reference manual for details. Implementation currently provides shortcuts as the raw bitmask.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

When an interrupt occurs, check if any of the 4 compares have created an event, and if so, add it to the bitmask of triggered events that is passed to the client.