OpenWareLaboratory
message.h File Reference
Include dependency graph for message.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASSERT(cond, msg)   if(!(cond)){assert_failed(msg, __PRETTY_FUNCTION__, __LINE__);}
 
#define CHECKSUM_ERROR_STATUS   -10
 
#define CONFIGURATION_ERROR_STATUS   -30
 
#define OUT_OF_MEMORY_ERROR_STATUS   -20
 
#define PROGRAM_ERROR_STATUS   -40
 

Functions

void assert_failed (const char *msg, const char *location, int line)
 
void debugMessage (const char *msg)
 
void error (int8_t code, const char *reason)
 
char * msg_ftoa (float val, int base)
 
char * msg_itoa (int val, int base)
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   cond,
  msg 
)    if(!(cond)){assert_failed(msg, __PRETTY_FUNCTION__, __LINE__);}

Definition at line 16 of file message.h.

◆ CHECKSUM_ERROR_STATUS

#define CHECKSUM_ERROR_STATUS   -10

Definition at line 22 of file message.h.

◆ CONFIGURATION_ERROR_STATUS

#define CONFIGURATION_ERROR_STATUS   -30

Definition at line 28 of file message.h.

◆ OUT_OF_MEMORY_ERROR_STATUS

#define OUT_OF_MEMORY_ERROR_STATUS   -20

Definition at line 25 of file message.h.

◆ PROGRAM_ERROR_STATUS

#define PROGRAM_ERROR_STATUS   -40

Definition at line 31 of file message.h.

Function Documentation

◆ assert_failed()

void assert_failed ( const char *  msg,
const char *  location,
int  line 
)

◆ debugMessage()

void debugMessage ( const char *  msg)

◆ error()

void error ( int8_t  code,
const char *  reason 
)

◆ msg_ftoa()

char* msg_ftoa ( float  val,
int  base 
)

◆ msg_itoa()

char* msg_itoa ( int  val,
int  base 
)