24 #if !defined(_usb_h_) || defined(__MESSAGE_H__) 25 #error "Never include message.h directly; include Usb.h instead" 31 void E_Notify(
char const * msg,
int lvl);
37 #define Notify E_Notify 38 #define NotifyStr E_NotifyStr 39 #define Notifyc E_Notifyc 51 #define Notify(...) ((void)0) 52 #define NotifyStr(...) ((void)0) 53 #define Notifyc(...) ((void)0) 54 #define NotifyFailGetDevDescr(...) ((void)0) 55 #define NotifyFailSetDevTblEntry(...) ((void)0) 56 #define NotifyFailGetConfDescr(...) ((void)0) 57 #define NotifyFailGetDevDescr(...) ((void)0) 58 #define NotifyFailSetDevTblEntry(...) ((void)0) 59 #define NotifyFailGetConfDescr(...) ((void)0) 60 #define NotifyFailSetConfDescr(...) ((void)0) 61 #define NotifyFailUnknownDevice(...) ((void)0) 62 #define NotifyFail(...) ((void)0) 65 template <
class ERROR_TYPE>
66 void ErrorMessage(uint8_t level,
char const * msg, ERROR_TYPE rcode = 0) {
70 D_PrintHex<ERROR_TYPE > (rcode, level);
75 template <
class ERROR_TYPE>
76 void ErrorMessage(
char const * msg __attribute__((unused)), ERROR_TYPE rcode __attribute__((unused)) = 0) {
80 D_PrintHex<ERROR_TYPE > (rcode, 0x80);
85 #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(...)