Macros
logger.h File Reference
#include "API.h"
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VEXROS_DEBUG_MODE   0
 
#define VEXROS_DEBUG_OUTPUT_SERIAL   uart2
 
#define VEXROS_ROSSERIAL_INPUT_SERIAL   stdin
 
#define VEXROS_ROSSERIAL_OUTPUT_SERIAL   stdout
 
#define vexroslog(fmtstr, ...)   fprintf((VEXROS_DEBUG_OUTPUT_SERIAL ), "[%d]: " " " fmtstr " " "\r\n", millis() ,##__VA_ARGS__)
 
#define vexroslogdebug(fmtstr, ...)
 
#define vexrosreadchar()   fgetc(VEXROS_ROSSERIAL_INPUT_SERIAL)
 
#define vexroswrite(...)   fprintf((VEXROS_ROSSERIAL_OUTPUT_SERIAL), __VA_ARGS__)
 
#define vexroswritechar(ch)   fputc(ch, VEXROS_ROSSERIAL_OUTPUT_SERIAL)
 

Macro Definition Documentation

#define VEXROS_DEBUG_MODE   0

Definition at line 11 of file logger.h.

#define VEXROS_DEBUG_OUTPUT_SERIAL   uart2

Definition at line 17 of file logger.h.

#define VEXROS_ROSSERIAL_INPUT_SERIAL   stdin

Definition at line 19 of file logger.h.

#define VEXROS_ROSSERIAL_OUTPUT_SERIAL   stdout

Definition at line 18 of file logger.h.

#define vexroslog (   fmtstr,
  ... 
)    fprintf((VEXROS_DEBUG_OUTPUT_SERIAL ), "[%d]: " " " fmtstr " " "\r\n", millis() ,##__VA_ARGS__)

Definition at line 25 of file logger.h.

#define vexroslogdebug (   fmtstr,
  ... 
)
Value:
{ \
if(DEBUG_MODE) { \
vexroslog(fmtstr, ##__VA_ARGS__); \
} \
}
#define vexroslog(fmtstr,...)
Definition: logger.h:25

Definition at line 33 of file logger.h.

#define vexrosreadchar ( )    fgetc(VEXROS_ROSSERIAL_INPUT_SERIAL)

Definition at line 30 of file logger.h.

#define vexroswrite (   ...)    fprintf((VEXROS_ROSSERIAL_OUTPUT_SERIAL), __VA_ARGS__)

Definition at line 28 of file logger.h.

#define vexroswritechar (   ch)    fputc(ch, VEXROS_ROSSERIAL_OUTPUT_SERIAL)

Definition at line 29 of file logger.h.



rosserial_vex_cortex
Author(s): Cannon
autogenerated on Fri Jun 7 2019 22:03:06