dbcn.rs 678 B

123456789101112131415161718192021
  1. //! Chapter 12. Debug Console Extension (EID #0x4442434E "DBCN").
  2. /// Extension ID for Debug Console Extension.
  3. pub const EID_DBCN: usize = crate::eid_from_str("DBCN") as _;
  4. pub use fid::*;
  5. /// Declared in §12.
  6. mod fid {
  7. /// Function ID to write bytes to the debug console from input memory.
  8. ///
  9. /// Declared in §12.1.
  10. pub const CONSOLE_WRITE: usize = 0;
  11. /// Function ID to read bytes from the debug console into an output memory.
  12. ///
  13. /// Declared in §12.2.
  14. pub const CONSOLE_READ: usize = 1;
  15. /// Function ID to write a single byte to the debug console.
  16. ///
  17. /// Declared in §12.3.
  18. pub const CONSOLE_WRITE_BYTE: usize = 2;
  19. }