wire_protocol.fbs 340 B

123456789101112131415161718192021222324
  1. namespace wire_protocol;
  2. enum Command : short {
  3. ShiftLeft = 0,
  4. ShiftRight = 1,
  5. Rotate = 2,
  6. Land = 3,
  7. }
  8. enum CommandResponseError : short {
  9. OK = 0,
  10. UNKNOWN_COMMAND = 1,
  11. }
  12. table CommandRequest {
  13. command:Command;
  14. }
  15. table CommandResponse {
  16. error:CommandResponseError;
  17. }
  18. root_type CommandRequest;
  19. root_type CommandResponse;