enum.h 953 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _DOXYGEN_EXAMPLE_ENUM_H_
  2. #define _DOXYGEN_EXAMPLE_ENUM_H_
  3. /**
  4. * @page page_howto_enum How to write doxygen documentation for enumeration.
  5. *
  6. * A comment block before the enumeration definition is recommended to
  7. * describe the general information of the enumeration 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 enumeration, 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/enum.h">documentation/0.doxygen/example/include/enum.h</a>
  16. * for example.
  17. */
  18. /**
  19. * @addtogroup group_doxygen_example
  20. */
  21. /** @{ */
  22. /**
  23. * @brief Brief description of this enumeration
  24. */
  25. enum doxygen_example_enum
  26. {
  27. V1, /**< description for value 1 */
  28. V2, /**< description for value 2 */
  29. };
  30. /** @} */
  31. #endif /* _DOXYGEN_EXAMPLE_ENUM_H_ */