Technical description Chapter 9
APCI-/CPCI-1500
87
4) i_APCI1500_InitWatchdogCounter3 (...)
Syntax:
<Return value> = i_APCI1500_InitWatchdogCounter3
(BYTE
b_BoardHandle,
BYTE
b_WatchdogOrCounterSelect,
LONG
l_ReloadValue,
BYTE
b_ContinuousOrSingleCycleSelect,
BYTE
b_HardwareOrSoftwareGateSelect,
BYTE
b_InterruptHandling)
Parameters:
BYTE
b_BoardHandle
Handle of the
xPCI-1500
BYTE b_WatchdogOrCounterSelect
Selects the mode of the third
counter/watchdog
- APCI1500_WATCHDOG :
The third counter/watchdog is used as a
watchdog.
- APCI1500_COUNTER :
The third counter/watchdog is used as a
counter.
LONG
l_ReloadValue
This parameter has 2 meanings.
If the counter/watchdog is used as a
counter, it loads the limit value of the
counter.
If the counter/watchdog is used as a
watchdog, it loads the watchdog time.
BYTE b_ContinuousOrSingleCycleSelect
-
APCI1500_CONTINUOUS:
Each time the counting or timer value
is set to "0",
l_ReloadValue
is loaded.
-
APCI1500_SINGLE:
If the counter or timer value is set to
"0", the counter or timer is stopped.
BYTE b_HardwareOrSoftwareGateSelect
-
APCI1500_HARDWARE_GATE
Input 16 is used for the gate.
-
APCI1500_SOFTWARE_GATE:
Input 16 has no influence on the gate.
BYTE b_InterruptHandling
Interrupts can be generated, when the
counter or watchdog has run down.
With this parameter the user
decides to use interrupts or not.
-
APCI1500_ENABLE:
Interrupts are enabled.
-
APCI1500_DISABLE:
Interrupts are disabled.