Prusa MINI Firmware overview
message.h File Reference

Go to the source code of this file.

Macros

#define Notify(...)   ((void)0)
 
#define NotifyStr(...)   ((void)0)
 
#define Notifyc(...)   ((void)0)
 
#define NotifyFailGetDevDescr(...)   ((void)0)
 
#define NotifyFailSetDevTblEntry(...)   ((void)0)
 
#define NotifyFailGetConfDescr(...)   ((void)0)
 
#define NotifyFailGetDevDescr(...)   ((void)0)
 
#define NotifyFailSetDevTblEntry(...)   ((void)0)
 
#define NotifyFailGetConfDescr(...)   ((void)0)
 
#define NotifyFailSetConfDescr(...)   ((void)0)
 
#define NotifyFailUnknownDevice(...)   ((void)0)
 
#define NotifyFail(...)   ((void)0)
 

Functions

void E_Notify (char const *msg, int lvl)
 
void E_Notify (uint8_t b, int lvl)
 
void E_NotifyStr (char const *msg, int lvl)
 
void E_Notifyc (char c, int lvl)
 
template<class ERROR_TYPE >
void ErrorMessage (uint8_t level, char const *msg, ERROR_TYPE rcode=0)
 
template<class ERROR_TYPE >
void ErrorMessage (char const *msg __attribute__((unused)), ERROR_TYPE rcode __attribute__((unused))=0)
 

Variables

int UsbDEBUGlvl
 

Macro Definition Documentation

◆ Notify

#define Notify (   ...)    ((void)0)

◆ NotifyStr

#define NotifyStr (   ...)    ((void)0)

◆ Notifyc

#define Notifyc (   ...)    ((void)0)

◆ NotifyFailGetDevDescr [1/2]

#define NotifyFailGetDevDescr (   ...)    ((void)0)

◆ NotifyFailSetDevTblEntry [1/2]

#define NotifyFailSetDevTblEntry (   ...)    ((void)0)

◆ NotifyFailGetConfDescr [1/2]

#define NotifyFailGetConfDescr (   ...)    ((void)0)

◆ NotifyFailGetDevDescr [2/2]

#define NotifyFailGetDevDescr (   ...)    ((void)0)

◆ NotifyFailSetDevTblEntry [2/2]

#define NotifyFailSetDevTblEntry (   ...)    ((void)0)

◆ NotifyFailGetConfDescr [2/2]

#define NotifyFailGetConfDescr (   ...)    ((void)0)

◆ NotifyFailSetConfDescr

#define NotifyFailSetConfDescr (   ...)    ((void)0)

◆ NotifyFailUnknownDevice

#define NotifyFailUnknownDevice (   ...)    ((void)0)

◆ NotifyFail

#define NotifyFail (   ...)    ((void)0)

Function Documentation

◆ E_Notify() [1/2]

void E_Notify ( char const msg,
int  lvl 
)
Here is the caller graph for this function:

◆ E_Notify() [2/2]

void E_Notify ( uint8_t  b,
int  lvl 
)

◆ E_NotifyStr()

void E_NotifyStr ( char const msg,
int  lvl 
)

◆ E_Notifyc()

void E_Notifyc ( char  c,
int  lvl 
)

◆ ErrorMessage() [1/2]

template<class ERROR_TYPE >
void ErrorMessage ( uint8_t  level,
char const msg,
ERROR_TYPE  rcode = 0 
)
68  {
69  #ifdef DEBUG_USB_HOST
70  Notify(msg, level);
71  Notify(PSTR(": "), level);
72  D_PrintHex<ERROR_TYPE > (rcode, level);
73  Notify(PSTR("\r\n"), level);
74  #endif
75 }

◆ ErrorMessage() [2/2]

template<class ERROR_TYPE >
void ErrorMessage ( char const *msg   __attribute__(unused),
ERROR_TYPE rcode   __attribute__(unused) = 0 
)
78  {
79  #ifdef DEBUG_USB_HOST
80  Notify(msg, 0x80);
81  Notify(PSTR(": "), 0x80);
82  D_PrintHex<ERROR_TYPE > (rcode, 0x80);
83  Notify(PSTR("\r\n"), 0x80);
84  #endif
85 }

Variable Documentation

◆ UsbDEBUGlvl

int UsbDEBUGlvl

Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Contact information

Circuits At Home, LTD Web : http://www.circuitsathome.com e-mail : suppo.nosp@m.rt@c.nosp@m.ircui.nosp@m.tsat.nosp@m.home..nosp@m.com

Notify
#define Notify(...)
Definition: message.h:53
PSTR
#define PSTR(str)
Definition: pgmspace.h:31