1
0

smartknob.proto 644 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. import "nanopb.proto";
  3. package PB;
  4. /*
  5. * Message FROM the SmartKnob to USB host
  6. */
  7. message FromSmartKnob {
  8. oneof payload {
  9. Ack ack = 1;
  10. Log log = 2;
  11. SmartKnobState smartknob_state = 3;
  12. }
  13. }
  14. message Ack {
  15. uint32 nonce = 1;
  16. }
  17. message Log {
  18. string msg = 1 [(nanopb).max_length = 255];
  19. }
  20. message SmartKnobState {
  21. }
  22. /*
  23. * Message TO the Smartknob from the USB host
  24. */
  25. message ToSmartknob {
  26. uint32 nonce = 1;
  27. oneof payload {
  28. RequestState request_state = 2;
  29. SmartKnobConfig smartknob_config = 3;
  30. }
  31. }
  32. message SmartKnobConfig {
  33. }
  34. message RequestState {}