/********************************************************************/ /* Here is where you assign an id for each test you wish to report */ /* a failure status for (e.g. RAM_TEST, TANK 1 PROBE OPEN, etc). */ /* */ /* Assign each id consecutively starting with 0. */ /* */ /* These ids are passed via parameter to fai_pass_fail_logger along */ /* with a flag that indicates pass or fail of the test */ /* */ /********************************************************************/ /********************************************************************/ /* WHENEVER A TEST IS ADDED BELOW - SEE FAISWITC.H FOR REQUIRED */ /* CHANGES */ /********************************************************************/ /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /***** *****/ /***** D H C - 8 S e r i e s 4 0 0 *****/ /***** *****/ /***** F U E L Q U A N T I T Y M E A S U R E M E N T S Y S T E M *****/ /***** *****/ /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /* */ /* Program Name : DHC-8 Fuel Quantity Measurement System */ /* Source File Name : fai.h */ /* CPC : Fault Analysis and Isolation */ /* Engineer : Linda Jahnke / Rosanne Parnell */ /* Criticality Level : Level C */ /* Contents : header file */ /* Description : This header file contains all the IDs for the BIT */ /* tests that are used to log and detect faults. */ /* */ /* */ /* */ /* Contents of this document are propriety information, property of: */ /* PARKER HANNIFIN CORPORATION */ /* GULL ELECTRONIC SYSTEMS DIVISION */ /* SMITHTOWN, NEW YORK 11787 */ /* Any attempt to copy or use the contents of this document in any manner */ /* whatsoever without express written consent of the owner is prohibited. */ /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /* Revision History */ /***************************************************************************/ /* */ /* Date Rev Engineer Description */ /* ------ --- -------- ------------------------------------------------ */ /* 052497 - S Saraph Add literal for REFUEL/DEFUEL SELECTOR SWITCH */ /* test. */ /* */ /* */ /***************************************************************************/ #define RAM_TEST_ID 0 /* RAM write/read test */ #define ROM_TEST_ID 1 /* ROM checksum test */ #define CPU_TEST_ID 2 /* CPU test */ #define WDT_TEST_ID 3 /* watchdog timer test */ /*********************************/ /* ARINC COMMUNICATIONS TEST IDS */ /*********************************/ #define ARN_WRAP_TEST_ID 4 /* ARINC internal wrap test */ #define ARN_TX_READY_TEST_ID 5 /* ARINC transmitter ready test */ /***********************************/ /* PDM/FSK COMMUNICATIONS TEST IDS */ /***********************************/ #define REPEATER_PARITY_FRAME_TEST_ID 6 /* PDM/FSK parity/framing test on GSCP (refuel station) */ #define REPEATER_COMM_STATUS_TEST_ID 7 /* PDM/FSK communications status test on GSCP (refuel station) */ #define REPEATER_WRAP_TEST_ID 8 /* PDM/FSK external wrap test on GSCP (refuel station) */ #define REPEATER_INIT_FLAG_TEST_ID 9 /* PDM/FSK init flag test on GSCP (refuel station) */ #define REPEATER_PDM_FSK_LOSS_ID 10 /* PDM/FSK communications loss on GSCP (refuel station) */ /******************************************/ /* INTERPROCESSOR COMMUNICATIONS TEST IDS */ /******************************************/ #define IPC_CRC_TEST_ID 11 /* IPC CRC test */ #define IPC_COMM_TEST_ID 12 /* IPC communications loss test */ /******************/ /* SAMPLING ERROR */ /******************/ #define SAMPLING_TEST_ID 13 /* Acquisition sampling error */ /*********************/ /* DISCRETE TEST IDS */ /*********************/ #define LOW_LEV_SWITCH_STUCK_TEST_ID 14 /* cockpit test switch stuck test */ #define DSC_PARITY_TEST_ID 15 /* discretes parity test */ #define CPU_PARITY_TEST_ID 16 /* cpu identification parity test */ #define LOW_LEVEL_LIGHT_WRAP_TEST_ID 17 /* low level light wrap test */ #define REF_VALVE_WRAP_TEST_ID 18 /* refueling valve wrap test */ #define LOW_LEVEL_RELAY_WRAP_TEST_ID 19 /* low level warning relay wrap */ #define LOW_LEVEL_LIGHT_CONT_TEST_ID 20 /* low level light continuity test */ #define REF_VALVE_CONT_TEST_ID 21 /* refueling valve continuity test */ #define LOW_LEVEL_RELAY_CONT_TEST_ID 22 /* low warning relay continuity */ /******************************/ /* REPEATER SWITCHES TEST IDS */ /******************************/ #define RPTR_RESET_TEST_SWITCH_INVALID_ID 23 /* reset/test switch invalid */ #define RPTR_INC_DEC_SWITCH_TEST_ID 24 /* incr/decrt switch invalid test */ #define RPTR_INC_DEC_SWITCH_STUCK_ID 25 /* incr/decrt switch stuck test */ /*****************************/ /* INDICATOR PARITY TEST IDS */ /*****************************/ #define REPEATER_PARITY_TEST_ID 26 /* parity reported by repeater */ /**************************/ /* MISCELLANEOUS TEST IDS */ /**************************/ #define TASK_OVERRUN_TEST_ID 27 /* software task overrun test */ #define FLOATING_PT_MATH_TEST_ID 28 /* floating point math error test */ #define INTERRUPT_TEST_ID 29 /* interrupt test */ #define NOVRAM_TEST_ID 30 /* NOVRAM test */ /****************/ /* A/D TEST IDS */ /****************/ #define CHANNEL1_AD_TEST_ID 31 /* Channel 1 Voltage A/D test */ #define CHANNEL2_AD_TEST_ID 32 /* Channel 2 Voltage A/D test */ /********************/ /* AUTOCAL TEST IDS */ /********************/ #define CHANNEL1_GAIN_TEST_ID 33 /* Channel 1 Autocal gain test */ #define CHANNEL2_GAIN_TEST_ID 34 /* Channel 2 Autocal gain test */ #define CHANNEL1_OFFSET_TEST_ID 35 /* Channel 1 Autocal offset test */ #define CHANNEL2_OFFSET_TEST_ID 36 /* Channel 2 Autocal offset test */ #define CHANNEL1_SLOPE_HI_TEST_ID 37 /* Channel 1 Autocal slope high test */ #define CHANNEL2_SLOPE_HI_TEST_ID 38 /* Channel 2 Autocal slope high test */ #define CHANNEL1_SLOPE_LOW_TEST_ID 39 /* Channel 1 Autocal slope low test */ #define CHANNEL2_SLOPE_LOW_TEST_ID 40 /* Channel 2 Autocal slope low test */ /*****************/ /* HI-Z TEST IDS */ /*****************/ #define CHANNEL1_HI_Z_SHORT_TEST_ID 41 /* Channel 1 Hi-Z shorted test */ #define CHANNEL2_HI_Z_SHORT_TEST_ID 42 /* Channel 2 Hi-Z shorted test */ #define CHANNEL1_HI_Z_OPEN_TEST_ID 43 /* Channel 1 Hi-Z open test */ #define CHANNEL2_HI_Z_OPEN_TEST_ID 44 /* Channel 2 Hi-Z open test */ /*******************/ /* GAGING TEST IDS */ /*******************/ /******************/ /* RANGE TEST IDS */ /******************/ #define CURRENT_LIMIT_TEST_OFFSET 45 /* offset to start of test ids */ #define CHANNEL1_CL_TEST_ID 45 /* */ #define CHANNEL2_CL_TEST_ID 46 /* */ #define PROBE_8_OPEN_TEST_ID 47 /* */ #define PROBE_9_OPEN_TEST_ID 48 /* */ #define PROBE_5_RANGE_TEST_ID 49 /* */ #define PROBE_6_RANGE_TEST_ID 50 /* */ #define LO_LEVEL_HIZ_SHORT_TEST_ID 51 /* */ /********************/ /* SHORTED TEST IDS */ /********************/ #define SHORTED_TEST_OFFSET 52 /* offset to start of test ids */ #define PROBE_1_SHORTED_TEST_ID 52 /*\ */ #define PROBE_2_SHORTED_TEST_ID 53 /* \ */ #define PROBE_3_SHORTED_TEST_ID 54 /* \ */ #define PROBE_4_SHORTED_TEST_ID 55 /* > shorted probe tests */ #define PROBE_5_SHORTED_TEST_ID 56 /* / */ #define PROBE_6_7_SHORTED_TEST_ID 57 /* / */ #define PROBE_8_9_SHORTED_TEST_ID 58 /* / */ #define LO_LEVEL_SHORTED_TEST_ID 58 /*/ */ /*****************/ /* OPEN TEST IDS */ /*****************/ #define OPEN_TEST_OFFSET 59 /* offset to start of test ids */ #define PROBE_1_OPEN_TEST_ID 59 /*\ */ #define PROBE_2_OPEN_TEST_ID 60 /* \ */ #define PROBE_3_OPEN_TEST_ID 61 /* \ */ #define PROBE_4_OPEN_TEST_ID 62 /* > open probe tests */ #define PROBE_5_OPEN_TEST_ID 63 /* / */ #define PROBE_6_OPEN_TEST_ID 64 /* / */ #define PROBE_7_OPEN_TEST_ID 65 /* / */ #define LO_LEVEL_OPEN_TEST_ID 65 /*/ */ /*************************/ /* LO-Z SHORTED TEST IDS */ /*************************/ #define LO_Z_SHORTED_TEST_OFFSET 66 /* offset to start of test ids */ #define PROBE_1_LOZ_SHORTED_TEST_ID 66 /*\ */ #define PROBE_2_LOZ_SHORTED_TEST_ID 67 /* \ */ #define PROBE_3_LOZ_SHORTED_TEST_ID 68 /* \ */ #define PROBE_4_LOZ_SHORTED_TEST_ID 69 /* > Lo-z shorted tests */ #define PROBE_5_LOZ_SHORTED_TEST_ID 70 /* / */ #define PROBE_6_7_LOZ_SHORTED_TEST_ID 71 /* / */ #define PROBE_8_9_LOZ_SHORTED_TEST_ID 72 /* / */ #define LO_LEVEL_LOZ_SHORTED_TEST_ID 72 /*/ */ #define RPTR_RESET_TEST_SWITCH_STUCK_ID 73 /* Pr 0013 added literal */ #define RPTR_REFUEL_DEFUEL_SWITCH_INVALID_ID 74 /* refuel/defuel switch invalid */ /*********************************************************************/ /* For fai_status_reporter - the above IDs may be used to access the */ /* status for an individual fault additional. IDs must be added when */ /* the status of fault groups (e.g. probe failures) are to be */ /* accessed. */ /* */ /* Suggestion: leave a gap between test ids and group ids - */ /* for expansion - assign a value of the last test id + 5 to the */ /* first group_id */ /*********************************************************************/ /*********************************************************************/ /* WHENEVER A GROUP IS ADDED BELOW - SEE FAISWITC.H FOR REQURIED */ /* CHANGES */ /*********************************************************************/ #define PROBE_1_FAULT_GROUP 75 /* all tests for probe 1 */ #define PROBE_2_FAULT_GROUP 76 /* all tests for probe 2 */ #define PROBE_3_FAULT_GROUP 77 /* all tests for probe 3 & open test for probe 8 */ #define PROBE_4_FAULT_GROUP 78 /* all tests for probe 4 & open test for probe 9 */ #define PROBE_5_FAULT_GROUP 79 /* all tests for probe 5 */ #define PROBE_6_7_FAULT_GROUP 80 /* all tests for probe 6 & 7 */ #define PROBE_8_9_FAULT_GROUP 81 /* all tests for probe 8 & 9 and open test for 7 */ #define PROCESSOR_FAULT_GROUP 82 /* CPU, RAM, ROM, WDT, CPU ID, NOVRAM */ #define ARINC_FAULT_GROUP 83 /* all ARINC tests */ #define REPEATER_PDM_FAULT_GROUP 84 /* all PDM/FSK tests for the Repeater */ #define IPC_FAULT_GROUP 85 /* all IPC tests */ #define INPUT_DISCRETES_FAULT_GROUP 86 /* all input discrete tests */ #define OUTPUT_DISCRETES_FAULT_GROUP 87 /* all output discrete tests */ #define REPEATER_PARITY_FAULT_GROUP 88 /* repeater parity test */ #define A_D_TESTS_FAULT_GROUP 89 /* channels 1 & 2 A/D tests */ #define AUTOCAL_FAULT_GROUP 90 /* all autocal tests (gain, offset, slope hi/lo */ #define HI_Z_FAULT_GROUP 91 /* Hi-Z shorted and open tests per channel */ #define NOVRAM_SWITCH_GROUP 92 /* NOVRAM and repeater switches tests */ #define SOFTWARE_ERRORS_GROUP 93 /* NOVRAM and repeater switches tests */ /**************************/ /* MISCELLANEOUS LITERALS */ /**************************/ /* !!! DO NOT CHANGE !!! */ /**************************/ #define FAI_KILL_ALL_LISTS 0x0ff /* send this via parameter to */ /* fai_kill_fault_list when all faults */ /* from all groups have been cleared */ /* from NOVRAM */ #define FAI_NO_FAULTS 0xffff /* fault code when there are no current */ /* faults for output (interprocessor) */