Chapter 4: PowerDAQ Software (SDK)
91
#
_PdUctReset(
…
)clears latch and configuration
register
Set up UCT configuration
•
Set up edge-sensivity configuration
#
_PdUctSetCfg(…)use this function to set up UCT
configuration. Refer to
uct_progr.c
for bit
definition
#
_PdAdapterEnableInterrupt(…) with dwEnable = 1
#
_PdUctSetPrivateEvent(…)set up event object
#
_PdSetUserEvent(…) use CounterTimer as a
subsystem name. There are three events defined -
one per each counter-timer – eUct0Event,
eUct1Event and eUct2Event
Event handler
•
Check event
#
_PdGetUserEvent(…) could return eUct0Event,
eUct1Event or eUct2Event flags in the status word.
•
Read status of UCT output
#
_PdUctGetStatus(…) function returns current state
of the UCT output
•
Re-enable events
#
_PdSetUserEvent(…)
De-Initialization
•
Disable interrupts if there is no other subsystem running
#
_PdAdapterEnableInterrupt(…) with dwEnable = 0
•
Release event object and clear user-level events
#
_PdUctClearPrivateEvent(…) release the event object
#
_PdClearUserEvent(…) use CounterTimer as a
subsystem name
•
Reset UCT to clear configuration and stop ongoing
operations
#
_PdUctReset(
…
)
Summary of Contents for PD2-MF
Page 5: ...Table of Contents iii Index 137 ...
Page 11: ...1 1 Introduction ...
Page 18: ......
Page 19: ...9 2 Installation and Configuration ...
Page 34: ......
Page 35: ...25 3 Architecture ...
Page 63: ...53 4 PowerDAQ Software Development Kit PD SDK ...
Page 106: ......
Page 107: ...97 5 Calibration ...
Page 109: ...99 A Appendix A Specifications ...
Page 110: ...Appendix A Specifications 100 ...
Page 112: ......
Page 113: ...103 B Appendix B Accessories ...
Page 118: ......
Page 119: ...109 C Appendix C Application Notes ...
Page 125: ...115 D Appendix D Warranty ...
Page 128: ......
Page 129: ...119 E Appendix E Glossary ...
Page 152: ......