GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qseprint / sun-gcc
#include <QSE/QSE_aemPrint.h>
#include <QSE/QSE_aemNames.h>
#include <QSE/QSE_aem.h>
#include <stdio.h>
Functions | |
static void | channel_print (const QSE_aem_chn *chn, int nchns) |
Prints a formatted dump of the AEM channel-by-channel information. | |
static int | header_print (const QSE_aem *aem) |
Internal routine to print the header information of an unpacked AEM record. | |
static void | newline (void) |
Emits a new line to the output stream. | |
void | QSE_aemPrint (const QSE_aem *aem, unsigned int options) |
Prints a formatted dump of the specified QSE_aem structure. | |
static __inline int | count (unsigned char *cables, const QSE_aem_chn *chns, int nchns) |
Internal routine to count the number of channels on each cable with data. | |
static __inline void | title_print (const QSE_aem_chn *chns, int beg, int ncables, const unsigned char *cables) |
Prints the title line for the specified cables. | |
static __inline int | row_print (const QSE_aem_chn *chns, int beg, int ncables, const unsigned char *cables) |
Prints one row of the AEM channel-by-channel information. |
CVS $Id: QSE_aemPrint.c,v 1.5 2011/03/27 01:45:45 russell Exp $
static void channel_print | ( | const QSE_aem_chn * | chns, | |
int | nchns | |||
) | [static] |
Prints a formatted dump of the AEM channel-by-channel information.
chns | The source array of AEM channel-by-channel information. | |
nchns | The count of the number of elements in the chns array |
References count(), QSE_AEM_K_NCABLES, and row_print().
Referenced by QSE_aemPrint().
static __inline int count | ( | unsigned char * | cables, | |
const QSE_aem_chn * | chns, | |||
int | nchns | |||
) | [static] |
Internal routine to count the number of channels on each cable with data.
cables | The destination array to receive the counts for each active cable. This array is filled in a dense fashion, and, thus, contains only cables with data. | |
chns | The source array of AEM channel-by-channel information. | |
nchns | The count of the number of elements in the chns array |
Referenced by channel_print().
static int header_print | ( | const QSE_aem * | aem | ) | [static] |
Internal routine to print the header information of an unpacked AEM record.
aem | The unpacked AEM information to print |
References _QSE_aem::cable, _QSE_aem_cableStatus::hdr_parity, _QSE_aem::nchns, _QSE_aem::nphas, _QSE_aem_cableStatus::pha_overrun, _QSE_aem_cableStatus::pha_parity, _QSE_aem_cableStatus::pha_underrun, _QSE_aem_cableStatus::present, QSE_AEM_STATUS_M_ABSENT, _QSE_aem::remaining, _QSE_aem::status, and _QSE_aem_cableStatus::timeout.
Referenced by QSE_aemPrint().
void QSE_aemPrint | ( | const QSE_aem * | aem, | |
unsigned int | options | |||
) |
Prints a formatted dump of the specified QSE_aem structure.
aem | The AEM structure to print | |
options | What to print |
References channel_print(), _QSE_aem::chns, header_print(), and _QSE_aem::nchns.
static __inline int row_print | ( | const QSE_aem_chn * | chns, | |
int | beg, | |||
int | ncables, | |||
const unsigned char * | cables | |||
) | [static] |
Prints one row of the AEM channel-by-channel information.
chns | The source array of AEM channel-by-channel information. | |
beg | Index of first channel of the first cable to be printed | |
ncables | The number of 'cable' titles to be printed | |
cables | The array of offsets to the last channel of each cable to be printed. |
References newline(), QSE_aemTileNameE(), and title_print().
Referenced by channel_print().
static __inline void title_print | ( | const QSE_aem_chn * | chns, | |
int | beg, | |||
int | ncables, | |||
const unsigned char * | cables | |||
) | [static] |
Prints the title line for the specified cables.
chns | The source array of AEM channel-by-channel information. | |
beg | Index of first channel of the first cable to be printed | |
ncables | The number of 'cable' titles to be printed | |
cables | The array of offsets to the last channel of each cable to be printed. |
References newline(), and QSE_AemCableNames.
Referenced by row_print().