1
0
forked from fsfw/fsfw

service interface update

This commit is contained in:
2021-01-12 15:06:25 +01:00
parent 295852a45c
commit 165710b43c
5 changed files with 102 additions and 62 deletions

View File

@ -1,19 +1,29 @@
#include <stdio.h>
#if FSFW_DISABLE_PRINTOUT == 0
#include <cstdio>
#endif
namespace fsfw {
namespace sif {
enum class PrintLevel {
enum PrintLevel {
NONE = 0,
//! Strange error when using just ERROR..
ERROR_TYPE = 1,
WARNING = 2,
INFO = 3,
DEBUG = 4
ERROR_LEVEL = 1,
WARNING_LEVEL = 2,
INFO_LEVEL = 3,
DEBUG_LEVEL = 4
};
/**
* Set the print level. All print types with a smaller level will be printed
* as well. For example, set to PrintLevel::WARNING to only enable error
* and warning output.
* @param printLevel
*/
void setPrintLevel(PrintLevel printLevel);
PrintLevel getPrintLevel();
void setToAddCrAtEnd(bool addCrAtEnd_);
/**
* These functions can be used like the C stdio printf and forward the
* supplied formatted string arguments to a printf function.