diff options
| author | Manuel Traut <manut@mecka.net> | 2012-05-29 03:24:03 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-05-29 03:24:03 +0200 |
| commit | 7913dd8af3861da4942123ab18d70d0aded921b1 (patch) | |
| tree | a57dd042063fbb20cdf74c2a033862f52de6a81c /interfaces/common.idl | |
| parent | 7bcc94b25c8e1702ea6187974bc3b0525510db76 (diff) | |
added doxygen for interfaces
- a brief description of all interface functions
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'interfaces/common.idl')
| -rw-r--r-- | interfaces/common.idl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/interfaces/common.idl b/interfaces/common.idl index 7e6266c..f80b9f7 100644 --- a/interfaces/common.idl +++ b/interfaces/common.idl @@ -1,14 +1,29 @@ #ifndef DISTIO_COMMON_IDL #define DISTIO_COMMON_IDL +/** + * @brief shared between different modules + * + * - definitions for error handling + * + * @author Manuel Traut <manut@mecka.net> + * @copyright GPLv2 + * + */ module Common { +/** + * @brief kind of error + */ enum Error_code { SUCCESS, EINVAL, ENOTSUPPORTED }; +/** + * @brief used for filtering and classification + */ enum Error_level { DEBUG, INFO, @@ -17,16 +32,25 @@ module Common { CRITICAL }; +/** + * @brief describes when the error was detected + * (it's helpful to sync all boards with ntp) + */ struct Error_timestamp { longlong seconds; long nanoseconds; }; +/** + * @brief description of an error + */ struct Error { Error_code code; Error_level level; Error_timestamp time; + /** id of the digital/analog IO or the IO device */ long module_id; + /** a human readable description which can be displayed in GUIs */ string description; }; |
