29 #ifndef _RTXDIAGBITTRACE_H_ 30 #define _RTXDIAGBITTRACE_H_ 34 #include "rtxsrc/rtxSList.h" 46 char fmtBitBuffer[40], fmtHexBuffer[10], fmtAscBuffer[10];
47 int fmtBitCharIdx, fmtHexCharIdx, fmtAscCharIdx;
48 } OSRTDiagBinDumpBuffer;
50 typedef struct OSRTDiagBitFieldList {
51 OSUINT16 disabledCount;
53 OSRTMEMBUF* pCaptureBuf;
54 OSRTDiagBinDumpBuffer printBuffer;
55 OSRTSListNode* pLastPrinted;
56 } OSRTDiagBitFieldList;
60 const char* nameSuffix;
63 OSRTDiagBitFieldList* pOpenTypeFieldList;
69 #define RTDIAG_INSBITFLDLEN(pctxt) \ 70 rtxDiagInsBitFieldLen((pctxt)->pBitFldList) 72 #define RTDIAG_NEWBITFIELD(pctxt,suffix) \ 73 rtxDiagNewBitField((pctxt)->pBitFldList,suffix) 75 #define RTDIAG_SETBITFLDOFFSET(pctxt) \ 76 rtxDiagSetBitFldOffset((pctxt)->pBitFldList) 78 #define RTDIAG_SETBITFLDCOUNT(pctxt) \ 79 rtxDiagSetBitFldCount((pctxt)->pBitFldList) 81 #define RTDIAG_INSBITFLDLEN(pctxt) 82 #define RTDIAG_NEWBITFIELD(pctxt,suffix) 83 #define RTDIAG_SETBITFLDOFFSET(pctxt) 84 #define RTDIAG_SETBITFLDCOUNT(pctxt) 91 #define RTDIAG_GETCTXTBITOFFSET(pctxt) \ 92 (((pctxt)->buffer.byteIndex * 8) + (8 - (pctxt)->buffer.bitOffset)) 109 (
OSCTXT* pctxt, OSRTDiagBitFieldList* pBFList);
128 (OSRTDiagBitFieldList* pBFList,
const char* nameSuffix);
155 (OSRTDiagBitFieldList* pBFList,
const char* nameSuffix);
168 (OSRTDiagBitFieldList* pBFList, OSBOOL value);
179 (OSRTDiagBitFieldList* pBFList,
const char* varname);
189 (
const char* filename, OSRTDiagBitFieldList* pBFList,
const char* varname);
200 (OSRTDiagBitFieldList* pBFList,
const char* namePart);
EXTERNRT void rtxDiagSetBitFldOffset(OSRTDiagBitFieldList *pBFList)
This function is used to set the bit offset in the current bit field structure.
EXTERNRT void rtxDiagBitTracePrint(OSRTDiagBitFieldList *pBFList, const char *varname)
This function prints the bit field list to a an output stream.
EXTERNRT int rtxDiagCtxtBitFieldListInit(OSCTXT *pctxt)
This function initializes the standard bit field list structure within the context.
EXTERNRT void rtxDiagBitFldAppendNamePart(OSRTDiagBitFieldList *pBFList, const char *namePart)
This function appends the given name part to the element name in the bit field.
EXTERNRT void rtxDiagSetBitFldNameSuffix(OSRTDiagBitFieldList *pBFList, const char *nameSuffix)
This function is used to set the name suffix in the current bit field structure.
EXTERNRT void rtxDiagBitFieldListInit(OSCTXT *pctxt, OSRTDiagBitFieldList *pBFList)
This function initializes a bit field list structure.
EXTERNRT OSBOOL rtxDiagSetBitFldDisabled(OSRTDiagBitFieldList *pBFList, OSBOOL value)
This function increments or decrements the disabled count.
EXTERNRT OSRTDiagBitField * rtxDiagNewBitField(OSRTDiagBitFieldList *pBFList, const char *nameSuffix)
This function allocates a new bit field structure and adds it to the bit field list.
EXTERNRT void rtxDiagInsBitFieldLen(OSRTDiagBitFieldList *pBFList)
This function inserts a special length field before the current record in the bit field list...
EXTERNRT void rtxDiagSetBitFldCount(OSRTDiagBitFieldList *pBFList)
This function is used to set the bit count in the current bit field structure.
Run-time context structure.
EXTERNRT void rtxDiagBitTracePrintHTML(const char *filename, OSRTDiagBitFieldList *pBFList, const char *varname)
This function prints the bit field list to a an HTML document.