(Page 4 of 18 in this chapter)
2.3 Processing Events
- AG Access employs an asynchronous programming model in order to capitalize on the concurrent processing between AG board processors and the host CPU. In response to commands executed by the application, AG Access generates events (represented by C data structures whose names are prefixed with ADIEVN_) which indicate the occurrence of certain conditions or state changes. Refer to Appendix B for a summary of the events generated by AG Access.
- A single function, adiFetchAndProcess, allows AG Access to run its internal state machine and optionally return an AG Access event to the application. Keep in mind that an event with an ID field of 0 does not indicate an error condition; it indicates that the event has been processed by the AG Access library and does not require further attention from the application.
(Page 4 of 18 in this chapter)
Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights
reserved.