Control flow of a diagnostic application

The DA performs these tasks:

  1. Displays first stand-by menu.
  2. Obtains its input from the TMInput object class.
  3. References the state1 and state2 variables in the TMInput object class to determine if the child devices which were tested during the current session are defective. If so, then the DA should name the parent as being bad.
  4. Determines the level of tests to run.
  5. Calls TU_OPEN.
  6. Calls Application Test Units (TU).
  7. Calls TU_CLOSE.
  8. Reconfigures the device if DA caused it to be configured.
  9. Performs error-log analysis if the dmode variable in the TMInput object class is equal to PD or ELA.
  10. Returns status to the Diagnostic Controller through the DA_EXIT() macro call.