Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-.NET | API-Java | Examples | Downloads
page generated on 22.12.2024 - 04:45
Functions
cdi.c File Reference

basic CDI library routines More...

Functions

CDI_EXPORT int cdiRegisterBusCleanup (char *busName, int(*fcn)(int))
 registers the bus cleanup function used when CDI closes. More...
 
CDI_EXPORT int cdiRegisterBusHandler (char *busName, void(*fcn)(CdiRequestInfoBlk *))
 registers the bus handler dispatch function used for bus io. More...
 
CDI_EXPORT int cdiRegisterBusInitialization (char *busName, int(*fcn)(int, int, int, char *))
 registers a bus initialization function to be used by CDI when initializing the bus. More...
 
CDI_EXPORT int cdiRegisterBusScanner (char *busName, int(*fcn)(char *, char *, int))
 registers the bus scan function used for CDI diagnostics. More...
 
CDI_EXPORT int cdiRegisterCalibrationFunction (char *fcnName, double(*fcn)(double))
 registers a calibration function for use by CDI More...
 

Detailed Description

basic CDI library routines

Function Documentation

◆ cdiRegisterBusCleanup()

CDI_EXPORT int cdiRegisterBusCleanup ( char *  busName,
int(*)(int)  fcn 
)

registers the bus cleanup function used when CDI closes.

This routine will be called when CDI closes and allows the bus to free up resources, etc.

Parameters
busNameis the bus plug name to be used by database entries refering to this bus plug.
fcnis the address of the bus cleanup function to be called when CDI closes. The function must have the prototype
int fcn(int line)
and return '0' if the call was successful. The line parameter will contain the bus line which is being closed.

example:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <math.h>
#include <errno.h>
#include "cdi.h"
#include "tinecdi.h"
#include "cdiSimulateLib.h"
#define BUSPLUG_NAME "SIMULATE"
char gBusPlugName[64] = BUSPLUG_NAME;
int cdiInitSimulate(void)
{
int cc = 0;
/* any filter function for data on the bus ? */
if ((cc=cdiRegisterBusFilter(gBusPlugName,filterSimulation)) != 0 ) goto err;
/* how to get things started:*/
if ((cc=cdiRegisterBusInitialization(gBusPlugName,initSimulation)) != 0 ) goto err;
/* where the action is: */
if ((cc=cdiRegisterBusHandler(gBusPlugName,simulationHandler)) != 0 ) goto err;
/* how to clean things up when we're unloaded */
if ((cc=cdiRegisterBusCleanup(gBusPlugName,exitSimulation)) != 0 ) goto err;
/* any diagnostic scanning functions ? */
if ((cc=cdiRegisterBusScanner(gBusPlugName,scanSimulationBus)) != 0 ) goto err;
err:
if (cc)
{
cdilog("%s : failure in bus registration SEDPC",erlst[cc]);
}
return cc;
}
void fixBusPlugName(void)
{
char *ptr = getenv("CDI_SIMULATE_PLUG");
if (ptr != NULL && strlen(ptr) > 0)
{
strncpy(gBusPlugName, ptr, 16);
gBusPlugName[16] = 0;
}
}
#if defined(WIN32)
BOOL WINAPI DllMain(HINSTANCE hInstDll,DWORD fdwReason,LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH: // DLL being loaded
fixBusPlugName();
cdiInitSimulate();
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH: // DLL being unloaded
break;
}
return (TRUE);
}
#elif defined(UNIX)
__attribute__((constructor)) void cdiSedacMain(void)
{
fixBusPlugName();
cdiInitSimulate();
return;
}
#endif
Returns
0 upon success

◆ cdiRegisterBusHandler()

CDI_EXPORT int cdiRegisterBusHandler ( char *  busName,
void(*)(CdiRequestInfoBlk *)  fcn 
)

registers the bus handler dispatch function used for bus io.

