xous-core/services/ticktimer-server/src/api.rs

15 lines
350 B
Rust
Raw Normal View History

2021-03-28 10:14:41 +00:00
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
pub(crate) enum Opcode {
2020-10-12 11:08:16 +00:00
/// Get the elapsed time in milliseconds
ElapsedMs = 0,
/// Sleep for the specified numer of milliseconds
SleepMs = 1,
/// Recalculate the sleep time
RecalculateSleep = 2,
/// Suspend/resume callback
SuspendResume = 3,
2020-10-12 11:08:16 +00:00
}