/
Logger.h
44 lines (33 loc) · 976 Bytes
/
Logger.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __LOGGER_H
#define __LOGGER_H
void hammer_log (int desiredLevel, int currentLevel, char *format, ...);
class TSerialChip;
class TCircleBuf;
class TULockingSemaphore;
// ================================================================================
// ¥ Logger
// ================================================================================
class Logger
{
public:
ULong fLogLevel;
TULockingSemaphore* fSemaphore;
TSerialChip* fChip;
Boolean fBufferOutput;
UByte* fBuffer;
ULong fHead;
ULong fTail;
ULong fLocation;
ULong fSpeed;
NewtonErr Initialize ();
long Main ();
void Close ();
void TxBEmptyIntHandler (void);
void ExtStsIntHandler (void);
void RxCAvailIntHandler (void);
void RxCSpecialIntHandler (void);
void BufferOutput (Boolean buffer);
void StartOutput ();
void Output (UByte*, ULong);
};
#endif