16 #ifndef MBS_LmdTypeDefs
17 #define MBS_LmdTypeDefs
22 #include <machine/endian.h>
29 #if BYTE_ORDER == LITTLE_ENDIAN
30 #define MBS_TYPE(typ, subtyp) ((int32_t) typ | ((int32_t) subtyp) << 16)
32 #define MBS_TYPE(typ, subtyp) ((int32_t) subtyp | ((int32_t) typ) << 16)
43 #if BYTE_ORDER == LITTLE_ENDIAN
63 inline void SetTypePair(
unsigned typ,
unsigned subtyp) {
iType = (typ & 0xffff) | ((subtyp << 16) & 0xffff0000); }
66 inline bool isTypePair(
unsigned typ,
unsigned subtyp)
const {
return iType == ((typ & 0xffff) | ((subtyp << 16) & 0xffff0000)); }
Support for MBS - standard GSI DAQ.