union.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef _DOXYGEN_EXAMPLE_UNION_H_
  2. #define _DOXYGEN_EXAMPLE_UNION_H_
  3. /**
  4. * @page page_howto_union How to write doxygen documentation for union.
  5. *
  6. * A comment block before the union definition is recommended to
  7. * describe the general information of the union type. In the
  8. * comment block, a `@brief` is required, other commands (such as `@note`)
  9. * are optional.
  10. *
  11. * To describe the values of the union, document is recommended
  12. * to be put after each value.
  13. *
  14. * See
  15. * <a href="https://github.com/RT-Thread/rt-thread/blob/master/documentation/0.doxygen/example/include/union.h">documentation/0.doxygen/example/include/union.h</a>
  16. * for code example.
  17. *
  18. * See
  19. * <a href="./group__group__doxygen__example__union.html">Doxygen Example of Union</a>
  20. * for html output.
  21. */
  22. /**
  23. * @defgroup group_doxygen_example_union Doxygen Example of Union
  24. *
  25. * @ingroup group_doxygen_example
  26. *
  27. * @brief Doxygen Example of Union.
  28. *
  29. * @{
  30. */
  31. /**
  32. * @brief Brief description of this union
  33. */
  34. union doxygen_example_union
  35. {
  36. int v1; /**< description for v1 */
  37. double v2; /**< description for v2 */
  38. };
  39. /** @} */
  40. #endif /* _DOXYGEN_EXAMPLE_UNION_H_ */