Trait r3_core::kernel::raw::KernelTimer
source · pub unsafe trait KernelTimer: KernelBase {
type RawTimerId: Id;
// Required methods
unsafe fn raw_timer_start(
this: Self::RawTimerId
) -> Result<(), StartTimerError>;
unsafe fn raw_timer_stop(
this: Self::RawTimerId
) -> Result<(), StopTimerError>;
unsafe fn raw_timer_set_delay(
this: Self::RawTimerId,
delay: Option<Duration>
) -> Result<(), SetTimerDelayError>;
unsafe fn raw_timer_set_period(
this: Self::RawTimerId,
period: Option<Duration>
) -> Result<(), SetTimerPeriodError>;
}
Expand description
Required Associated Types§
sourcetype RawTimerId: Id
type RawTimerId: Id
The type to identify timers.