123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #ifndef __GPIO_DEF_G_H
- #define __GPIO_DEF_G_H
- #pragma once
- // This code is generated by spgen tool!
- #include "SpHelper.h"
- namespace Gpio {
- //
- // const goes here
- //
- #define GpioService_Method_Set 0
- #define GpioService_Method_GetStatus 1
- #define GpioService_Method_QueryCurrSet 2
- #define GpioService_Method_GetDevInfo 65535
- #define GpioService_Method_Exit 3
- #define GpioService_MethodSignature_Set 1228126872
- #define GpioService_MethodSignature_GetStatus 1783612278
- #define GpioService_MethodSignature_QueryCurrSet -1281718647
- #define GpioService_MethodSignature_GetDevInfo -70806533
- #define GpioService_MethodSignature_Exit -736432874
- #define GpioService_LogCode_Set "QLR040220900"
- #define GpioService_LogCode_GetStatus "QLR040220901"
- #define GpioService_LogCode_QueryCurrSet "QLR040220902"
- #define GpioService_LogCode_GetDevInfo "QLR040220999"
- #define GpioService_LogCode_Exit "QLR040220903"
- struct GpioService_Set_Info
- {
- int devseq;
- int mode;
- int close;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & devseq & mode & close;
- }
- };
- struct GpioService_GetStatus_Req
- {
- int devseq;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & devseq;
- }
- };
- struct GpioService_GetStatus_Ans
- {
- int status;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & status;
- }
- };
- struct GpioService_QueryCurrSet_Req
- {
- int devseq;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & devseq;
- }
- };
- struct GpioService_QueryCurrSet_Ans
- {
- int dir;
- int output;
- int reserved1;
- CSimpleStringA reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & dir & output & reserved1 & reserved2;
- }
- };
- struct GpioService_GetDevInfo_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct GpioService_GetDevInfo_Ans
- {
- CSimpleStringA type;
- CSimpleStringA model;
- CSimpleStringA version;
- int state;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type & model & version & state;
- }
- };
- struct GpioService_Exit_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- ///////////////////////////
- } // namespace Gpio
- #endif // __GPIO_DEF_G_H
|