enum.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 code example.
  17. *
  18. * See @ref group_doxygen_example_enum for html output.
  19. */
  20. /**
  21. * @defgroup group_doxygen_example_enum Doxygen Example of Enumeration
  22. *
  23. * @ingroup group_doxygen_example
  24. *
  25. * @brief Doxygen Example of Enumeration.
  26. *
  27. * @{
  28. */
  29. /**
  30. * @brief Brief description of this enumeration
  31. */
  32. enum doxygen_example_enum
  33. {
  34. V1, /**< description for value 1 */
  35. V2, /**< description for value 2 */
  36. };
  37. /** @} */
  38. #endif /* _DOXYGEN_EXAMPLE_ENUM_H_ */