GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBD / dev > lcbd / rhel4-32
#include <LCBD/LCBR.h>
#include <LCBD/LATP.h>
#include <LCBD/LCB_cr.h>
#include <stdio.h>
Functions | |
unsigned int | LCBR_process (const LCB_ri *ri, const LCB_ri *end, LCBR_processor rtn, void *prm) |
Executes the user specified handler for each result item in the range ri to end. | |
const LCB_ri * | LCBR_check (const LCB_ri *ri, const LCB_ri *end) |
Checks the specified range of result items for errors. | |
unsigned int | LCBR_error_get (const LCB_ri *ri) |
Returns the 16-bit error word of ri. | |
static unsigned int | show (void *prm, const LCB_ri *ri) |
Shows (prints) a single result item. | |
void | LCBR_show (unsigned int options, const LCB_ri *beg, const LCB_ri *end) |
Dumps the result items to stdout. |
Checks the specified range of result items for errors.
The low 2 bits of the returned pointer contain the error syndrome. Currently only these two cases are defined
References _LCB_ri::hdr, LCBR_MAP_N8BYTES_BY_OPCODE, LCBR_N8BYTES_BY_OPCODE_FULL, and _LCB_ri_hdr_bf::opcode.
unsigned int LCBR_error_get | ( | const LCB_ri * | ri | ) |
Returns the 16-bit error word of ri.
ri | Pointer to result item structure |
References _LCB_ri::hdr, LCB_RST_ERR_RCV_UNDEFINED_7, LCBR_N8BYTES_BY_OPCODE, and _LCB_ri_hdr_bf::opcode.
Referenced by show().
unsigned int LCBR_process | ( | const LCB_ri * | ri, | |
const LCB_ri * | end, | |||
LCBR_processor | rtn, | |||
void * | prm | |||
) |
Executes the user specified handler for each result item in the range ri to end.
ri | The first result item to process | |
end | One past the last result item to process | |
rtn | User provided callback routine to process one item | |
prm | User provided parameter passed to rtn |
References LCBR__next().
Referenced by LCBR_show().
Dumps the result items to stdout.
options | Show options | |
beg | Pointer to the first result descriptor to show | |
end | Pointer to one past the lst result descriptor to show |
References LCBR_process(), and show().
static unsigned int show | ( | void * | prm, | |
const LCB_ri * | ri | |||
) | [static] |
Shows (prints) a single result item.
prm | Arbitrary user parameter, unused | |
ri | Pointer to result item |
References _LATP_cell_hdr::bf, _LATP_cell_hdr_bf::dst, _LCB_ri::hdr, LCB_RESULT_ADDR_MASK, LCBR_error_get(), LCBR_TYPE_BY_OPCODE, LCBR_TYPE_REGISTER, _LCB_ri_hdr_bf::opcode, _LATP_cell_hdr_bf::parity, _LATP_cell_hdr_bf::proto, _LATP_cell_hdr_bf::rsp, _LATP_cell_hdr_bf::src, _LCB_ri_hdr_bf::timestamp, and _LATP_cell_hdr::us.