mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-08 08:32:46 +00:00
Doxygen examples are grouped on different pages so that you can easily link to pages of related types in the documentation. For example, macro examples have their own page, and function examples have their own page, which correspond to their own code examples, such as "macro.h" or "function.h". Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
#ifndef _DOXYGEN_EXAMPLE_ENUM_H_
|
|
#define _DOXYGEN_EXAMPLE_ENUM_H_
|
|
|
|
/**
|
|
* @page page_howto_enum How to write doxygen documentation for enumeration.
|
|
*
|
|
* A comment block before the enumeration definition is recommended to
|
|
* describe the general information of the enumeration type. In the
|
|
* comment block, a `@brief` is required, other commands (such as `@note`)
|
|
* are optional.
|
|
*
|
|
* To describe the values of the enumeration, document is recommended
|
|
* to be put after each value.
|
|
*
|
|
* See
|
|
* <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>
|
|
* for code example.
|
|
*
|
|
* See
|
|
* <a href="./group__group__doxygen__example__enum.html">Doxygen Example of Enumeration</a>
|
|
* for html output.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup group_doxygen_example_enum Doxygen Example of Enumeration
|
|
*
|
|
* @ingroup group_doxygen_example
|
|
*
|
|
* @brief Doxygen Example of Enumeration.
|
|
*
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @brief Brief description of this enumeration
|
|
*/
|
|
enum doxygen_example_enum
|
|
{
|
|
V1, /**< description for value 1 */
|
|
V2, /**< description for value 2 */
|
|
};
|
|
|
|
/** @} */
|
|
|
|
#endif /* _DOXYGEN_EXAMPLE_ENUM_H_ */
|