GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > edsd / mv2304
#include "EDS/EDS_fw.h"
#include "EDS/LCBV.h"
Typedefs | |
typedef enum _EDSD_PRINT_K | EDSD_PRINT_K |
Typedef for enum _EDSD_PRINT_K. | |
typedef enum _EDSD_PRINT_V | EDSD_PRINT_V |
Typedef for enum _EDSD_PRINT_V. | |
typedef enum _EDSD_PRINT_M | EDSD_PRINT_M |
Typedef for enum _EDSD_PRINT_M. | |
Enumerations | |
enum | _EDSD_PRINT_K { EDSD_PRINT_K_RAW = 0, EDSD_PRINT_K_DIR = 1, EDSD_PRINT_K_HDR = 2, EDSD_PRINT_K_MC = 3, EDSD_PRINT_K_GEM = 4, EDSD_PRINT_K_ACD = 5, EDSD_PRINT_K_ACDP = 6, EDSD_PRINT_K_RSVD7 = 7, EDSD_PRINT_K_uTKR = 8, EDSD_PRINT_K_UTKR = 9, EDSD_PRINT_K_tTKR = 10, EDSD_PRINT_K_TTKR = 11, EDSD_PRINT_K_cCAL = 12, EDSD_PRINT_K_MCAL = 13, EDSD_PRINT_K_eCAL = 14, EDSD_PRINT_K_ECAL = 15, EDSD_PRINT_K_DGN = 16, EDSD_PRINT_K_rERR = 17, EDSD_PRINT_K_fERR = 18, EDSD_PRINT_K_CNT = 19, EDSD_PRINT_K_ON_ERR = 31 } |
Enumerates what to print. More... | |
enum | _EDSD_PRINT_V { EDSD_PRINT_V_RAW = EDSD_PRINT_K_RAW, EDSD_PRINT_V_DIR = EDSD_PRINT_K_DIR, EDSD_PRINT_V_HDR = EDSD_PRINT_K_HDR, EDSD_PRINT_V_MC = EDSD_PRINT_K_MC, EDSD_PRINT_V_ACD = EDSD_PRINT_K_ACD, EDSD_PRINT_V_ACDP = EDSD_PRINT_K_ACDP, EDSD_PRINT_V_GEM = EDSD_PRINT_K_GEM, EDSD_PRINT_V_RSVD7 = EDSD_PRINT_K_RSVD7, EDSD_PRINT_V_uTKR = EDSD_PRINT_K_uTKR, EDSD_PRINT_V_UTKR = EDSD_PRINT_K_UTKR, EDSD_PRINT_V_tTKR = EDSD_PRINT_K_tTKR, EDSD_PRINT_V_TTKR = EDSD_PRINT_K_TTKR, EDSD_PRINT_V_cCAL = EDSD_PRINT_K_cCAL, EDSD_PRINT_V_MCAL = EDSD_PRINT_K_MCAL, EDSD_PRINT_V_eCAL = EDSD_PRINT_K_eCAL, EDSD_PRINT_V_ECAL = EDSD_PRINT_K_ECAL, EDSD_PRINT_V_DGN = EDSD_PRINT_K_DGN, EDSD_PRINT_V_rERR = EDSD_PRINT_K_rERR, EDSD_PRINT_V_fERR = EDSD_PRINT_K_fERR, EDSD_PRINT_V_ON_ERR = EDSD_PRINT_K_ON_ERR } |
Enumerates the bit positions of the print objects. More... | |
enum | _EDSD_PRINT_M { EDSD_PRINT_M_RAW = (1 << EDSD_PRINT_V_RAW ), EDSD_PRINT_M_DIR = (1 << EDSD_PRINT_V_DIR ), EDSD_PRINT_M_HDR = (1 << EDSD_PRINT_V_HDR ), EDSD_PRINT_M_MC = (1 << EDSD_PRINT_V_MC ), EDSD_PRINT_M_ACD = (1 << EDSD_PRINT_V_ACD ), EDSD_PRINT_M_ACDP = (1 << EDSD_PRINT_V_ACDP), EDSD_PRINT_M_GEM = (1 << EDSD_PRINT_V_GEM ), EDSD_PRINT_M_RSVD7 = (1 << EDSD_PRINT_V_RSVD7), EDSD_PRINT_M_uTKR = (1 << EDSD_PRINT_V_uTKR), EDSD_PRINT_M_UTKR = (1 << EDSD_PRINT_V_UTKR), EDSD_PRINT_M_tTKR = (1 << EDSD_PRINT_V_tTKR), EDSD_PRINT_M_TTKR = (1 << EDSD_PRINT_V_TTKR), EDSD_PRINT_M_TKR, EDSD_PRINT_M_cCAL = (1 << EDSD_PRINT_V_cCAL), EDSD_PRINT_M_MCAL = (1 << EDSD_PRINT_V_MCAL), EDSD_PRINT_M_eCAL = (1 << EDSD_PRINT_V_eCAL), EDSD_PRINT_M_ECAL = (1 << EDSD_PRINT_V_ECAL), EDSD_PRINT_M_CAL, EDSD_PRINT_M_DGN = (1 << EDSD_PRINT_V_DGN), EDSD_PRINT_M_rERR = (1 << EDSD_PRINT_V_rERR), EDSD_PRINT_M_fERR = (1 << EDSD_PRINT_V_fERR), EDSD_PRINT_M_ERR, EDSD_PRINT_M_ALL = (1 << EDSD_PRINT_K_CNT) - 1, EDSD_PRINT_M_ON_ERR = (1 << EDSD_PRINT_V_ON_ERR) } |
Enumerates the bit masks of the print objects. More... | |
Functions | |
int | EDSD_printSizeof (void) |
Returns the size, in bytes, of the control structure. | |
int | EDSD_printConstruct (EDSD_printCtl *ctl, unsigned int what) |
Allocates and initializes the unpacking buffers. | |
unsigned int | EDSD_printProcess (EDSD_printCtl *ctl, unsigned int pktBytes, EBF_pkt *pkt, EBF_siv siv, EDS_fwIxb *ixb) |
Loops through the events, printing the contents to stdout. | |
void | EDSD_printReport (const EDSD_printCtl *ctl) |
The reporting function. | |
int | EDSD_printDestruct (EDSD_printCtl *ctl) |
DeAllocates and the unpacking buffers. | |
unsigned int | EDSD_printObjectsGet (const EDSD_printCtl *ctl) |
Accessor function to return the list of EDS_fw objects. | |
unsigned int | EDSD_printNeedsGet (const EDSD_printCtl *ctl) |
Accessor function to return the scheduling needs. |
CVS $Id: EDSD_print.h,v 1.6 2009/04/29 17:22:40 russell Exp $
enum _EDSD_PRINT_K |
Enumerates what to print.
enum _EDSD_PRINT_M |
Enumerates the bit masks of the print objects.
enum _EDSD_PRINT_V |
Enumerates the bit positions of the print objects.
int EDSD_printConstruct | ( | EDSD_printCtl * | ctl, | |
unsigned int | what | |||
) |
Allocates and initializes the unpacking buffers.
ctl | Pointer to the control buffer | |
what | Bit mask of what to print, see _EDSD_PRINT_M |
int EDSD_printDestruct | ( | EDSD_printCtl * | ctl | ) |
DeAllocates and the unpacking buffers.
ctl | Pointer to the control buffer |
unsigned int EDSD_printNeedsGet | ( | const EDSD_printCtl * | ctl | ) |
Accessor function to return the scheduling needs.
ctl | The print control structure |
unsigned int EDSD_printObjectsGet | ( | const EDSD_printCtl * | ctl | ) |
Accessor function to return the list of EDS_fw objects.
ctl | The print control structure |
unsigned int EDSD_printProcess | ( | EDSD_printCtl * | ctl, | |
unsigned int | pktBytes, | |||
EBF_pkt * | pkt, | |||
EBF_siv | siv, | |||
EDS_fwIxb * | ixb | |||
) |
Loops through the events, printing the contents to stdout.
ctl | Control structure dictating how many and what to print | |
pktBytes | The number of bytes in the packet | |
pkt | The packet to process | |
siv | The state information vector | |
ixb | The information exchange block |
void EDSD_printReport | ( | const EDSD_printCtl * | ctl | ) |
The reporting function.
ctl | The control parameters |
int EDSD_printSizeof | ( | void | ) |
Returns the size, in bytes, of the control structure.