/lem/pixie16/devel/scan_c++/include/xia_common.h File Reference

needed for XIA functions such as ReadBuffData More...

#include <string.h>
#include <math.h>

Include dependency graph for xia_common.h:

This graph shows which files directly or indirectly include this file:


Defines

#define TRUE_   (1 == 1)
#define FALSE_   (1 == 0)
#define UNUSED(x)   ((x) = (x))
#define STREQ(x, y)   (strcmp((x), (y)) == 0)
#define STRNEQ(x, y)   (strncmp((x), (y), strlen(y)) == 0)
#define ROUND(x)   ((x) < 0.0 ? ceil((x) - 0.5) : floor((x) + 0.5))
#define PRINT_NON_NULL(x)   ((x) == NULL ? "NULL" : (x))
#define BYTE_TO_WORD(lo, hi)   (unsigned short)(((unsigned short)(hi) << 8) | (lo))
#define LO_BYTE(word)   ((word) & 0xFF)
#define HI_BYTE(word)   (((word) >> 8) & 0xFF)
#define MAKE_LOWER_CASE(s, i)
#define N_ELEMS(x)   (sizeof(x) / sizeof((x)[0]))
#define MIN(x, y)   ((x) < (y) ? (x) : (y))
#define MAX(x, y)   ((x) > (y) ? (x) : (y))

Typedefs

typedef unsigned char byte_t
typedef unsigned char boolean_t
typedef unsigned short parameter_t
typedef unsigned short flag_t

Detailed Description

needed for XIA functions such as ReadBuffData


Define Documentation

#define BYTE_TO_WORD ( lo,
hi   )     (unsigned short)(((unsigned short)(hi) << 8) | (lo))

#define FALSE_   (1 == 0)

#define HI_BYTE ( word   )     (((word) >> 8) & 0xFF)

#define LO_BYTE ( word   )     ((word) & 0xFF)

#define MAKE_LOWER_CASE ( s,
 ) 

Value:

for ((i) = 0; (i) < strlen((s)); (i)++) \
                                 (s)[i] = (char)tolower((s)[i])

#define MAX ( x,
 )     ((x) > (y) ? (x) : (y))

#define MIN ( x,
 )     ((x) < (y) ? (x) : (y))

#define N_ELEMS ( x   )     (sizeof(x) / sizeof((x)[0]))

#define PRINT_NON_NULL ( x   )     ((x) == NULL ? "NULL" : (x))

#define ROUND ( x   )     ((x) < 0.0 ? ceil((x) - 0.5) : floor((x) + 0.5))

#define STREQ ( x,
 )     (strcmp((x), (y)) == 0)

#define STRNEQ ( x,
 )     (strncmp((x), (y), strlen(y)) == 0)

#define TRUE_   (1 == 1)

MACROS

#define UNUSED ( x   )     ((x) = (x))


Typedef Documentation

typedef unsigned char boolean_t

typedef unsigned char byte_t

Constants Typedefs

typedef unsigned short flag_t

typedef unsigned short parameter_t


Generated on Wed May 14 10:07:06 2008 for pixie16 by  doxygen 1.5.5