GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V1-6-4
Constituent: qse     Tag: linux-gcc
#include "QSE/QSE_map.h"
#include "QSE/QSE_acd.h"
#include "QSE/QSE_acdUnpack.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_ctb.h"
#include "EDS/EBF_cid.h"
#include "EDS/EDS_endianness.h"
#include "QSE_acdRemap.h"
#include "QSE_acdMapdef.h"
Include dependency graph for QSE_acdUnpack.c:
Defines | |
#define | HW_ACCESS(_hwa, _idx) _hwa[_idx]; |
Addresses the ACD half-word array in a way that is compatiable with big or little endian machines. | |
#define | LIST(_brd, _chn) (((BRD_ ## _brd ## _ ## _chn) / 32) % QSE_ACD_LIST_K_CNT) |
#define | MEMBER(_brd, _num, _list) ((LIST(_brd, _num) == _list) ? (0x80000000 >> (_num)) : 0) |
#define | BRD_RMA(_brd, _chn) ((BRD_ ## _brd ## _ ## _chn) & 0x1f) |
#define | BRD_RMC(_brd, _chn) (BRD_ ## _brd ## _ ## _chn) |
#define | ACD_REMAP_BRD(_brd) { BRD_MSKS(_brd), BRD_RMAS(_brd), BRD_RMCS(_brd) } |
#define | BRD_MSK(_brd, _list) |
#define | BRD_MSKS(_brd) |
#define | BRD_RMAS(_brd) |
#define | BRD_RMCS(_brd) |
Functions | |
static __inline unsigned int | remap (unsigned int list, const unsigned char *rma) |
Remaps the members in list according the remap array rma. | |
int | QSE_acdUnpack (QSE_acd *acd, const EBF_dir *dir) |
Unpacks an ACD record from the AEM into a standard structure. | |
int | QSE_acdUnpackInit (QSE_acd *acd) |
One-time initialization an QSE_acd structure. | |
void | QSE_acdUnpackReset (QSE_acd *acd) |
Resets the QSE_acd structure, preparing it for a new event. | |
unsigned int | QSE_acdUnpackSizeof (void) |
Returns the size, in bytes, of an QSE_acd structure. | |
Variables | |
const QSE_acdRemap | AcdRemap |
CVS $Id: QSE_acdUnpack.c,v 1.4 2006/02/22 01:24:43 russell Exp $
|
Value: ( \ MEMBER(_brd, 0, _list) \ | MEMBER(_brd, 1, _list) \ | MEMBER(_brd, 2, _list) \ | MEMBER(_brd, 3, _list) \ | MEMBER(_brd, 4, _list) \ | MEMBER(_brd, 5, _list) \ | MEMBER(_brd, 6, _list) \ | MEMBER(_brd, 7, _list) \ | MEMBER(_brd, 8, _list) \ | MEMBER(_brd, 9, _list) \ | MEMBER(_brd, 10, _list) \ | MEMBER(_brd, 11, _list) \ | MEMBER(_brd, 12, _list) \ | MEMBER(_brd, 13, _list) \ | MEMBER(_brd, 14, _list) \ | MEMBER(_brd, 15, _list) \ | MEMBER(_brd, 16, _list) \ | MEMBER(_brd, 17, _list) \ ) |
|
Value: { BRD_MSK(_brd, QSE_ACD_LIST_K_XZ), \ BRD_MSK(_brd, QSE_ACD_LIST_K_YZ), \ BRD_MSK(_brd, QSE_ACD_LIST_K_XY), \ BRD_MSK(_brd, QSE_ACD_LIST_K_RU) \ } |
|
Value: { \ BRD_RMA(_brd, 0), \ BRD_RMA(_brd, 1), \ BRD_RMA(_brd, 2), \ BRD_RMA(_brd, 3), \ BRD_RMA(_brd, 4), \ BRD_RMA(_brd, 5), \ BRD_RMA(_brd, 6), \ BRD_RMA(_brd, 7), \ BRD_RMA(_brd, 8), \ BRD_RMA(_brd, 9), \ BRD_RMA(_brd, 10), \ BRD_RMA(_brd, 11), \ BRD_RMA(_brd, 12), \ BRD_RMA(_brd, 13), \ BRD_RMA(_brd, 14), \ BRD_RMA(_brd, 15), \ BRD_RMA(_brd, 16), \ BRD_RMA(_brd, 17) \ } |
|
Value: { \ BRD_RMC(_brd, 0), \ BRD_RMC(_brd, 1), \ BRD_RMC(_brd, 2), \ BRD_RMC(_brd, 3), \ BRD_RMC(_brd, 4), \ BRD_RMC(_brd, 5), \ BRD_RMC(_brd, 6), \ BRD_RMC(_brd, 7), \ BRD_RMC(_brd, 8), \ BRD_RMC(_brd, 9), \ BRD_RMC(_brd, 10), \ BRD_RMC(_brd, 11), \ BRD_RMC(_brd, 12), \ BRD_RMC(_brd, 13), \ BRD_RMC(_brd, 14), \ BRD_RMC(_brd, 15), \ BRD_RMC(_brd, 16), \ BRD_RMC(_brd, 17) \ } |
|
Addresses the ACD half-word array in a way that is compatiable with big or little endian machines.
|
|
Unpacks an ACD record from the AEM into a standard structure.
|
|
One-time initialization an QSE_acd structure.
|
|
Resets the QSE_acd structure, preparing it for a new event.
|
|
Returns the size, in bytes, of an QSE_acd structure.
After allocating an QSE_acd structure, the structure should be initialized using QSE_acdUnpackInit(). |
|
Remaps the members in list according the remap array rma.
|
|
Initial value: { { ACD_REMAP_BRD(1LA), ACD_REMAP_BRD(1RB), ACD_REMAP_BRD(2LA), ACD_REMAP_BRD(2LB), ACD_REMAP_BRD(2RA), ACD_REMAP_BRD(2RB), ACD_REMAP_BRD(3LA), ACD_REMAP_BRD(3RB), ACD_REMAP_BRD(4LA), ACD_REMAP_BRD(4LB), ACD_REMAP_BRD(4RA), ACD_REMAP_BRD(4RB) } } |