#[repr(u8)]pub enum Command {
Show 30 variants
ProtocolVersion = 0,
FirmwareVersion = 1,
InterruptStatus = 16,
InterruptControl = 17,
ButtonStatus = 32,
SystemTemperature = 33,
SystemVoltage33S = 34,
SystemVoltage33 = 35,
SystemVoltage55 = 36,
PowerControl = 37,
UartBuffer = 48,
UartFifoControl = 49,
UartControl = 50,
UartStatus = 51,
UartBaudRate = 52,
Ps2KbBuffer = 64,
Ps2KbControl = 65,
Ps2KbStatus = 66,
Ps2MouseBuffer = 80,
Ps2MouseControl = 81,
Ps2MouseStatus = 82,
I2cBuffer = 96,
I2cFifoControl = 97,
I2cControl = 98,
I2cStatus = 99,
I2cBaudRate = 100,
SpeakerDuration = 112,
SpeakerPeriodHigh = 113,
SpeakerPeriodLow = 114,
SpeakerDutyCycle = 115,
}
Variants§
ProtocolVersion = 0
FirmwareVersion = 1
InterruptStatus = 16
InterruptControl = 17
ButtonStatus = 32
SystemTemperature = 33
SystemVoltage33S = 34
SystemVoltage33 = 35
SystemVoltage55 = 36
PowerControl = 37
UartBuffer = 48
UartFifoControl = 49
UartControl = 50
UartStatus = 51
UartBaudRate = 52
Ps2KbBuffer = 64
§PS/2 Keyboard Receive/Transmit Buffer
Data received/to be sent over the PS/2 keyboard port
- Length: up to 16
- Mode: FIFO
Ps2KbControl = 65
Ps2KbStatus = 66
Ps2MouseBuffer = 80
§PS/2 Mouse Receive/Transmit Buffer
Data received/to be sent over the PS/2 Mouse port
- Length: up to 16
- Mode: FIFO
Ps2MouseControl = 81
Ps2MouseStatus = 82
I2cBuffer = 96
I2cFifoControl = 97
I2cControl = 98
I2cStatus = 99
I2cBaudRate = 100
SpeakerDuration = 112
SpeakerPeriodHigh = 113
SpeakerPeriodLow = 114
SpeakerDutyCycle = 115
Trait Implementations§
Source§impl TryFromPrimitive for Command
impl TryFromPrimitive for Command
impl Copy for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more