VivicoreSerial library
Macros
VivicoreSerialDebug.h File Reference

Debug print library for VIVIWARE Cell Branch and Custom. More...

Go to the source code of this file.

Macros

#define DebugGPIODirectOut(DBG_GPIO_DDR, DBG_GPIO_BIT)
 
#define DebugGPIOLow(DBG_GPIO_PORT, DBG_GPIO_BIT)
 
#define DebugGPIOHigh(DBG_GPIO_PORT, DBG_GPIO_BIT)
 
#define DebugGPIOWrite(DBG_GPIO_PORT, DBG_GPIO_BIT, BIT_VALUE)
 
#define HW_SERIAL_BAUD   (250000)
 
#define DBG_SERIAL_INSTANCE   Serial1
 
#define DebugBegin()
 
#define DebugFlush(...)
 
#define DebugStackPointerPrint(...)
 
#define DebugPrint(...)
 
#define DebugPrintln(...)
 
#define DebugPlainPrint(...)   DBG_SERIAL_INSTANCE.print(__VA_ARGS__)
 
#define DebugPlainPrintln(...)   DBG_SERIAL_INSTANCE.println(__VA_ARGS__)
 
#define Debug1ByteHexPrint(v)
 
#define DebugHexPrint(v)   Debug1ByteHexPrint(v)
 
#define DebugBinPrint(v)
 
#define DebugPrint0(...)
 
#define DebugPrintln0(...)
 
#define DebugPlainPrint0(...)
 
#define DebugPlainPrintln0(...)
 
#define DebugHexPrint0(v)
 
#define DebugBinPrint0(v)
 
#define DebugStringPrint0(str)
 
#define DebugStringPrintln0(str)
 
#define DebugPrint1(...)
 
#define DebugPrintln1(...)
 
#define DebugPlainPrint1(...)
 
#define DebugPlainPrintln1(...)
 
#define DebugHexPrint1(v)
 
#define DebugBinPrint1(v)
 
#define DebugStringPrint1(str)
 
#define DebugStringPrintln1(str)
 
#define DebugPrint2(...)
 
#define DebugPrintln2(...)
 
#define DebugPlainPrint2(...)
 
#define DebugPlainPrintln2(...)
 
#define DebugHexPrint2(v)
 
#define DebugBinPrint2(v)
 
#define DebugStringPrint2(str)
 
#define DebugStringPrintln2(str)
 
#define DebugPrintCIBO(str)
 
#define DebugPrintCIBOln(str)
 
#define DebugHexPrintCIBO(v)
 
#define DebugPrintCOBI(str)
 
#define DebugPrintCOBIln(str)
 
#define DebugHexPrintCOBI(v)
 

Detailed Description

Debug print library for VIVIWARE Cell Branch and Custom.

Macro Definition Documentation

◆ Debug1ByteHexPrint

#define Debug1ByteHexPrint (   v)
Value:
if ((((v) >> 4) & 0x0F) > 9) { \
DBG_SERIAL_INSTANCE.print((char)('A' + ((uint8_t)(((v) >> 4) & 0x0F) - 10))); \
} else { \
DBG_SERIAL_INSTANCE.print((uint8_t)(((v) >> 4) & 0x0F)); \
} \
if (((v)&0x0F) > 9) { \
DBG_SERIAL_INSTANCE.print((char)('A' + ((uint8_t)((v)&0x0F) - 10))); \
} else { \
DBG_SERIAL_INSTANCE.print((uint8_t)((v)&0x0F)); \
}

◆ DebugBinPrint

#define DebugBinPrint (   v)
Value:
{ \
for (uint32_t _bit = 1UL << ((sizeof(v) * 8) - 1); _bit; _bit >>= 1) { \
DBG_SERIAL_INSTANCE.print(v &_bit ? '1' : '0'); \
} \
}

◆ DebugPrint

#define DebugPrint (   ...)
Value:
DBG_SERIAL_INSTANCE.print('['); \
DBG_SERIAL_INSTANCE.print(millis()); \
DBG_SERIAL_INSTANCE.print("] "); \
DBG_SERIAL_INSTANCE.print(__PRETTY_FUNCTION__); \
DBG_SERIAL_INSTANCE.print(' '); \
DBG_SERIAL_INSTANCE.print(__LINE__); \
DBG_SERIAL_INSTANCE.print(": "); \
DBG_SERIAL_INSTANCE.print(__VA_ARGS__)

◆ DebugPrintln

#define DebugPrintln (   ...)
Value:
DBG_SERIAL_INSTANCE.print('['); \
DBG_SERIAL_INSTANCE.print(millis()); \
DBG_SERIAL_INSTANCE.print("] "); \
DBG_SERIAL_INSTANCE.print(__PRETTY_FUNCTION__); \
DBG_SERIAL_INSTANCE.print(' '); \
DBG_SERIAL_INSTANCE.print(__LINE__); \
DBG_SERIAL_INSTANCE.print(": "); \
DBG_SERIAL_INSTANCE.println(__VA_ARGS__)