GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSEP / V3-1-0
Constituent: qsep     Tag: linux-gcc
#include "SIV.h"
#include "EDS/EBF_pkt.h"
#include "EDS/EBF_edw.h"
#include "PBS/PARITY.ih"
Include dependency graph for SIV.c:

Defines | |
| #define | ERR_XFR_BY_XSTATUS |
| Bit array giving the ERR_XFR bit as a function of the transfer status field in the event descriptor word. | |
| #define | ERR_XFR(_xstatus) ((ERR_XFR_BY_XSTATUS << (_xstatus)) & SIV_M_ERR_XFR) |
| Translates the event descriptors's transfer status, _xstatus into the corresponding ERR_XFR mask. | |
| #define | MORE_ERR_RCV_BY_RSTATUS |
| Bit array giving the MORE and ERR_RCV bit by rstatus. | |
| #define | MORE_ERR_RCV(_rstatus) |
| Translates the event descriptors's receive status, _rstatus into the corresponding MORE and ERR_RCV mask. | |
| #define | ERR_EBM_BY_EBMERR |
| Bit array giving 0 or depending on whether the EBM error field contains an error. | |
| #define | ERR_EBM(_ebm_err) (((ERR_EBM_BY_EBMERR >> (_ebm_err)) & 1) << SIV_V_ERR_EBM) |
| Translates the EBM's 3 bit error field. | |
| #define | NOTFIRST(_siv) |
| Sets the NOTFIRST bit based on the state of the MORE bit in the State Information Vector, _siv. | |
Functions | |
| SIV | SIV_init (void) |
| Returns an initializes the Packet Reassembly State Information Vector. | |
| SIV | SIV_update (SIV siv, unsigned int edw, const EBF_pkt *pkt) |
| Returns the updated the State Information Vector. | |
CVS $Id: SIV.c,v 1.1 2006/02/15 22:31:41 russell Exp $
|
|
Translates the EBM's 3 bit error field.
|
|
|
Value: ( (0 << 0) /* Success */ \ | (1 << 1) /* Parity */ \ | (1 << 2) /* Truncated */ \ | (1 << 3) /* Write Fault */ \ | (1 << 4) /* Timed out */ \ | (1 << 5) /* Undefined */ \ | (1 << 6) /* Undefined */ \ | (1 << 7))
|
|
|
Translates the event descriptors's transfer status, _xstatus into the corresponding ERR_XFR mask.
|
|
|
Value: ((0 >> 0) \
| (SIV_M_ERR_XFR >> 1) \
| (SIV_M_ERR_XFR >> 2) \
| (SIV_M_ERR_XFR >> 3) \
| (SIV_M_ERR_XFR >> 4) \
| (SIV_M_ERR_XFR >> 5) \
| (SIV_M_ERR_XFR >> 6) \
| (SIV_M_ERR_XFR >> 7)) \
|
|
|
Value: ((MORE_ERR_RCV_BY_RSTATUS << (3 * _rstatus)) & \ (SIV_M_STATE_MORE | SIV_M_ERR_RCV))
|
|
|
Value: /* Status More RErr */ \ ((0 >> 3*0) /* No No */ \ |((unsigned int)SIV_M_ERR_RCV >> 3*1) /* No Yes */ \ |((unsigned int)SIV_M_ERR_RCV >> 3*2) /* No Yes */ \ |((unsigned int)SIV_M_STATE_MORE >> 3*3))
|
|
|
Value: ((((unsigned int)(_siv)) >> \ (SIV_V_STATE_MORE - SIV_V_STATE_NOTFIRST)) \ & SIV_M_STATE_NOTFIRST)
|
|
|
Returns an initializes the Packet Reassembly State Information Vector.
|
|
||||||||||||||||
|
Returns the updated the State Information Vector.
|
1.4.4