TRC Library for FTC (2011) 2011
TRC Library Code Project

C:/Users/Michael/Ftc/2011/code/trclib/dbgtrace.h File Reference

Go to the source code of this file.

Defines

#define _DBGTRACE_H
#define MOD_LIB   0xffffff00
#define MOD_BATT   0x00000100
#define MOD_MENU   0x00000200
#define MOD_NXTBTN   0x00000400
#define MOD_JOYBTN   0x00000800
#define MOD_SENSOR   0x00001000
#define MOD_TIMER   0x00002000
#define MOD_SM   0x00004000
#define MOD_PIDCTRL   0x00008000
#define MOD_DRIVE   0x00010000
#define MOD_PIDDRIVE   0x00020000
#define MOD_LNFOLLOW   0x00040000
#define MOD_SERVO   0x00080000
#define MOD_ACCEL   0x00100000
#define MOD_GYRO   0x00200000
#define MOD_TOUCH   0x00400000
#define MOD_MAIN   0x00000001
#define TGenModId(n)   ((MOD_MAIN << (n)) && 0xff)
#define INIT   0
#define API   1
#define CALLBK   2
#define EVENT   3
#define FUNC   4
#define TASK   5
#define UTIL   6
#define HIFREQ   7
#define FATAL   0
#define ERR   1
#define WARN   2
#define INFO   3
#define VERBOSE   4
#define TRACE_PERIOD   500
#define SAMPLING_PERIOD   500
#define TPrintf   writeDebugStream
#define TPrintfLine   writeDebugStreamLine
#define TraceInit(m, l, e)
#define TEnable(b)
#define TFuncName(s)
#define TLevel(l)
#define TEnterMsg(p)
#define TEnter()
#define TExitMsg(p)
#define TExit()
#define TMsg(e, p)
#define TFatal(p)
#define TErr(p)
#define TWarn(p)
#define TInfo(p)
#define TVerbose(p)
#define TMsgPeriod(t, p)
#define TSampling(p)
#define TAssertPeriod(t, p, r)
#define TPeriodStart()
#define TPeriodEnd()

Define Documentation

#define _DBGTRACE_H

Definition at line 16 of file dbgtrace.h.

#define API   1

Definition at line 44 of file dbgtrace.h.

#define CALLBK   2

Definition at line 45 of file dbgtrace.h.

#define ERR   1

Definition at line 53 of file dbgtrace.h.

#define EVENT   3

Definition at line 46 of file dbgtrace.h.

#define FATAL   0

Definition at line 52 of file dbgtrace.h.

#define FUNC   4

Definition at line 47 of file dbgtrace.h.

#define HIFREQ   7

Definition at line 50 of file dbgtrace.h.

#define INFO   3

Definition at line 55 of file dbgtrace.h.

#define INIT   0

Definition at line 43 of file dbgtrace.h.

#define MOD_ACCEL   0x00100000

Definition at line 36 of file dbgtrace.h.

#define MOD_BATT   0x00000100

Definition at line 24 of file dbgtrace.h.

#define MOD_DRIVE   0x00010000

Definition at line 32 of file dbgtrace.h.

#define MOD_GYRO   0x00200000

Definition at line 37 of file dbgtrace.h.

#define MOD_JOYBTN   0x00000800

Definition at line 27 of file dbgtrace.h.

#define MOD_LIB   0xffffff00

Definition at line 23 of file dbgtrace.h.

#define MOD_LNFOLLOW   0x00040000

Definition at line 34 of file dbgtrace.h.

#define MOD_MAIN   0x00000001

Definition at line 40 of file dbgtrace.h.

#define MOD_MENU   0x00000200

Definition at line 25 of file dbgtrace.h.

#define MOD_NXTBTN   0x00000400

Definition at line 26 of file dbgtrace.h.

#define MOD_PIDCTRL   0x00008000

Definition at line 31 of file dbgtrace.h.

#define MOD_PIDDRIVE   0x00020000

Definition at line 33 of file dbgtrace.h.

#define MOD_SENSOR   0x00001000

Definition at line 28 of file dbgtrace.h.

#define MOD_SERVO   0x00080000

Definition at line 35 of file dbgtrace.h.

#define MOD_SM   0x00004000

Definition at line 30 of file dbgtrace.h.

#define MOD_TIMER   0x00002000

Definition at line 29 of file dbgtrace.h.

#define MOD_TOUCH   0x00400000

Definition at line 38 of file dbgtrace.h.

#define SAMPLING_PERIOD   500

Definition at line 63 of file dbgtrace.h.

#define TASK   5

Definition at line 48 of file dbgtrace.h.

#define TAssertPeriod (   t,
  p,
 
)

Definition at line 168 of file dbgtrace.h.

#define TEnable (   b)

Definition at line 153 of file dbgtrace.h.

#define TEnter ( )

Definition at line 157 of file dbgtrace.h.

#define TEnterMsg (   p)

Definition at line 156 of file dbgtrace.h.

#define TErr (   p)

Definition at line 162 of file dbgtrace.h.

#define TExit ( )

Definition at line 159 of file dbgtrace.h.

#define TExitMsg (   p)

Definition at line 158 of file dbgtrace.h.

#define TFatal (   p)

Definition at line 161 of file dbgtrace.h.

#define TFuncName (   s)

Definition at line 154 of file dbgtrace.h.

#define TGenModId (   n)    ((MOD_MAIN << (n)) && 0xff)

Definition at line 41 of file dbgtrace.h.

#define TInfo (   p)

Definition at line 164 of file dbgtrace.h.

#define TLevel (   l)

Definition at line 155 of file dbgtrace.h.

#define TMsg (   e,
 
)

Definition at line 160 of file dbgtrace.h.

#define TMsgPeriod (   t,
 
)

Definition at line 166 of file dbgtrace.h.

#define TPeriodEnd ( )

Definition at line 170 of file dbgtrace.h.

#define TPeriodStart ( )

Definition at line 169 of file dbgtrace.h.

#define TPrintf   writeDebugStream

Definition at line 66 of file dbgtrace.h.

#define TPrintfLine   writeDebugStreamLine

Definition at line 67 of file dbgtrace.h.

#define TRACE_PERIOD   500

Definition at line 59 of file dbgtrace.h.

#define TraceInit (   m,
  l,
 
)

Definition at line 152 of file dbgtrace.h.

#define TSampling (   p)

Definition at line 167 of file dbgtrace.h.

#define TVerbose (   p)

Definition at line 165 of file dbgtrace.h.

#define TWarn (   p)

Definition at line 163 of file dbgtrace.h.

#define UTIL   6

Definition at line 49 of file dbgtrace.h.

#define VERBOSE   4

Definition at line 56 of file dbgtrace.h.

#define WARN   2

Definition at line 54 of file dbgtrace.h.

 All Data Structures Files Functions Variables Defines