union.h 935 B

12345678910111213141516171819202122232425262728293031323334353637
  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 example.
  17. */
  18. /**
  19. * @addtogroup group_doxygen_example
  20. */
  21. /** @{ */
  22. /**
  23. * @brief Brief description of this union
  24. */
  25. union doxygen_example_union
  26. {
  27. int v1; /**< description for v1 */
  28. double v2; /**< description for v2 */
  29. };
  30. /** @} */
  31. #endif /* _DOXYGEN_EXAMPLE_UNION_H_ */