rtxDiagBitTrace.h File Reference
Common runtime functions for tracing bit patterns written to or read from a stream. More...
#include <stdarg.h>
#include "rtxsrc/rtxMemBuf.h"
#include "rtxsrc/rtxSList.h"
#include "rtxsrc/rtxPrintToStream.h"
Go to the source code of this file.
Classes | |
| struct | OSRTDiagBitField |
| struct | OSRTDiagBitFieldList |
Defines | |
| #define | RTDIAG_INSBITFLDLEN(pctxt) |
| #define | RTDIAG_NEWBITFIELD(pctxt, suffix) |
| #define | RTDIAG_SETBITFLDOFFSET(pctxt) |
| #define | RTDIAG_SETBITFLDCOUNT(pctxt) |
| #define | RTDIAG_GETCTXTBITOFFSET(pctxt) (((pctxt)->buffer.byteIndex * 8) + (8 - (pctxt)->buffer.bitOffset)) |
| This macro calculates the relative bit offset to the current buffer position. | |
Functions | |
| EXTERNRT OSBOOL | rtxDiagSetBitTraceEnabled (OSCTXT *pctxt, OSBOOL value) |
| This function enables bit field tracing. | |
| EXTERNRT OSBOOL | rtxDiagBitTraceEnabled (OSCTXT *pctxt) |
| This function check to see if bit field tracing is enabled. | |
| EXTERNRT void | rtxDiagBitFieldListInit (OSCTXT *pctxt, OSRTDiagBitFieldList *pBFList) |
| This function initializes a bit field list structure. | |
| EXTERNRT void | rtxDiagInsBitFieldLen (OSRTDiagBitFieldList *pBFList) |
| This function inserts a special length field before the current record in the bit field list. | |
| 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 | rtxDiagSetBitFldOffset (OSRTDiagBitFieldList *pBFList) |
| This function is used to set the bit offset in the current bit field structure. | |
| EXTERNRT void | rtxDiagSetBitFldCount (OSRTDiagBitFieldList *pBFList) |
| This function is used to set the bit count in the current bit field structure. | |
| 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 | rtxDiagSetBitFldDisabled (OSRTDiagBitFieldList *pBFList, OSBOOL value) |
| This function increments or decrements the disabled count. | |
| EXTERNRT void | rtxDiagBitTracePrint (OSRTDiagBitFieldList *pBFList, const char *varname) |
| This function prints the bit field list to a an output stream. | |
| EXTERNRT void | rtxDiagBitTracePrintHTML (const char *filename, OSRTDiagBitFieldList *pBFList, const char *varname) |
| This function prints the bit field list to a an HTML document. | |
| EXTERNRT void | rtxDiagBitFldAppendNamePart (OSRTDiagBitFieldList *pBFList, const char *namePart) |
| This function appends the given name part to the element name in the bit field. | |
Detailed Description
Common runtime functions for tracing bit patterns written to or read from a stream.
Definition in file rtxDiagBitTrace.h.
Function Documentation
|
||||||||||||
|
This function initializes a bit field list structure.
|
|
||||||||||||
|
This function appends the given name part to the element name in the bit field. A dot (.) separator character is added after the existing name and before the name part.
|
|
|
This function check to see if bit field tracing is enabled.
|
|
||||||||||||
|
This function prints the bit field list to a an output stream. By default, the output goes to stdout; but this can be changed by creating a print output stream within the context (see rtxPrintStream).
|
|
||||||||||||||||
|
This function prints the bit field list to a an HTML document.
|
|
|
This function inserts a special length field before the current record in the bit field list.
|
|
||||||||||||
|
This function allocates a new bit field structure and adds it to the bit field list.
|
|
|
This function is used to set the bit count in the current bit field structure.
|
|
||||||||||||
|
This function increments or decrements the disabled count. This allows the list to be temporaily disabled to allow collection of more bits to form larger, aggregate fields.
|
|
||||||||||||
|
This function is used to set the name suffix in the current bit field structure. This text is printed after the element name when the field is displayed.
|
|
|
This function is used to set the bit offset in the current bit field structure.
|
|
||||||||||||
|
This function enables bit field tracing.
|
