Gpio_def_g.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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_Method_GetDevInfo 65535
  14. #define GpioService_Method_Exit 3
  15. #define GpioService_MethodSignature_Set 1228126872
  16. #define GpioService_MethodSignature_GetStatus 1783612278
  17. #define GpioService_MethodSignature_QueryCurrSet -1281718647
  18. #define GpioService_MethodSignature_GetDevInfo -70806533
  19. #define GpioService_MethodSignature_Exit -736432874
  20. #define GpioService_LogCode_Set "QLR040220900"
  21. #define GpioService_LogCode_GetStatus "QLR040220901"
  22. #define GpioService_LogCode_QueryCurrSet "QLR040220902"
  23. #define GpioService_LogCode_GetDevInfo "QLR040220999"
  24. #define GpioService_LogCode_Exit "QLR040220903"
  25. struct GpioService_Set_Info
  26. {
  27. int devseq;
  28. int mode;
  29. int close;
  30. void Serialize(SpBuffer &Buf)
  31. {
  32. auto & buf = Buf & devseq & mode & close;
  33. }
  34. };
  35. struct GpioService_GetStatus_Req
  36. {
  37. int devseq;
  38. void Serialize(SpBuffer &Buf)
  39. {
  40. auto & buf = Buf & devseq;
  41. }
  42. };
  43. struct GpioService_GetStatus_Ans
  44. {
  45. int status;
  46. void Serialize(SpBuffer &Buf)
  47. {
  48. auto & buf = Buf & status;
  49. }
  50. };
  51. struct GpioService_QueryCurrSet_Req
  52. {
  53. int devseq;
  54. void Serialize(SpBuffer &Buf)
  55. {
  56. auto & buf = Buf & devseq;
  57. }
  58. };
  59. struct GpioService_QueryCurrSet_Ans
  60. {
  61. int dir;
  62. int output;
  63. int reserved1;
  64. CSimpleStringA reserved2;
  65. void Serialize(SpBuffer &Buf)
  66. {
  67. auto & buf = Buf & dir & output & reserved1 & reserved2;
  68. }
  69. };
  70. struct GpioService_GetDevInfo_Req
  71. {
  72. void Serialize(SpBuffer &Buf)
  73. {
  74. }
  75. };
  76. struct GpioService_GetDevInfo_Ans
  77. {
  78. CSimpleStringA type;
  79. CSimpleStringA model;
  80. CSimpleStringA version;
  81. int state;
  82. void Serialize(SpBuffer &Buf)
  83. {
  84. auto & buf = Buf & type & model & version & state;
  85. }
  86. };
  87. struct GpioService_Exit_Info
  88. {
  89. void Serialize(SpBuffer &Buf)
  90. {
  91. }
  92. };
  93. ///////////////////////////
  94. } // namespace Gpio
  95. #endif // __GPIO_DEF_G_H