time.rs 441 B

123456789101112131415
  1. //! Chapter 6. Timer Extension (EID #0x54494D45 "TIME").
  2. /// Extension ID for Timer extension.
  3. #[doc(alias = "SBI_EXT_TIME")]
  4. pub const EID_TIME: usize = crate::eid_from_str("TIME") as _;
  5. pub use fid::*;
  6. /// Declared in §6.2.
  7. mod fid {
  8. /// Function ID to program the clock for the next event after an absolute time.
  9. ///
  10. /// Declared in §6.1.
  11. #[doc(alias = "SBI_EXT_TIME_SET_TIMER")]
  12. pub const SET_TIMER: usize = 0;
  13. }