17 #if !defined(_usb_h_) || defined(__MESSAGE_H__)
18 #error "Never include message.h directly; include Usb.h instead"
24 void E_Notify(
char const * msg,
int lvl);
30 #define Notify E_Notify
31 #define NotifyStr E_NotifyStr
32 #define Notifyc E_Notifyc
44 #define Notify(...) ((void)0)
45 #define NotifyStr(...) ((void)0)
46 #define Notifyc(...) ((void)0)
47 #define NotifyFailGetDevDescr(...) ((void)0)
48 #define NotifyFailSetDevTblEntry(...) ((void)0)
49 #define NotifyFailGetConfDescr(...) ((void)0)
50 #define NotifyFailGetDevDescr(...) ((void)0)
51 #define NotifyFailSetDevTblEntry(...) ((void)0)
52 #define NotifyFailGetConfDescr(...) ((void)0)
53 #define NotifyFailSetConfDescr(...) ((void)0)
54 #define NotifyFailUnknownDevice(...) ((void)0)
55 #define NotifyFail(...) ((void)0)
58 template <
class ERROR_TYPE>
59 void ErrorMessage(uint8_t level,
char const * msg, ERROR_TYPE rcode = 0) {
63 D_PrintHex<ERROR_TYPE > (rcode, level);
64 Notify(PSTR(
"\r\n"), level);
68 template <
class ERROR_TYPE>
73 D_PrintHex<ERROR_TYPE > (rcode, 0x80);
74 Notify(PSTR(
"\r\n"), 0x80);
78 #endif // __MESSAGE_H__
void E_Notify(char const *msg, int lvl)
#define NotifyFailGetDevDescr(...)
void E_NotifyStr(char const *msg, int lvl)
#define NotifyFailGetConfDescr(...)
#define NotifyFailUnknownDevice(...)
void E_Notifyc(char c, int lvl)
void ErrorMessage(uint8_t level, char const *msg, ERROR_TYPE rcode=0)
#define NotifyFailSetConfDescr(...)
#define NotifyFailSetDevTblEntry(...)