This is the principal dispatch routine used to commuicate with the hardware bus. All 'SEND' and 'RECV' activity flow through this routine. Any calls will provide the complete CdiRequestBlk defining the requested transaction, and it is the duty of the bus plug to process the request and return.

Parameters
busNameis the bus plug name to be used by database entries refering to this bus plug.
fcnis the address of the bus handler function to be called when CDI accesses the hardware bus. The function must have the prototype
int fcn(CdiRequestBlk *reqBlk)
and return '0' if the call was successful. The CDI Request Block will define the nature of the requested transaction in its entirety. All associated parameter lists will be provided within this structure.

example:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <math.h>
#include <errno.h>
#include "cdi.h"
#include "tinecdi.h"
#include "cdiSimulateLib.h"
#define BUSPLUG_NAME "SIMULATE"
char gBusPlugName[64] = BUSPLUG_NAME;
int cdiInitSimulate(void)
{
int cc = 0;
/* any filter function for data on the bus ? */
if ((cc=cdiRegisterBusFilter(gBusPlugName,filterSimulation)) != 0 ) goto err;
/* how to get things started:*/
if ((cc=cdiRegisterBusInitialization(gBusPlugName,initSimulation)) != 0 ) goto err;
/* where the action is: */
if ((cc=cdiRegisterBusHandler(gBusPlugName,simulationHandler)) != 0 ) goto err;
/* how to clean things up when we're unloaded */
if ((cc=cdiRegisterBusCleanup(gBusPlugName,exitSimulation)) != 0 ) goto err;
/* any diagnostic scanning functions ? */
if ((cc=cdiRegisterBusScanner(gBusPlugName,scanSimulationBus)) != 0 ) goto err;
err:
if (cc)
{
cdilog("%s : failure in bus registration SEDPC",erlst[cc]);
}
return cc;
}
void fixBusPlugName(void)
{
char *ptr = getenv("CDI_SIMULATE_PLUG");
if (ptr != NULL && strlen(ptr) > 0)
{
strncpy(gBusPlugName, ptr, 16);
gBusPlugName[16] = 0;
}
}
#if defined(WIN32)
BOOL WINAPI DllMain(HINSTANCE hInstDll,DWORD fdwReason,LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH: // DLL being loaded
fixBusPlugName();
cdiInitSimulate();
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH: // DLL being unloaded
break;
}
return (TRUE);
}
#elif defined(UNIX)
__attribute__((constructor)) void cdiSedacMain(void)
{
fixBusPlugName();
cdiInitSimulate();
return;
}
#endif
Returns
0 upon success

◆ cdiRegisterBusInitialization()

CDI_EXPORT int cdiRegisterBusInitialization ( char *  busName,
int(*)(int, int, int, char *)  fcn 
)

registers a bus initialization function to be used by CDI when initializing the bus.

After the CDI database has been read and processed, CDI will call any bus initialization routines which need to be called, so as to set up the hardware bus for hardware io.

Parameters
busNameis the bus plug name to be used by database entries refering to this bus plug.
fcnis the address of the bus initialization function to be called when CDI initializes the bus. The function must have the prototype
int fcn(int busLine, int cdiLine, int numberDevices, char *parameterList)
and return '0' if the initialization was successful. This initialization dispatch function will receive (according to the registered database entries) the bus line number (from the database), the CDI line number (a CDI internal line number), the total number of registered devices, and the parameter list (if any) supplied with the bus registration.

example:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <math.h>
#include <errno.h>
#include "cdi.h"
#include "tinecdi.h"
#include "cdiSimulateLib.h"
#define BUSPLUG_NAME "SIMULATE"
char gBusPlugName[64] = BUSPLUG_NAME;
int cdiInitSimulate(void)
{
int cc = 0;
/* any filter function for data on the bus ? */
if ((cc=cdiRegisterBusFilter(gBusPlugName,filterSimulation)) != 0 ) goto err;
/* how to get things started:*/
if ((cc=cdiRegisterBusInitialization(gBusPlugName,initSimulation)) != 0 ) goto err;
/* where the action is: */
if ((cc=cdiRegisterBusHandler(gBusPlugName,simulationHandler)) != 0 ) goto err;
/* how to clean things up when we're unloaded */
if ((cc=cdiRegisterBusCleanup(gBusPlugName,exitSimulation)) != 0 ) goto err;
/* any diagnostic scanning functions ? */
if ((cc=cdiRegisterBusScanner(gBusPlugName,scanSimulationBus)) != 0 ) goto err;
err:
if (cc)
{
cdilog("%s : failure in bus registration SEDPC",erlst[cc]);
}
return cc;
}
void fixBusPlugName(void)
{
char *ptr = getenv("CDI_SIMULATE_PLUG");
if (ptr != NULL && strlen(ptr) > 0)
{
strncpy(gBusPlugName, ptr, 16);
gBusPlugName[16] = 0;
}
}
#if defined(WIN32)
BOOL WINAPI DllMain(HINSTANCE hInstDll,DWORD fdwReason,LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH: // DLL being loaded
fixBusPlugName();
cdiInitSimulate();
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH: // DLL being unloaded
break;
}
return (TRUE);
}
#elif defined(UNIX)
__attribute__((constructor)) void cdiSedacMain(void)
{
fixBusPlugName();
cdiInitSimulate();
return;
}
#endif
Returns
0 upon success

◆ cdiRegisterBusScanner()

CDI_EXPORT int cdiRegisterBusScanner ( char *  busName,
int(*)(char *, char *, int)  fcn 
)

registers the bus scan function used for CDI diagnostics.

This routine will be called when CDI closes and allows the bus to free up resources, etc.

Parameters
busNameis the bus plug name to be used by database entries refering to this bus plug.
fcnis the address of the bus scan function to be called when CDI issues a bus scan. It depends completely on the bus as to what consitutes a scan operation. The function must have the prototype
int fcn(char *target,char *result,int resultBufferSize)
and return '0' if the call was successful. The 'target' will simply be a character string giving the desired scan operation (e.g. 'crates', 'addresses'). The 'result' will likewise be a character string giving the results of the scan. 'resultBufferSize' gives the total string capacity of 'result', so that the bus plug can know note to overwrite the given buffer.

example:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <math.h>
#include <errno.h>
#include "cdi.h"
#include "tinecdi.h"
#include "cdiSimulateLib.h"
#define BUSPLUG_NAME "SIMULATE"
char gBusPlugName[64] = BUSPLUG_NAME;
int cdiInitSimulate(void)
{
int cc = 0;
/* any filter function for data on the bus ? */
if ((cc=cdiRegisterBusFilter(gBusPlugName,filterSimulation)) != 0 ) goto err;
/* how to get things started:*/
if ((cc=cdiRegisterBusInitialization(gBusPlugName,initSimulation)) != 0 ) goto err;
/* where the action is: */
if ((cc=cdiRegisterBusHandler(gBusPlugName,simulationHandler)) != 0 ) goto err;
/* how to clean things up when we're unloaded */
if ((cc=cdiRegisterBusCleanup(gBusPlugName,exitSimulation)) != 0 ) goto err;
/* any diagnostic scanning functions ? */
if ((cc=cdiRegisterBusScanner(gBusPlugName,scanSimulationBus)) != 0 ) goto err;
err:
if (cc)
{
cdilog("%s : failure in bus registration SEDPC",erlst[cc]);
}
return cc;
}
void fixBusPlugName(void)
{
char *ptr = getenv("CDI_SIMULATE_PLUG");
if (ptr != NULL && strlen(ptr) > 0)
{
strncpy(gBusPlugName, ptr, 16);
gBusPlugName[16] = 0;
}
}
#if defined(WIN32)
BOOL WINAPI DllMain(HINSTANCE hInstDll,DWORD fdwReason,LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH: // DLL being loaded
fixBusPlugName();
cdiInitSimulate();
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH: // DLL being unloaded
break;
}
return (TRUE);
}
#elif defined(UNIX)
__attribute__((constructor)) void cdiSedacMain(void)
{
fixBusPlugName();
cdiInitSimulate();
return;
}
#endif
Returns
0 upon success

