EXIConfig.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * Copyright (C) 2007-2018 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 Daniel.Peintner.EXT@siemens.com
  20. * @version 2017-03-23
  21. * @contact Richard.Kuntschke@siemens.com
  22. *
  23. * <p>Code generated by EXIdizer</p>
  24. * <p>Schema: V2G_CI_MsgDef.xsd</p>
  25. *
  26. *
  27. ********************************************************************/
  28. /**
  29. * \file EXIConfig.h
  30. * \brief EXI Configurations for the EXI Codec
  31. *
  32. */
  33. #ifndef EXI_CONFIG_H
  34. #define EXI_CONFIG_H
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. /** EXI stream - Option Byte Array */
  39. #define BYTE_ARRAY 1
  40. /** EXI stream - Option File */
  41. #define FILE_STREAM 2
  42. /** \brief EXI stream
  43. *
  44. * Byte array or file
  45. * */
  46. #define EXI_STREAM BYTE_ARRAY
  47. /** Memory allocation - static */
  48. #define STATIC_ALLOCATION 1
  49. /** Memory allocation - dynamic */
  50. #define DYNAMIC_ALLOCATION 2
  51. /** */
  52. /** \brief Memory allocation mode
  53. *
  54. * static or dynamic memory allocation
  55. * */
  56. #define MEMORY_ALLOCATION STATIC_ALLOCATION
  57. /** String representation ASCII */
  58. #define STRING_REPRESENTATION_ASCII 1
  59. /** String representation Universal Character Set (UCS) */
  60. #define STRING_REPRESENTATION_UCS 2
  61. /** */
  62. /** \brief String representation mode
  63. *
  64. * ASCII or UCS
  65. * */
  66. #define STRING_REPRESENTATION STRING_REPRESENTATION_UCS
  67. /* in the case of ASCII an extra char (null terminator) for printf and other functions is useful */
  68. #if STRING_REPRESENTATION == STRING_REPRESENTATION_ASCII
  69. #define EXTRA_CHAR 1
  70. #endif /* STRING_REPRESENTATION_ASCII */
  71. #if STRING_REPRESENTATION == STRING_REPRESENTATION_UCS
  72. #define EXTRA_CHAR 0
  73. #endif /* STRING_REPRESENTATION_UCS */
  74. /** Maximum number of cascading elements, XML tree depth */
  75. #define EXI_ELEMENT_STACK_SIZE 24
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif /* EXI_CONFIG_H */