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

C:/Users/Michael/Frc/2011/code/trclib/DbgTrace.h File Reference

Go to the source code of this file.

Classes

class  DbgTrace

Defines

#define _DBGTRACE_H
#define MOD_LIB   0xffffff00
#define MOD_TRCROBOT   0x00000100
#define MOD_JOYSTICK   0x00000200
#define MOD_DIGITALIN   0x00000400
#define MOD_ANALOGIN   0x00000800
#define MOD_GYRO   0x00001000
#define MOD_ACCEL   0x00002000
#define MOD_PIDCTRL   0x00004000
#define MOD_PIDDRIVE   0x00008000
#define MOD_SM   0x00010000
#define MOD_TIMER   0x00020000
#define MOD_EVENT   0x00040000
#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   printf
#define TraceInit(m, l, e)
#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 38 of file DbgTrace.h.

#define CALLBK   2

Definition at line 39 of file DbgTrace.h.

#define ERR   1

Definition at line 47 of file DbgTrace.h.

#define EVENT   3

Definition at line 40 of file DbgTrace.h.

#define FATAL   0

Definition at line 46 of file DbgTrace.h.

#define FUNC   4

Definition at line 41 of file DbgTrace.h.

#define HIFREQ   7

Definition at line 44 of file DbgTrace.h.

#define INFO   3

Definition at line 49 of file DbgTrace.h.

#define INIT   0

Definition at line 37 of file DbgTrace.h.

#define MOD_ACCEL   0x00002000

Definition at line 27 of file DbgTrace.h.

#define MOD_ANALOGIN   0x00000800

Definition at line 25 of file DbgTrace.h.

#define MOD_DIGITALIN   0x00000400

Definition at line 24 of file DbgTrace.h.

#define MOD_EVENT   0x00040000

Definition at line 32 of file DbgTrace.h.

#define MOD_GYRO   0x00001000

Definition at line 26 of file DbgTrace.h.

#define MOD_JOYSTICK   0x00000200

Definition at line 23 of file DbgTrace.h.

#define MOD_LIB   0xffffff00

Definition at line 21 of file DbgTrace.h.

#define MOD_MAIN   0x00000001

Definition at line 34 of file DbgTrace.h.

#define MOD_PIDCTRL   0x00004000

Definition at line 28 of file DbgTrace.h.

#define MOD_PIDDRIVE   0x00008000

Definition at line 29 of file DbgTrace.h.

#define MOD_SM   0x00010000

Definition at line 30 of file DbgTrace.h.

#define MOD_TIMER   0x00020000

Definition at line 31 of file DbgTrace.h.

#define MOD_TRCROBOT   0x00000100

Definition at line 22 of file DbgTrace.h.

#define SAMPLING_PERIOD   500

Definition at line 57 of file DbgTrace.h.

#define TASK   5

Definition at line 42 of file DbgTrace.h.

#define TAssertPeriod (   t,
  p,
 
)

Definition at line 173 of file DbgTrace.h.

#define TEnter ( )

Definition at line 162 of file DbgTrace.h.

#define TEnterMsg (   p)

Definition at line 161 of file DbgTrace.h.

#define TErr (   p)

Definition at line 167 of file DbgTrace.h.

#define TExit ( )

Definition at line 164 of file DbgTrace.h.

#define TExitMsg (   p)

Definition at line 163 of file DbgTrace.h.

#define TFatal (   p)

Definition at line 166 of file DbgTrace.h.

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

Definition at line 35 of file DbgTrace.h.

#define TInfo (   p)

Definition at line 169 of file DbgTrace.h.

#define TLevel (   l)

Definition at line 160 of file DbgTrace.h.

#define TMsg (   e,
 
)

Definition at line 165 of file DbgTrace.h.

#define TMsgPeriod (   t,
 
)

Definition at line 171 of file DbgTrace.h.

#define TPeriodEnd ( )

Definition at line 175 of file DbgTrace.h.

#define TPeriodStart ( )

Definition at line 174 of file DbgTrace.h.

#define TPrintf   printf

Definition at line 60 of file DbgTrace.h.

#define TRACE_PERIOD   500

Definition at line 53 of file DbgTrace.h.

#define TraceInit (   m,
  l,
 
)

Definition at line 159 of file DbgTrace.h.

#define TSampling (   p)

Definition at line 172 of file DbgTrace.h.

#define TVerbose (   p)

Definition at line 170 of file DbgTrace.h.

#define TWarn (   p)

Definition at line 168 of file DbgTrace.h.

#define UTIL   6

Definition at line 43 of file DbgTrace.h.

#define VERBOSE   4

Definition at line 50 of file DbgTrace.h.

#define WARN   2

Definition at line 48 of file DbgTrace.h.

 All Classes Files Functions Variables Defines