Accelerator Independent Data Access / PVAccess 2.0
AIDA-PVA is the latest version of the AIDA framework. Built on top of EPICS 7 it enables client applications to programmatically access and manage any device or database on the SLAC Network using simple channel names.
Loading...
Searching...
No Matches
aida_pva_convert.h File Reference

The Header File for the type conversion functions. More...

#include <jni.h>
#include <stdbool.h>
#include "sysutil_proto.h"
#include "aida_pva_json.h"
#include "aida_pva.h"

Go to the source code of this file.

Macros

#define CONVERT_FROM_VMS_DOUBLE(_double, _count)
 Convert in-place, doubles from VMS to ieee format. More...
 
#define CONVERT_FROM_VMS_FLOAT(_float, _count)
 Convert in-place, floating point numbers from VMS to ieee format. More...
 
#define CONVERT_TO_VMS_DOUBLE(_double, _count)
 Convert in-place, doubles from ieee to VMS format. More...
 
#define CONVERT_TO_VMS_FLOAT(_float, _count)
 Convert in-place, floating point numbers from ieee to VMS format. More...
 

Detailed Description

The Header File for the type conversion functions.

CMS=C_INC

Definition in file aida_pva_convert.h.

Macro Definition Documentation

◆ CONVERT_FROM_VMS_DOUBLE

#define CONVERT_FROM_VMS_DOUBLE (   _double,
  _count 
)
Value:
{ \
int2u _n = _count; \
CVT_VMS_TO_IEEE_DBL(_double, _double, &_n); \
}

Convert in-place, doubles from VMS to ieee format.

Give a pointer to an array of VMS doubles and this macro will convert it in-place, to ieee format

Parameters
_doublepointer to a single VMS double or an array of them
_countthe number of doubles to convert

Definition at line 63 of file aida_pva_convert.h.

◆ CONVERT_FROM_VMS_FLOAT

#define CONVERT_FROM_VMS_FLOAT (   _float,
  _count 
)
Value:
{ \
int2u _n = _count; \
CVT_VMS_TO_IEEE_FLT(_float, _float, &_n); \
}

Convert in-place, floating point numbers from VMS to ieee format.

Give a pointer to an array of VMS floating point numbers and this macro will convert it in-place, to ieee format

Parameters
_floatpointer to a single VMS floating point number or an array of them
_countthe number of floating point numbers to convert

Definition at line 50 of file aida_pva_convert.h.

◆ CONVERT_TO_VMS_DOUBLE

#define CONVERT_TO_VMS_DOUBLE (   _double,
  _count 
)
Value:
{ \
int2u _n = _count; \
CVT_IEEE_TO_VMS_DBL(_double, _double, &_n); \
}

Convert in-place, doubles from ieee to VMS format.

Give a pointer to an array of ieee doubles and this macro will convert it in-place, to VMS format

Parameters
_doublepointer to a single ieee double or an array of them
_countthe number of doubles to convert

Definition at line 37 of file aida_pva_convert.h.

◆ CONVERT_TO_VMS_FLOAT

#define CONVERT_TO_VMS_FLOAT (   _float,
  _count 
)
Value:
{ \
int2u _n = _count; \
CVT_IEEE_TO_VMS_FLT(_float, _float, &_n); \
}

Convert in-place, floating point numbers from ieee to VMS format.

Give a pointer to an array of ieee floating point numbers and this macro will convert it in-place, to VMS format

Parameters
_floatpointer to a single ieee floating point number or an array of them
_countthe number of ieee point numbers to convert

Definition at line 24 of file aida_pva_convert.h.