Struct capsules::alarm::AlarmDriver [] [src]

pub struct AlarmDriver<'a, A: Alarm + 'a> {
    alarm: &'a A,
    num_armed: Cell<usize>,
    app_alarm: Grant<AlarmData>,
}

Fields

Methods

impl<'a, A: Alarm> AlarmDriver<'a, A>
[src]

[src]

[src]

Trait Implementations

impl<'a, A: Alarm> Driver for AlarmDriver<'a, A>
[src]

[src]

Subscribe to alarm expiration

_subscribe_num

  • 0: Subscribe to alarm expiration

[src]

Setup and read the alarm.

command_num

  • 0: Driver check.
  • 1: Return the clock frequency in Hz.
  • 2: Read the the current clock value
  • 3: Stop the alarm if it is outstanding
  • 4: Set an alarm to fire at a given clock value time.

[src]

allow lets an application give the driver access to a buffer in the application's memory. This returns ENOSUPPORT if not used. Read more

impl<'a, A: Alarm> Client for AlarmDriver<'a, A>
[src]

[src]

Callback signaled when the alarm's clock reaches the value set in Alarm#set_alarm. Read more