123456789101112131415161718192021 |
- use steel::*;
- #[repr(u8)]
- #[derive(Clone, Copy, Debug, Eq, PartialEq, TryFromPrimitive)]
- pub enum LeverInstruction {
- Initialize = 0,
- SetPowerStatus = 1,
- }
- #[repr(C)]
- #[derive(Clone, Copy, Debug, Pod, Zeroable)]
- pub struct Initialize {}
- #[repr(C)]
- #[derive(Clone, Copy, Debug, Pod, Zeroable)]
- pub struct SetPowerStatus {
- pub name: [u8; 32],
- }
- instruction!(LeverInstruction, Initialize);
- instruction!(LeverInstruction, SetPowerStatus);
|