◆ cdiRegisterCalibrationFunction()

CDI_EXPORT int cdiRegisterCalibrationFunction ( char *  fcnName,
double(*)(double)  fcn 
)

registers a calibration function for use by CDI

Bus actions 'SEND' and 'RECV' send and receive raw data to and from the hardware bus according to the bus format registered with the corresponding device. The raw data can be automatically calibrated (receive) or reverse calibrated (send) by CDI if calibration rules are specified. If the calibration rules are too complex to be dealt with be the systematically known rules set, then one can make use of a calibration function registered via this call.

Parameters
fcnNameis the function name in plain text to be stored in the CDI function library.
fcnis the address of the function to be called when the calibation rule is to be used. The function must take a one paramter as input (data type double) and return the calibrated parameter (also as data type double).

example:

#ifdef WIN32
# define FCN_EXPORT __declspec(dllexport)
#else
# define FCN_EXPORT
#endif
FCN_EXPORT double bit12sgn(double v)
{
short w = (short)v;
short sgn = sgn = (w & 0x0800) == 0 ? 1 : -1;
w &= 0x07ff;
w *= sgn;
return (double)w;
}
FCN_EXPORT double nib2exp(double v)
{
short w = (short)v;
return (double)((w&0xfff) * pow(10,-((short)(w>>12))));
}
void cdiRegisterFunctions(void)
{
cdiRegisterCalibrationFunction("bit12sgn",bit12sgn);
cdiRegisterCalibrationFunction("nib2exp",nib2exp);
}
#if defined(WIN32)
BOOL WINAPI DllMain(HINSTANCE hInstDll,DWORD fdwReason,LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH: // DLL being loaded
cdiRegisterFunctions();
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH: // DLL being unloaded
break;
}
return (TRUE);
}
#elif defined(UNIX)
__attribute__((constructor)) void cdiCalibrateMain(void)
{
cdiRegisterFunctions();
return;
}
#endif
Returns
0 upon success
CdiRequestInfoBlk::hasPatternFilter
int hasPatternFilter
Definition: cdi.h:297
CdiRequestInfoBlk::inType
short inType
Definition: cdi.h:293
cdiRegisterDevice
CDI_EXPORT int cdiRegisterDevice(char *devName, int devNumber, char *lngName, char *devDesc, int cdiLine, int cdiIndex, int *cdiAddress, int cdiAddressLength, int *devParameters)
Registers a CDI device.
Definition: cdiTineLib.c:429
CdiRequestInfoBlk::inside
int inside
Definition: cdi.h:335
cdiSetGenerateAlarms
CDI_EXPORT void cdiSetGenerateAlarms(int value)
Determines whether or not CDI will generate bus error alarms.
Definition: cdiTineLib.c:185
CdiRequestInfoBlk::pollFlag
short pollFlag
Definition: cdi.h:325
CdiRequestInfoBlk::NgroupsReqs
short NgroupsReqs
Definition: cdi.h:314
CdiRequestInfoBlk::lockRequestFlag
short lockRequestFlag
Definition: cdi.h:326
CdiRequestInfoBlk::patternFilter
BYTE patternFilter[CDI_PATTERN_FILTER_SIZE]
Definition: cdi.h:298
CdiDeviceInfoBlk::cdiAddr
int cdiAddr[CDI_ADDR_SIZE]
Definition: cdi.h:239
CdiRequestInfoBlk::callBackIndex
int callBackIndex
Definition: cdi.h:287
cdiSetAllowRemoteManagement
CDI_EXPORT void cdiSetAllowRemoteManagement(int value)
Turns on/off remote management.
Definition: cdiTineLib.c:112
CdiRequestInfoBlk::ptrReserved
void * ptrReserved
Definition: cdi.h:339
CdiRequestInfoBlk::freeOutDataMemoryOnCancel
int freeOutDataMemoryOnCancel
Definition: cdi.h:334
CdiRequestInfoBlk::maskValue
int maskValue
Definition: cdi.h:301
CdiRequestInfoBlk::asynCallFlag
short asynCallFlag
Definition: cdi.h:319
CdiRequestInfoBlk::bufLastData
short bufLastData[4]
Definition: cdi.h:322
CdiRequestInfoBlk::perror
int * perror
Definition: cdi.h:323
CdiDeviceInfoBlk::dataOuput2ndSize
int dataOuput2ndSize
Definition: cdi.h:252
CdiRequestInfoBlk::conditionFlag
short conditionFlag
Definition: cdi.h:309
CdiRequestInfoBlk
CDI Request Information Block structure.
Definition: cdi.h:284
CdiRequestInfoBlk::mask
BYTE mask[8]
Definition: cdi.h:300
CdiRequestInfoBlk::needsCalibration
int needsCalibration
Definition: cdi.h:310
CdiRequestInfoBlk::accessFlag
short accessFlag
Definition: cdi.h:308
CdiRequestInfoBlk::pBlockBuffer
void * pBlockBuffer
Definition: cdi.h:336
CdiRequestInfoBlk::registerTime
int registerTime
Definition: cdi.h:304
CdiRequestInfoBlk::pollTime
int pollTime
Definition: cdi.h:306
CdiRequestInfoBlk::sync_SemId
sem_t sync_SemId
Definition: cdi.h:329
CdiRequestInfoBlk::NgroupRets
short NgroupRets
Definition: cdi.h:315
cdiGetVersionAsString
CDI_EXPORT char * cdiGetVersionAsString(void)
Returns the CDI library version as string.
Definition: cdiTineLib.c:166
CdiDeviceInfoBlk::rvrsRules
CdiRule * rvrsRules
Definition: cdi.h:260
CdiRequestInfoBlk::outLength
unsigned int outLength
Definition: cdi.h:292
CdiDeviceInfoBlk::cdiIndex
int cdiIndex
Definition: cdi.h:236
CdiRequestInfoBlk::pDev
CdiDeviceInfoBlk * pDev
Definition: cdi.h:288
cdiSetHardwareAlarmThreshold
CDI_EXPORT void cdiSetHardwareAlarmThreshold(int value)
Sets the number of bus io errors which are tolerated before setting a hardware error alarm.
Definition: cdiTineLib.c:189
CdiRequestInfoBlk::pInData
void * pInData
Definition: cdi.h:289
CdiRequestInfoBlk::userCallDown
short userCallDown
Definition: cdi.h:327
CdiDeviceInfoBlk::devName
char devName[CDI_DEVICE_NAME_SIZE]
Definition: cdi.h:235
cdiExecLinkEx
CDI_EXPORT int cdiExecLinkEx(char *devName, char *devProperty, DTYPE *dout, DTYPE *din, short access, UINT16 timeout)
Directly executes a synchronous CDI link.
Definition: cdiTineLib.c:895
CdiRequestInfoBlk::groupSyncStart
short groupSyncStart
Definition: cdi.h:317
cdiRegisterBusScanner
CDI_EXPORT int cdiRegisterBusScanner(char *busName, int(*fcn)(char *, char *, int))
registers the bus scan function used for CDI diagnostics.
Definition: cdi.c:4089
SetDefaultQueryPollingInterval
CDI_EXPORT void SetDefaultQueryPollingInterval(int value)
Sets the default polling interval for local queries.
Definition: cdiTineLib.c:3536
CdiRequestInfoBlk::freeInDataMemoryOnCancel
int freeInDataMemoryOnCancel
Definition: cdi.h:333
CdiDeviceInfoBlk::dataFormat
int dataFormat
Definition: cdi.h:253
CdiRequestInfoBlk::pOutData
void * pOutData
Definition: cdi.h:291
cdiAttachLinkEx
CDI_EXPORT int cdiAttachLinkEx(char *devName, char *devProperty, DTYPE *dout, DTYPE *din, short access, int pollingRate, void(*callback)(int, int), int mode, UINT32 callbackID)
Initiates an asynchronous CDI link.
Definition: cdiTineLib.c:1055
CdiRequestInfoBlk::cpOutData
BYTE cpOutData[DEF_INPUT_BYTES]
Definition: cdi.h:321
CdiDeviceInfoBlk::description
char description[CDI_DEVICE_DESC_SIZE]
Definition: cdi.h:262
CdiRequestInfoBlk::hasDataMask
int hasDataMask
Definition: cdi.h:299
CdiRequestInfoBlk::NgrpErrors
short NgrpErrors
Definition: cdi.h:316
CdiRequestInfoBlk::callback
void(* callback)(int, int)
Definition: cdi.h:332
CdiRequestInfoBlk::bufIndex
int bufIndex
Definition: cdi.h:331
CdiRequestInfoBlk::deviceError
int deviceError
Definition: cdi.h:320
CdiDeviceInfoBlk::dataPatternStopIndex
int dataPatternStopIndex
Definition: cdi.h:247
cdiRegisterBusInitialization
CDI_EXPORT int cdiRegisterBusInitialization(char *busName, int(*fcn)(int, int, int, char *))
registers a bus initialization function to be used by CDI when initializing the bus.
Definition: cdi.c:3940
CdiRequestInfoBlk::requestTime
int requestTime
Definition: cdi.h:305
CdiDeviceInfoBlk::minimum
float minimum
Definition: cdi.h:264
CdiRequestInfoBlk::reqIndex
int reqIndex
Definition: cdi.h:312
CdiRequestInfoBlk::devReadyTime
int devReadyTime
Definition: cdi.h:337
CdiDeviceInfoBlk::iReserved
int iReserved
Definition: cdi.h:257
CdiDeviceInfoBlk::pcdiLine
void * pcdiLine
Definition: cdi.h:238
CdiDeviceInfoBlk::allowedAccess
int allowedAccess
Definition: cdi.h:255
CdiDeviceInfoBlk::dataMask
BYTE * dataMask
Definition: cdi.h:242
CdiRequestInfoBlk::exec_SemId
sem_t exec_SemId
Definition: cdi.h:330
CdiDeviceInfoBlk::dataMaskStopIndex
int dataMaskStopIndex
Definition: cdi.h:244
CdiRequestInfoBlk::cancelFlag
short cancelFlag
Definition: cdi.h:328
CdiDeviceInfoBlk::devParameters
int * devParameters
Definition: cdi.h:241
CdiDeviceInfoBlk::interval
int interval
Definition: cdi.h:256
CdiRequestInfoBlk::inFormatCode
short inFormatCode
Definition: cdi.h:295
CdiDeviceInfoBlk::units
char units[CDI_UNITS_SIZE]
Definition: cdi.h:266
CdiDeviceInfoBlk::dataPattern
BYTE * dataPattern
Definition: cdi.h:245
CdiRequestInfoBlk::dataReturnCondition
short dataReturnCondition
Definition: cdi.h:318
cdiRegisterBusHandler
CDI_EXPORT int cdiRegisterBusHandler(char *busName, void(*fcn)(CdiRequestInfoBlk *))
registers the bus handler dispatch function used for bus io.
Definition: cdi.c:4024
CdiDeviceInfoBlk::numberDeviceError
int numberDeviceError
Definition: cdi.h:240
cdiInitialize
CDI_EXPORT int cdiInitialize(void)
initializes CDI
Definition: cdiTineLib.c:174
CdiRequestInfoBlk::requestCounter
int requestCounter
Definition: cdi.h:307
CdiDeviceInfoBlk::extName
char * extName
Definition: cdi.h:258
CdiDeviceInfoBlk::dataOuputSize
int dataOuputSize
Definition: cdi.h:251
cdiRegisterBusCleanup
CDI_EXPORT int cdiRegisterBusCleanup(char *busName, int(*fcn)(int))
registers the bus cleanup function used when CDI closes.
Definition: cdi.c:4038
CdiDeviceInfoBlk::dataMaskStartIndex
int dataMaskStartIndex
Definition: cdi.h:243
CdiRequestInfoBlk::groupReq
void * groupReq
Definition: cdi.h:313
cdiGetHardwareAlarmThreshold
CDI_EXPORT int cdiGetHardwareAlarmThreshold(void)
Gets the number of bus io errors which are tolerated before setting a hardware error alarm.
Definition: cdiTineLib.c:195
CdiRequestInfoBlk::responseTime
int responseTime
Definition: cdi.h:324
CdiDeviceInfoBlk::reqFormat
int reqFormat
Definition: cdi.h:254
CdiDeviceInfoBlk::dataInput
BYTE * dataInput
Definition: cdi.h:249
CdiRequestInfoBlk::outFormatCode
short outFormatCode
Definition: cdi.h:296
CdiDeviceInfoBlk::devNumber
int devNumber
Definition: cdi.h:237
CdiRequestInfoBlk::requestNumber
int requestNumber
Definition: cdi.h:311
CdiDeviceInfoBlk::maximum
float maximum
Definition: cdi.h:263
CdiRequestInfoBlk::active
int active
Definition: cdi.h:286
CdiDeviceInfoBlk::dataPatternStartIndex
int dataPatternStartIndex
Definition: cdi.h:246
cdiSetExportName
CDI_EXPORT int cdiSetExportName(char *expName)
Sets the exported TINE device server name to the value given.
Definition: cdiTineLib.c:3209
CdiDeviceInfoBlk::clbrRules
CdiRule * clbrRules
Definition: cdi.h:259
CdiDeviceInfoBlk::dataPatternTrigger
int dataPatternTrigger
Definition: cdi.h:248
CdiRequestInfoBlk::inLength
unsigned int inLength
Definition: cdi.h:290
CdiDeviceInfoBlk::lngName
char lngName[CDI_DEVICE_LONGNAME_SIZE]
Definition: cdi.h:261
CdiRequestInfoBlk::devParameters
int devParameters[NUMBER_EXEC_PARAM]
Definition: cdi.h:302
CdiDeviceInfoBlk::dataInputSize
int dataInputSize
Definition: cdi.h:250
CdiDeviceInfoBlk::precision
char precision[CDI_UNITS_SIZE]
Definition: cdi.h:265
CdiRequestInfoBlk::timeout
int timeout
Definition: cdi.h:303
CdiRequestInfoBlk::outType
short outType
Definition: cdi.h:294
cdiVersion
CDI_EXPORT BYTE * cdiVersion(void)
Returns the CDI library version as byte array.
Definition: cdiTineLib.c:159
cdiRegisterCalibrationFunction
CDI_EXPORT int cdiRegisterCalibrationFunction(char *fcnName, double(*fcn)(double))
registers a calibration function for use by CDI
Definition: cdi.c:4103
CdiDeviceInfoBlk
CDI Device Information Block structure.
Definition: cdi.h:233
CdiRequestInfoBlk::nerrors
int nerrors
Definition: cdi.h:338

Impressum   |   Imprint   |   Datenschutzerklaerung   |   Data Privacy Policy   |   Declaration of Accessibility   |   Erklaerung zur Barrierefreiheit
Generated for TINE API by  doxygen 1.5.8