Gpio_def_g.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef __GPIO_DEF_G_H
  2. #define __GPIO_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace Gpio {
  7. //
  8. // const goes here
  9. //
  10. #define GpioService_Method_Set 0
  11. #define GpioService_Method_GetStatus 1
  12. #define GpioService_Method_QueryCurrSet 2
  13. #define GpioService_MethodSignature_Set 1228126872
  14. #define GpioService_MethodSignature_GetStatus 1783612278
  15. #define GpioService_MethodSignature_QueryCurrSet -1281718647
  16. struct GpioService_Set_Info
  17. {
  18. int devseq;
  19. int mode;
  20. int close;
  21. void Serialize(SpBuffer &Buf)
  22. {
  23. auto & buf = Buf & devseq & mode & close;
  24. }
  25. };
  26. struct GpioService_GetStatus_Req
  27. {
  28. int devseq;
  29. void Serialize(SpBuffer &Buf)
  30. {
  31. auto & buf = Buf & devseq;
  32. }
  33. };
  34. struct GpioService_GetStatus_Ans
  35. {
  36. int status;
  37. void Serialize(SpBuffer &Buf)
  38. {
  39. auto & buf = Buf & status;
  40. }
  41. };
  42. struct GpioService_QueryCurrSet_Req
  43. {
  44. int devseq;
  45. void Serialize(SpBuffer &Buf)
  46. {
  47. auto & buf = Buf & devseq;
  48. }
  49. };
  50. struct GpioService_QueryCurrSet_Ans
  51. {
  52. int dir;
  53. int output;
  54. int reserved1;
  55. CSimpleStringA reserved2;
  56. void Serialize(SpBuffer &Buf)
  57. {
  58. auto & buf = Buf & dir & output & reserved1 & reserved2;
  59. }
  60. };
  61. ///////////////////////////
  62. } // namespace Gpio
  63. #endif // __GPIO_DEF_G_H