make Doxygen comments a bit easier to read

This commit is contained in:
marschap
2008-12-21 17:13:26 +00:00
parent cf92e1248e
commit a273c98182
3 changed files with 41 additions and 37 deletions
+8 -7
View File
@@ -104,7 +104,7 @@ Different implementations of (n)curses available on:
#define DEFAULT_BACKGROUND_COLOR COLOR_BLUE #define DEFAULT_BACKGROUND_COLOR COLOR_BLUE
/** private data structure for the \c curses driver */ /** private data for the \c curses driver */
typedef struct curses_private_data { typedef struct curses_private_data {
WINDOW *win; WINDOW *win;
@@ -141,8 +141,8 @@ static void curses_restore_screen (Driver *drvthis);
/** /**
* Initialize the driver. * Initialize the driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \retval 0 Success. * \retval 0 Success.
* \retval <0 Error. * \retval <0 Error.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
curses_init (Driver *drvthis) curses_init (Driver *drvthis)
@@ -322,7 +322,7 @@ curses_close (Driver *drvthis)
/** /**
* Return the display width in characters. * Return the display width in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is wide. * \return Number of characters the display is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
curses_width (Driver *drvthis) curses_width (Driver *drvthis)
@@ -335,7 +335,7 @@ curses_width (Driver *drvthis)
/** /**
* Return the display height in characters. * Return the display height in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is high. * \return Number of characters the display is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
curses_height (Driver *drvthis) curses_height (Driver *drvthis)
@@ -625,7 +625,8 @@ curses_flush (Driver *drvthis)
/** /**
* Handle input from keyboard. * Handle input from keyboard.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return String representation of the key. * \return String representation of the key;
* \c NULL if nothing available / unmapped key.
*/ */
MODULE_EXPORT const char * MODULE_EXPORT const char *
curses_get_key (Driver *drvthis) curses_get_key (Driver *drvthis)
@@ -667,7 +668,7 @@ curses_get_key (Driver *drvthis)
/** /**
* Provide some information about this driver. * Provide some information about this driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Constant string with information. * \return Constant string with information.
*/ */
MODULE_EXPORT const char * MODULE_EXPORT const char *
text_get_info (Driver *drvthis) text_get_info (Driver *drvthis)
+23 -21
View File
@@ -47,15 +47,16 @@
#define DEFAULT_OFFBRIGHTNESS 250 #define DEFAULT_OFFBRIGHTNESS 250
/** private data for the \c debug driver */
typedef struct debug_private_data { typedef struct debug_private_data {
char *framebuf; char *framebuf; /**< frame buffer */
int width; int width; /**< display width in characters */
int height; int height; /**< display height in characters */
int cellwidth; int cellwidth; /**< character cell width */
int cellheight; int cellheight; /**< character cell height */
int contrast; int contrast; /**< current contrast */
int brightness; int brightness; /**< current brightness (for backlight on) */
int offbrightness; int offbrightness; /**< current brightness (for backlight off) */
} PrivateData; } PrivateData;
@@ -70,8 +71,8 @@ MODULE_EXPORT char *symbol_prefix = "debug_";
/** /**
* Initialize the driver. * Initialize the driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \retval 0 Success. * \retval 0 Success.
* \retval <0 Error. * \retval <0 Error.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_init (Driver *drvthis) debug_init (Driver *drvthis)
@@ -132,7 +133,7 @@ debug_close (Driver *drvthis)
/** /**
* Return the display width in characters. * Return the display width in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is wide. * \return Number of characters the display is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_width (Driver *drvthis) debug_width (Driver *drvthis)
@@ -148,7 +149,7 @@ debug_width (Driver *drvthis)
/** /**
* Return the display height in characters. * Return the display height in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is high. * \return Number of characters the display is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_height (Driver *drvthis) debug_height (Driver *drvthis)
@@ -164,7 +165,7 @@ debug_height (Driver *drvthis)
/** /**
* Return the width of a character in pixels. * Return the width of a character in pixels.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of pixel columns a character cell is wide. * \return Number of pixel columns a character cell is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_cellwidth (Driver *drvthis) debug_cellwidth (Driver *drvthis)
@@ -178,7 +179,7 @@ debug_cellwidth (Driver *drvthis)
/** /**
* Return the height of a character in pixels. * Return the height of a character in pixels.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of pixel lines a character cell is high. * \return Number of pixel lines a character cell is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_cellheight (Driver *drvthis) debug_cellheight (Driver *drvthis)
@@ -400,7 +401,7 @@ debug_set_char (Driver *drvthis, int n, char *dat)
* This is only the locally stored contrast, the contrast value * This is only the locally stored contrast, the contrast value
* cannot be retrieved from the LCD. * cannot be retrieved from the LCD.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Stored contrast in promille. * \return Stored contrast in promille.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_get_contrast (Driver *drvthis) debug_get_contrast (Driver *drvthis)
@@ -433,7 +434,7 @@ debug_set_contrast (Driver *drvthis, int promille)
* Retrieve brightness. * Retrieve brightness.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \param state Brightness state (on/off) for which we want the value. * \param state Brightness state (on/off) for which we want the value.
* \return Stored brightness in promille. * \return Stored brightness in promille.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
debug_get_brightness(Driver *drvthis, int state) debug_get_brightness(Driver *drvthis, int state)
@@ -446,9 +447,9 @@ debug_get_brightness(Driver *drvthis, int state)
/** /**
* Set on/off brightness. * Set on/off brightness.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \param state Brightness state (on/off) for which we want to store the value. * \param state Brightness state (on/off) for which we want to store the value.
* \param promille New brightness in promille. * \param promille New brightness in promille.
*/ */
MODULE_EXPORT void MODULE_EXPORT void
debug_set_brightness(Driver *drvthis, int state, int promille) debug_set_brightness(Driver *drvthis, int state, int promille)
@@ -485,7 +486,8 @@ debug_backlight (Driver *drvthis, int on)
/** /**
* Handle input from keyboard. * Handle input from keyboard.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return String representation of the key. * \return String representation of the key;
* \c NULL if nothing available / unmapped key
*/ */
MODULE_EXPORT const char * MODULE_EXPORT const char *
debug_get_key (Driver *drvthis) debug_get_key (Driver *drvthis)
@@ -500,7 +502,7 @@ debug_get_key (Driver *drvthis)
/** /**
* Provide some information about this driver. * Provide some information about this driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Constant string with information. * \return Constant string with information.
*/ */
MODULE_EXPORT const char * MODULE_EXPORT const char *
debug_get_info(Driver *drvthis) debug_get_info(Driver *drvthis)
+10 -9
View File
@@ -37,11 +37,11 @@
//#include "drv_base.h" //#include "drv_base.h"
/* private data structure for the \c text driver */ /** private data for the \c text driver */
typedef struct text_private_data { typedef struct text_private_data {
int width; int width; /**< display width in characters */
int height; int height; /**< display height in characters */
char *framebuf; char *framebuf; /**< fram buffer */
} PrivateData; } PrivateData;
@@ -55,8 +55,8 @@ MODULE_EXPORT char *symbol_prefix = "text_";
/** /**
* Initialize the driver. * Initialize the driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \retval 0 Success. * \retval 0 Success.
* \retval <0 Error. * \retval <0 Error.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
text_init (Driver *drvthis) text_init (Driver *drvthis)
@@ -129,7 +129,7 @@ text_close (Driver *drvthis)
/** /**
* Return the display width in characters. * Return the display width in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is wide. * \return Number of characters the display is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
text_width (Driver *drvthis) text_width (Driver *drvthis)
@@ -141,8 +141,9 @@ text_width (Driver *drvthis)
/** /**
* Clear the screen. * Return the display height in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
text_height (Driver *drvthis) text_height (Driver *drvthis)
@@ -274,7 +275,7 @@ text_backlight (Driver *drvthis, int on)
/** /**
* Provide some information about this driver. * Provide some information about this driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Constant string with information. * \return Constant string with information.
*/ */
MODULE_EXPORT const char * MODULE_EXPORT const char *
text_get_info (Driver *drvthis) text_get_info (Driver *drvthis)