- Fix to various drivers due to changes in rs232controller
- hkl now searches psi in .5 steps - first point of fastscan is driven normally SKIPPED: psi/amor2t.c psi/amor2t.h psi/amor2t.i psi/amor2t.tex psi/amor2t.w psi/dornier2.c psi/el734hp.c psi/nxamor.c psi/slsmagnet.c psi/sps.c
This commit is contained in:
56
napi.h
56
napi.h
@@ -3,7 +3,7 @@
|
||||
|
||||
Application Program Interface Header File
|
||||
|
||||
Copyright (C) 2000-2003 Mark Koennecke, Uwe Filges
|
||||
Copyright (C) 2000-2005 Mark Koennecke, Uwe Filges
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
For further information, see <http://www.neutron.anl.gov/NeXus/>
|
||||
|
||||
$Id: napi.h,v 1.8 2005/05/27 11:58:05 koennecke Exp $
|
||||
$Id: napi.h,v 1.9 2005/09/07 13:51:12 koennecke Exp $
|
||||
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
@@ -45,16 +45,30 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#define snprintf nxisnprintf
|
||||
|
||||
extern int nxisnprintf(char* buffer, int len, const char* format, ... );
|
||||
|
||||
#endif
|
||||
#endif /* _WIN32 */
|
||||
|
||||
typedef void* NXhandle; /* really a pointer to a NexusFile structure */
|
||||
typedef int NXstatus;
|
||||
typedef char NXname[128];
|
||||
|
||||
typedef enum {NXACC_READ=1, NXACC_RDWR=2, NXACC_CREATE=3, NXACC_CREATE4=4, NXACC_CREATE5=5, NXACC_CREATEXML=6} NXaccess;
|
||||
/*
|
||||
* Any new NXaccess options should be numbered in 2^n format
|
||||
* (8, 16, 32, etc) so that they can be bit masked and tested easily.
|
||||
*
|
||||
* To test older non bit masked options (values below 8) use e.g.
|
||||
*
|
||||
* if ( (mode & NXACCMASK_REMOVEFLAGS) == NXACC_CREATE )
|
||||
*
|
||||
* To test new (>=8) options just use normal bit masking e.g.
|
||||
*
|
||||
* if ( mode & NXACC_NOSTRIP )
|
||||
*
|
||||
*/
|
||||
#define NXACCMASK_REMOVEFLAGS (0x7) /* bit mask to remove higher flag options */
|
||||
|
||||
typedef enum {NXACC_READ=1, NXACC_RDWR=2, NXACC_CREATE=3, NXACC_CREATE4=4,
|
||||
NXACC_CREATE5=5, NXACC_CREATEXML=6, NXACC_NOSTRIP=128} NXaccess;
|
||||
|
||||
typedef struct {
|
||||
char *iname;
|
||||
@@ -70,10 +84,6 @@ typedef struct {
|
||||
#define NX_MAXRANK 32
|
||||
#define NX_MAXNAMELEN 64
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
HDF Datatype values for datatype parameters
|
||||
in the Nexus API
|
||||
@@ -91,7 +101,6 @@ typedef struct {
|
||||
|
||||
--------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
/* Map NeXus to HDF types */
|
||||
#define NX_FLOAT32 5
|
||||
#define NX_FLOAT64 6
|
||||
@@ -111,37 +120,20 @@ typedef struct {
|
||||
#define NX_COMP_RLE 300
|
||||
#define NX_COMP_HUF 400
|
||||
|
||||
|
||||
#ifdef HDF4
|
||||
#include <mfhdf.h>
|
||||
#endif
|
||||
|
||||
#ifdef HDF5
|
||||
#include <hdf5.h>
|
||||
#endif
|
||||
|
||||
#ifndef HDF4
|
||||
typedef int int32;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int32 iTag; /* HDF4 variable */
|
||||
int32 iRef; /* HDF4 variable */
|
||||
#ifdef HDF5
|
||||
long iTag; /* HDF4 variable */
|
||||
long iRef; /* HDF4 variable */
|
||||
char iTag5[1024]; /* HDF5 variable */
|
||||
char iRef5[1024]; /* HDF5 variable */
|
||||
char iRefd[1024]; /* HDF5 variable */
|
||||
#endif
|
||||
char targetPath[1024]; /* XML path */
|
||||
} NXlink;
|
||||
|
||||
|
||||
|
||||
#define NXMAXSTACK 50
|
||||
|
||||
#define CONCAT(__a,__b) __a##__b /* token concatenation */
|
||||
|
||||
#if defined(__unix) || defined(__unix__) || defined (__VMS)
|
||||
#if defined(__unix) || defined(__unix__) || defined (__VMS) || defined(__APPLE__)
|
||||
|
||||
# ifdef __VMS
|
||||
# define MANGLE(__arg) __arg
|
||||
@@ -331,6 +323,7 @@ NX_EXTERNAL NXstatus CALLING_STYLE NXfree(void** data);
|
||||
NX_EXTERNAL void CALLING_STYLE NXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text));
|
||||
extern void (*NXIReportError)(void *pData,char *text);
|
||||
extern void *NXpData;
|
||||
extern char *NXIformatNeXusTime();
|
||||
|
||||
|
||||
/*
|
||||
@@ -344,6 +337,7 @@ NX_EXTERNAL NXstatus CALLING_STYLE NXsetcache(long newVal);
|
||||
*/
|
||||
typedef struct {
|
||||
NXhandle *pNexusData;
|
||||
int stripFlag;
|
||||
NXstatus (CALLING_STYLE *nxclose)(NXhandle* pHandle);
|
||||
NXstatus (CALLING_STYLE *nxflush)(NXhandle* pHandle);
|
||||
NXstatus (CALLING_STYLE *nxmakegroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);
|
||||
|
||||
Reference in New Issue
Block a user