| 
    EmbeddedEtcher
    
   | 
 
Error logging functionalities of the operating system. More...

Go to the source code of this file.
Macros | |
| #define | DEBUG_MSG(MSG, ...) | 
| #define | THROW_ERROR(ERROR_TYPE) osPrintError(__FILE__, __LINE__, ERROR_TYPE) | 
| #define | THROW_WARNING(WARNING_TYPE) osPrintWarning(__FILE__, __LINE__, WARNING_TYPE) | 
Functions | |
| uint8_t | osExplainError (const char *ifile, const uint8_t iline, const osError_t ierror, char *iomessage) | 
| uint8_t | osPrintError (const char *ifile, const int iline, const osError_t ierror) | 
| uint8_t | osExplainWarning (const char *ifile, const uint8_t iline, const osWarning_t ierror, char *iomessage) | 
| uint8_t | osPrintWarning (const char *ifile, const int iline, const osWarning_t ierror) | 
Error logging functionalities of the operating system.
| #define DEBUG_MSG | ( | MSG, | |
| ... | |||
| ) | 
Create smart debug messages, which are disable if DEBUG is not defined.
| #define THROW_ERROR | ( | ERROR_TYPE | ) | osPrintError(__FILE__, __LINE__, ERROR_TYPE) | 
Throws an error given an error type.
| #define THROW_WARNING | ( | WARNING_TYPE | ) | osPrintWarning(__FILE__, __LINE__, WARNING_TYPE) | 
Throws a warning given a warning type.
| uint8_t osExplainError | ( | const char * | ifile, | 
| const uint8_t | iline, | ||
| const osError_t | ierror, | ||
| char * | iomessage | ||
| ) | 
Creating a error message string from inter alia an error code.
| ifile | Filename where error occurs. | 
| iline | Line where error occurs. | 
| ierror | Error code. | 
| message | Message related to the error. | 
| 1 | (SUCCESS) or 0 (FAILURE). | 
| uint8_t osExplainWarning | ( | const char * | ifile, | 
| const uint8_t | iline, | ||
| const osWarning_t | ierror, | ||
| char * | iomessage | ||
| ) | 
Creating a warning message string from inter alia a warning code.
| ifile | Filename where warning occurs. | 
| iline | Line where warning occurs. | 
| ierror | Warning code. | 
| message | Message related to the warning. | 
| 1 | (SUCCESS) or 0 (FAILURE). | 
| uint8_t osPrintError | ( | const char * | ifile, | 
| const int | iline, | ||
| const osError_t | ierror | ||
| ) | 
Print error. This is where the error output can be redirected (later).
| ifile | Filename where error occurs. | 
| iline | Line where error occurs. | 
| ierror | Error code. | 
| 1 | (SUCCESS) or 0 (FAILURE). | 
| uint8_t osPrintWarning | ( | const char * | ifile, | 
| const int | iline, | ||
| const osWarning_t | ierror | ||
| ) | 
Print warning. This is where the warning output can be redirected (later).
| ifile | Filename where warning occurs. | 
| iline | Line where warning occurs. | 
| ierror | Warning code. | 
| 1 | (SUCCESS) or 0 (FAILURE). |