xous-core/services/usb-test/src/api.rs
2022-05-07 13:21:23 +08:00

17 lines
455 B
Rust

pub(crate) const SERVER_NAME_USBTEST: &'static str = "_USB test and development server_";
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
pub(crate) enum Opcode {
/// Handle the USB interrupt
UsbIrqHandler,
/// Parse a commandlne
DoCmd,
/// Keyboard input
KeyboardChar,
/// Keyboard handler input
HandlerTrigger,
/// Suspend/resume callback
SuspendResume,
/// Exits the server
Quit,
}