Data Structures | Defines | Typedefs | Functions | Variables

/scratch/npr78/temp/xspress3_api/det-software/none_vme/xspress3/include/xspress3_data_mod.h File Reference

Data Structures

struct  xsp3_scope_data_module
struct  xsp3_scope_data_module::xsp3_scope_module_head

Defines

#define XSP3_MAX_MODNAME   100
#define XSP3_MAX_CARDS   8
#define XSP3_SCOPE_MODULE_MAGIC   "xsp3scp"
#define XSP3_SCOPE_MOD_LAYOUT_2X3   0
 Original 2 blocks of 3 streams interlaved (To suit XC5VF PowrePC DMA).
#define XSP3_SCOPE_MOD_LAYOUT_DIFFS_TEST   1
 9 blocks each of 1 stream to suit reconstruction of differences data.
#define XSP3_SCOPE_POINTS_FIXED   (64*1024*1024)
#define XSP3_SCOPE_UDP_PACKET   8000
#define XSP3_SCOPE_UDP_FRAME   0x100000
#define XSP3_SCOPE_NUM_SRC0   4
#define XSP3_SCOPE_NUM_SRC123   4
#define XSP3_SCOPE_NUM_SRC45   10
#define XSP3_SCOPE_FLAGS_SIGNED   1
#define XSP3_SCOPE_FLAGS_ADD_DIG   2

Typedefs

typedef struct
xsp3_scope_data_module 
XSP3ScopeModule

Functions

XSP3ScopeModulexsp3_scope_mod_create (char *name, int num_cards, int lwords_per_card, mh_com **mod_head, int layout)
 Create a shared data module in /dev/shm to store Scope mode data.
u_int16_t * xsp3_scope_mod_get_ptr (XSP3ScopeModule *mod, int card, int stream)
 Get pointer to data for specifed card and stream with the data module.
int xsp3_scope_mod_get_inc (XSP3ScopeModule *mod)
 Get increment to use when stepping to next time point when accessing data in the scope mode data module.
int xsp3_scope_mod_get_nstreams (XSP3ScopeModule *mod)
 Get number of streams per card for current scope mode data module layout.
int xsp3_scope_chan (XSP3ScopeModule *mod, int card, int stream)
 Return Channel number (currently within card) for specified stream.
int xsp3_scope_get_str_sel (XSP3ScopeModule *mod, int card, int stream)
 Get source select for specified stream allowing for any special interpretation of scope mode data module layout.
const char * xsp3_scope_stream_name (XSP3ScopeModule *mod, int card, int stream)
 Return a label to desribe the describe the data on a given scope stream.
int xsp3_scope_stream_flags (XSP3ScopeModule *mod, int card, int stream)
 Return Flags describing how to interpret scope mode data for give stream.

Variables

const char * xsp3_scope_name_s0 [XSP3_SCOPE_NUM_SRC0]
const char * xsp3_scope_name_s123 [XSP3_SCOPE_NUM_SRC123]
const char * xsp3_scope_name_s45 [XSP3_SCOPE_NUM_SRC45]
const char * xsp3_scope_alt_names_s0 [XSP3_SCOPE_NUM_SRC0][16]
const char * xsp3_scope_alt_names_s123 [XSP3_SCOPE_NUM_SRC123][16]
const char * xsp3_scope_alt_names_s45 [XSP3_SCOPE_NUM_SRC45][16]

Define Documentation

#define XSP3_MAX_CARDS   8
#define XSP3_MAX_MODNAME   100
#define XSP3_SCOPE_FLAGS_ADD_DIG   2
#define XSP3_SCOPE_FLAGS_SIGNED   1
#define XSP3_SCOPE_MODULE_MAGIC   "xsp3scp"
#define XSP3_SCOPE_NUM_SRC0   4
#define XSP3_SCOPE_NUM_SRC123   4
#define XSP3_SCOPE_NUM_SRC45   10
#define XSP3_SCOPE_POINTS_FIXED   (64*1024*1024)

Fixed sized scope mode number of points in XSP3_SCOPE_MOD_LAYOUT_DIFFS_TEST

#define XSP3_SCOPE_UDP_FRAME   0x100000
#define XSP3_SCOPE_UDP_PACKET   8000

Typedef Documentation


Variable Documentation

const char* xsp3_scope_alt_names_s0[XSP3_SCOPE_NUM_SRC0][16]
const char* xsp3_scope_alt_names_s123[XSP3_SCOPE_NUM_SRC123][16]
const char* xsp3_scope_alt_names_s45[XSP3_SCOPE_NUM_SRC45][16]
const char* xsp3_scope_name_s0[XSP3_SCOPE_NUM_SRC0]
const char* xsp3_scope_name_s123[XSP3_SCOPE_NUM_SRC123]
const char* xsp3_scope_name_s45[XSP3_SCOPE_NUM_SRC45]