appHand_dataTypes.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. * Copyright (C) 2007-2012 Siemens AG
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published
  6. * by the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /*******************************************************************
  18. *
  19. * @author Sebastian.Kaebisch.EXT@siemens.com
  20. * @version 0.7
  21. * @contact Joerg.Heuer@siemens.com
  22. *
  23. * <p>Code generated by EXISeGen</p>
  24. *
  25. ********************************************************************/
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #ifndef APPHANDDATATYPES_H
  30. #define APPHANDDATATYPES_H
  31. #include "EXITypes.h"
  32. enum responseCodeType_appHand
  33. {
  34. OK_SuccessfulNegotiation_responseCodeType=0,
  35. OK_SuccessfulNegotiationWithMinorDeviation_responseCodeType=1,
  36. Failed_NoNegotiation_responseCodeType=2
  37. };
  38. struct arraylen_protocolNamespaceType
  39. {
  40. size_t data;
  41. };
  42. struct protocolNamespaceType
  43. {
  44. uint32_t data[100];
  45. struct arraylen_protocolNamespaceType arraylen;
  46. };
  47. struct AppProtocolType
  48. {
  49. struct protocolNamespaceType ProtocolNamespace;
  50. uint32_t VersionNumberMajor;
  51. uint32_t VersionNumberMinor;
  52. uint8_t SchemaID;
  53. uint8_t Priority;
  54. };
  55. struct arraylen_AnonType_supportedAppProtocolReq
  56. {
  57. size_t AppProtocol;
  58. };
  59. struct AnonType_supportedAppProtocolReq
  60. {
  61. struct AppProtocolType AppProtocol[20];
  62. struct arraylen_AnonType_supportedAppProtocolReq arraylen;
  63. };
  64. struct selection_EXIDocumentType_appHand
  65. {
  66. unsigned int supportedAppProtocolReq:1;
  67. unsigned int supportedAppProtocolRes:1;
  68. };
  69. struct selection_AnonType_supportedAppProtocolRes
  70. {
  71. unsigned int SchemaID:1;
  72. };
  73. struct AnonType_supportedAppProtocolRes
  74. {
  75. enum responseCodeType_appHand ResponseCode;
  76. uint8_t SchemaID;
  77. struct selection_AnonType_supportedAppProtocolRes isused;
  78. };
  79. struct EXIDocumentType_appHand
  80. {
  81. struct AnonType_supportedAppProtocolReq* supportedAppProtocolReq;
  82. struct AnonType_supportedAppProtocolRes* supportedAppProtocolRes;
  83. struct selection_EXIDocumentType_appHand isused;
  84. };
  85. void init_EXIDocumentType_appHand(struct EXIDocumentType_appHand* type);
  86. void init_AnonType_supportedAppProtocolRes(struct AnonType_supportedAppProtocolRes* type);
  87. void init_AnonType_supportedAppProtocolReq(struct AnonType_supportedAppProtocolReq* type);
  88. #endif
  89. #ifdef __cplusplus
  90. }
  91. #endif