Gpio_def_g.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. #define GpioService_LogCode_Set "QLR040220900"
  17. #define GpioService_LogCode_GetStatus "QLR040220901"
  18. #define GpioService_LogCode_QueryCurrSet "QLR040220902"
  19. struct GpioService_Set_Info
  20. {
  21. int devseq;
  22. int mode;
  23. int close;
  24. void Serialize(SpBuffer &Buf)
  25. {
  26. auto & buf = Buf & devseq & mode & close;
  27. }
  28. };
  29. struct GpioService_GetStatus_Req
  30. {
  31. int devseq;
  32. void Serialize(SpBuffer &Buf)
  33. {
  34. auto & buf = Buf & devseq;
  35. }
  36. };
  37. struct GpioService_GetStatus_Ans
  38. {
  39. int status;
  40. void Serialize(SpBuffer &Buf)
  41. {
  42. auto & buf = Buf & status;
  43. }
  44. };
  45. struct GpioService_QueryCurrSet_Req
  46. {
  47. int devseq;
  48. void Serialize(SpBuffer &Buf)
  49. {
  50. auto & buf = Buf & devseq;
  51. }
  52. };
  53. struct GpioService_QueryCurrSet_Ans
  54. {
  55. int dir;
  56. int output;
  57. int reserved1;
  58. CSimpleStringA reserved2;
  59. void Serialize(SpBuffer &Buf)
  60. {
  61. auto & buf = Buf & dir & output & reserved1 & reserved2;
  62. }
  63. };
  64. ///////////////////////////
  65. } // namespace Gpio
  66. #endif // __GPIO_DEF_G_H