versadac  1
versadac - Scalable Recorder Firmware
eio_sys.h
1 /*******************************************************************************
2 FILE : eio_sys.h
3 VERSION : $Id: eio_sys.h 5305 2006-10-27 12:09:59Z martinto $
4 AUTHOR : David Cozens
5 SYSTEM : Diab C for PowerPC under vxWorks
6 DESCRIPTION : Generic EIO System API types and prototypes.
7 *******************************************************************************/
8 #ifndef __EIO_SYS_H
9 #define __EIO_SYS_H
10 #include "eio_syst.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 /* system runtime API */
16 void eioSetUpdateCycleCompleteHookAdd( EioSystem *ioSystem, EioUint8 cycleNumber, void(*hook)(EioUint8 cycleNumber, EioUint32 count));
17 void eioSetApplicationCycleCompleteCheckHookAdd( EioSystem *ioSystem, EioUint8 cycleNumber, EioBoolean(*hook)(EioUint8 cycleNumber));
18 EioBoolean eioReadyToRun(EioSystem *ioSystem);
19 EioBoolean eioGetSystemFailed(EioSystem *ioSystem);
20 void eioSetCycleRateDivisor(EioSystem *ioSystem, EioUint8 cycleNumber, EioUint32 divisor);
21 
22 
23 /* redundancy runtime api */
24 void eioSetOperatingMode( EioSystem *ioSystem, EioOperatingMode mode);
25 EioOperatingMode eioGetOperatingMode( EioSystem *ioSystem);
26 EioBoolean eioIsOperatingModeSupported( EioSystem *ioSystem, EioOperatingMode mode);
27 void eioSetSecondaryMaximumNumberOfModules( EioSystem *ioSystem, EioUint8 numberOfModules);
28 
29 
30 /* system capability discovery API */
31 EioUint8 eioGetMaximumNumberOfModules( EioSystem *ioSystem);
32 EioUint8 eioGetMaximumNumberOfPointsPerModule( EioSystem *ioSystem, EioPointType pointType);
33 EioUint8 eioGetModuleNumberForPointIndex( EioSystem *ioSystem, EioPointType pointType, EioUint16 pointIndex);
34 EioUint8 eioGetPointNumberForPointIndex( EioSystem *ioSystem, EioPointType pointType, EioUint16 pointIndex);
35 EioUint8 eioGetNumberOfIOCycleRates( EioSystem *ioSystem);
36 EioUint32 eioGetCycleRateuS( EioSystem *ioSystem, EioUint8 cycleNumber);
37 
38 #ifdef __cplusplus
39 } /* extern "C" */
40 #endif
41 #endif /* __EIO_SYS_H */
Definition: eio_syst.h:52