/***************************************************************************/ /***************************************************************************/ /******* *******/ /******* SETUP INFORMATION *******/ /******* *******/ /******* Important : Please read this prior to compilation *******/ /******* *******/ /***************************************************************************/ /***************************************************************************/ /* */ /* This file contains the compilation switches which will setup the MJPs */ /* (probe assignments) to slot numbers. Follow the step by step */ /* instructions to configure the hardware: */ /* */ /* */ /* 1. Set the literal NUMBER_OF_MJPS to either 1 or 2 depending on */ /* the number of MJPs in the system. */ /* */ /* 2. Set the literal NUMBER_OF_CHANNELS to the number of channels */ /* that will be read and processed (capacitance computed) in the */ /* system. */ /* */ /* 3. Enable one of the following literals to setup MJP 1 */ /* (Disable the other literals): */ /* */ /* [ 1 = Enabled; 0 = Disabled ] */ /* */ /* MJP_1_ALL_SLOTS_ENABLED - Enabling this literal will */ /* enable all probe slots (0-14). */ /* */ /* MJP_1_PROBE_SLOTS_ONLY - Enabling this literal will */ /* enable probe slots 0-4 & 14. */ /* */ /* MJP_1_PROBE_AND_BIT_SLOTS - Enabling this literal will */ /* enable probe slots 0-8 & 14. */ /* */ /* MJP_1_PROBE_AND_COMP_SLOTS - Enabling this literal will */ /* enable probe slots 0-4 & 9-14. */ /* */ /* 4. Enable one of the following literals to setup MJP 2 */ /* (Disable the other literals): */ /* */ /* [ 1 = Enabled; 0 = Disabled ] */ /* */ /* MJP_2_ALL_SLOTS_ENABLED - Enabling this literal will */ /* enable all probe slots (0-14). */ /* */ /* MJP_2_PROBE_SLOTS_ONLY - Enabling this literal will */ /* enable probe slots 0-4 & 14. */ /* */ /* MJP_2_PROBE_AND_BIT_SLOTS - Enabling this literal will */ /* enable probe slots 0-8 & 14. */ /* */ /* MJP_2_PROBE_AND_COMP_SLOTS - Enabling this literal will */ /* enable probe slots 0-4 & 9-14. */ /* */ /* 5. Set the literal MJP_1_GAGING_COMMAND depending on which group */ /* slots are enabled, as follows: */ /* */ /* */ /* | ENABLED SLOTS GROUP | SET MJP_1_GAGING_COMMAND TO: | */ /* |----------------------------|------------------------------| */ /* | MJP_1_ALL_SLOTS_ENABLED | 0x73 | */ /* |----------------------------|------------------------------| */ /* | MJP_1_PROBE_SLOTS_ONLY | 0x61 | */ /* |----------------------------|------------------------------| */ /* | MJP_1_PROBE_AND_BIT_SLOTS | 0x71 | */ /* |----------------------------|------------------------------| */ /* | MJP_1_PROBE_AND_COMP_SLOTS | 0x63 | */ /* |----------------------------|------------------------------| */ /* */ /* 6. Set the literal MJP_1_AUTOCAL_COMMAND depending on which group */ /* slots are enabled, as follows: */ /* */ /* */ /* | ENABLED SLOTS GROUP | SET MJP_1_AUTOCAL_COMMAND TO:| */ /* |----------------------------|------------------------------| */ /* | MJP_1_ALL_SLOTS_ENABLED | 0x7f | */ /* |----------------------------|------------------------------| */ /* | MJP_1_PROBE_SLOTS_ONLY | 0x6d | */ /* |----------------------------|------------------------------| */ /* | MJP_1_PROBE_AND_BIT_SLOTS | 0x7d | */ /* |----------------------------|------------------------------| */ /* | MJP_1_PROBE_AND_COMP_SLOTS | 0x6f | */ /* |----------------------------|------------------------------| */ /* */ /* 7. Set the literal MJP_2_GAGING_COMMAND depending on which group */ /* slots are enabled, as follows: */ /* */ /* */ /* | ENABLED SLOTS GROUP | SET MJP_2_GAGING_COMMAND TO: | */ /* |----------------------------|------------------------------| */ /* | MJP_2_ALL_SLOTS_ENABLED | 0x73 | */ /* |----------------------------|------------------------------| */ /* | MJP_2_PROBE_SLOTS_ONLY | 0x61 | */ /* |----------------------------|------------------------------| */ /* | MJP_2_PROBE_AND_BIT_SLOTS | 0x71 | */ /* |----------------------------|------------------------------| */ /* | MJP_2_PROBE_AND_COMP_SLOTS | 0x63 | */ /* |----------------------------|------------------------------| */ /* */ /* 8. Set the literal MJP_2_AUTOCAL_COMMAND depending on which group */ /* slots are enabled, as follows: */ /* */ /* */ /* | ENABLED SLOTS GROUP | SET MJP_2_AUTOCAL_COMMAND TO:| */ /* |----------------------------|------------------------------| */ /* | MJP_2_ALL_SLOTS_ENABLED | 0x7f | */ /* |----------------------------|------------------------------| */ /* | MJP_2_PROBE_SLOTS_ONLY | 0x6d | */ /* |----------------------------|------------------------------| */ /* | MJP_2_PROBE_AND_BIT_SLOTS | 0x7d | */ /* |----------------------------|------------------------------| */ /* | MJP_2_PROBE_AND_COMP_SLOTS | 0x6f | */ /* |----------------------------|------------------------------| */ /* */ /***************************************************************************/ /***************************************************************************/ #pragma EJECT /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /******* *******/ /******* U N I V E R S A L *******/ /******* *******/ /******* F U E L Q U A N T I T Y M E A S U R I N G S Y S T E M *******/ /******* *******/ /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /* */ /* Program Name : Universal Fuel Quantity Measuring System (UFQGS) */ /* Source File Name : acqswitc.h */ /* CPC : Tank Data Acquisition */ /* Engineer : Sridhar Rokkam/Rosanne Parnell */ /* Criticality Level : Level C */ /* Contents : Compilation switches declarations */ /* Description : This include file declares the compilation */ /* switches used in the Tank Data Acquisition CSC. */ /* */ /* */ /* */ /* 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. */ /***************************************************************************/ /***************************************************************************/ /***************************************************************************/ #pragma EJECT /***************************************************************************/ /* Revision History */ /***************************************************************************/ /* */ /* Date Rev Engineer Description */ /* ------ --- -------- ------------------------------------------------ */ /* */ /***************************************************************************/ /********************************************************************/ /* based on hardware configuration of mjp slots (probe assignments) */ /* to slot numbers, define the appropriate literal for MJP's */ /********************************************************************/ /***************************************************/ /* !!! USER MUST VERIFY THE FOLLOWING LITERALS !!! */ /***************************************************/ /***** SEE STEPS 1 & 2 ABOVE ****/ /***************************************************/ #define NUMBER_OF_MJPS 2 // 1 = 1 MJP; 2 = 2 MJPS #define NUMBER_OF_CHANNELS 21 // set to the number of channels // read and processed for cap computation /***************************************************/ /* !!! USER MUST VERIFY THE FOLLOWING LITERALS !!! */ /***************************************************/ /***** SEE STEPS 5 THROUGH 8 ABOVE ****/ /***************************************************/ /***********************/ /* TUI control defines */ /***********************/ #define MJP_1_GAGING_COMMAND 0x73 // see step 5 above #define MJP_1_AUTOCAL_COMMAND 0x7f // see step 6 above #define MJP_2_GAGING_COMMAND 0x71 // see step 7 above #define MJP_2_AUTOCAL_COMMAND 0x7d // see step 8 above /***************************************************/ /* !!! USER MUST VERIFY THE FOLLOWING LITERALS !!! */ /***************************************************/ /***** SEE STEP 3 ABOVE ****/ /***************************************************/ /* ONLY ONE OF THE FOLLOWING FOUR LITERALS CAN BE */ /* ENABLED */ /***************************************************/ #define MJP_1_ALL_SLOTS_ENABLED 1 /* 1 = enabled; 0 = disabled */ #define MJP_1_PROBE_SLOTS_ONLY 0 /* 1 = enabled; 0 = disabled */ #define MJP_1_PROBE_AND_BIT_SLOTS 0 /* 1 = enabled; 0 = disabled */ #define MJP_1_PROBE_AND_COMP_SLOTS 0 /* 1 = enabled; 0 = disabled */ /***************************************************/ /* !!! USER MUST VERIFY THE FOLLOWING LITERALS !!! */ /**************************************************/ /***** SEE STEP 4 ABOVE ****/ /***************************************************/ /* ONLY ONE OF THE FOLLOWING FOUR LITERALS CAN BE */ /* ENABLED */ /***************************************************/ #define MJP_2_ALL_SLOTS_ENABLED 0 /* 1 = enabled; 0 = disabled */ #define MJP_2_PROBE_SLOTS_ONLY 0 /* 1 = enabled; 0 = disabled */ #define MJP_2_PROBE_AND_BIT_SLOTS 1 /* 1 = enabled; 0 = disabled */ #define MJP_2_PROBE_AND_COMP_SLOTS 0 /* 1 = enabled; 0 = disabled */ /****************************************************************/ /* Used channels (aka slot) are represented by a number < 0x80. */ /* Examples of channels are 1. probes */ /* 2. compensators */ /* 3. level sensors (hi & lo) */ /* */ /* A channel that is read in but not processed is */ /* represented by 0x80. */ /* */ /* A low level sensor channel is represented by 0x90. */ /* A high level sensor channel is represented by 0x91. */ /* */ /* The autocal channel is represented by 0xe0. */ /* */ /* An unused channel is 0xff. */ /* */ /****************************************************************/ #define AD_TEST_LOW_SLOT 0x90 #define AD_TEST_HIGH_SLOT 0x91 #define SLOT_NOT_READ 0xFF #define SLOT_NOT_USED 0x80 #define AUTOCAL_SLOT 0xE0 code uchar LOADED_SLOTS[] = /* mjp 1 - fuel, all slots are read, the last slot is autocal */ {0, /* Probe 0 */ 1, /* Probe 1 */ 2, /* Probe 2 */ 3, /* Probe 3 */ 4, /* Probe 4 */ 5, /* Probe 5 */ 6, /* Probe 6 */ 7, /* Probe 7 */ SLOT_NOT_USED, 8, /* Probe 8 */ 9, /* Probe 9 */ 10, /* Probe 10 */ 11, /* Probe 11 */ 12, /* Probe 12 */ 13, /* Probe 13 */ AUTOCAL_SLOT, /* mjp 2 - oil, only slots 0-4 and 14 are enabled */ 14, /* Probe 14 */ 15, /* Probe 15 */ 16, /* Probe 16 */ 17, /* Probe 17 */ 18, /* Probe 18 */ 19, /* Probe 19 */ 20, /* Probe 20 */ AD_TEST_LOW_SLOT, AD_TEST_HIGH_SLOT, SLOT_NOT_READ, SLOT_NOT_READ, SLOT_NOT_READ, SLOT_NOT_READ, SLOT_NOT_READ, SLOT_NOT_USED, AUTOCAL_SLOT}; /***********************************************/ /* !!! USER-DEFINED SECTION IS ENDED !!! */ /***********************************************/ /* !!! DO NOT MODIFY THE CODE FROM HERE ON !!! */ /***********************************************/ /********************/ /* more TUI defines */ /********************/ #define SHUTOFF_SAMPLE_INT 0xdf // TU_CON #define SELECT_MJP_1 0xFE // mjp 1 - clear lsb #define SELECT_MJP_2 0x01 // mjp 2 - set lsb /*********/ /* MJP 1 */ /*********/ #if (MJP_1_ALL_SLOTS_ENABLED) #define MJP_1_FUEL_STREAM_OFFSET 0 #define MJP_1_AUTOCAL_STREAM_OFFSET 30 #endif #if (MJP_1_PROBE_SLOTS_ONLY) #define MJP_1_FUEL_STREAM_OFFSET 0 #define MJP_1_AUTOCAL_STREAM_OFFSET 12 #endif #if (MJP_1_PROBE_AND_BIT_SLOTS) #define MJP_1_FUEL_STREAM_OFFSET 0 #define MJP_1_AUTOCAL_STREAM_OFFSET 20 #endif #if (MJP_1_PROBE_AND_COMP_SLOTS) #define MJP_1_FUEL_STREAM_OFFSET 0 #define MJP_1_AUTOCAL_STREAM_OFFSET 22 #endif /*********/ /* MJP 2 */ /*********/ #if (MJP_2_ALL_SLOTS_ENABLED) #define MJP_2_FUEL_STREAM_OFFSET 0 #define MJP_2_AUTOCAL_STREAM_OFFSET 30 #endif #if (MJP_2_PROBE_SLOTS_ONLY) #define MJP_2_FUEL_STREAM_OFFSET 0 #define MJP_2_AUTOCAL_STREAM_OFFSET 12 #endif #if (MJP_2_PROBE_AND_BIT_SLOTS) #define MJP_2_FUEL_STREAM_OFFSET 0 #define MJP_2_AUTOCAL_STREAM_OFFSET 20 #endif #if (MJP_2_PROBE_AND_COMP_SLOTS) #define MJP_2_FUEL_STREAM_OFFSET 0 #define MJP_2_AUTOCAL_STREAM_OFFSET 22 #endif #pragma EJECT /********************************************************/ /* based on the programming of TUI control register */ /* TUI_ID_STREAM the correct id stream will be selected */ /********************************************************/ #if (MJP_1_ALL_SLOTS_ENABLED) code uchar MJP_1_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 5 */ 0xa5, 0xe5, /* channel 6 */ 0xa6, 0xe6, /* channel 7 */ 0xa7, 0xe7, /* channel 8 */ 0xa8, 0xe8, /* channel 9 */ 0xa9, 0xe9, /* channel 10*/ 0xaa, 0xea, /* channel 11*/ 0xab, 0xeb, /* channel 12*/ 0xac, 0xec, /* channel 13*/ 0xad, 0xed, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 5 */ 0x95, 0xa5, 0xb5, 0xd5, 0xe5, 0xf5, /* channel 6 */ 0x96, 0xa6, 0xb6, 0xd6, 0xe6, 0xf6, /* channel 7 */ 0x97, 0xa7, 0xb7, 0xd7, 0xe7, 0xf7, /* channel 8 */ 0x98, 0xa8, 0xb8, 0xd8, 0xe8, 0xf8, /* channel 9 */ 0x99, 0xa9, 0xb9, 0xd9, 0xe9, 0xf9, /* channel 10*/ 0x9a, 0xaa, 0xba, 0xda, 0xea, 0xfa, /* channel 11*/ 0x9b, 0xab, 0xbb, 0xdb, 0xeb, 0xfb, /* channel 12*/ 0x9c, 0xac, 0xbc, 0xdc, 0xec, 0xfc, /* channel 13*/ 0x9d, 0xad, 0xbd, 0xdd, 0xed, 0xfd, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT #if (MJP_1_PROBE_SLOTS_ONLY) code uchar MJP_1_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT #if (MJP_1_PROBE_AND_BIT_SLOTS) code uchar MJP_1_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 5 */ 0xa5, 0xe5, /* channel 6 */ 0xa6, 0xe6, /* channel 7 */ 0xa7, 0xe7, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 5 */ 0x95, 0xa5, 0xb5, 0xd5, 0xe5, 0xf5, /* channel 6 */ 0x96, 0xa6, 0xb6, 0xd6, 0xe6, 0xf6, /* channel 7 */ 0x97, 0xa7, 0xb7, 0xd7, 0xe7, 0xf7, /* channel 8 */ 0x98, 0xa8, 0xb8, 0xd8, 0xe8, 0xf8, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT #if (MJP_1_PROBE_AND_COMP_SLOTS) code uchar MJP_1_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 9 */ 0xa9, 0xe9, /* channel 10*/ 0xaa, 0xea, /* channel 11*/ 0xab, 0xeb, /* channel 12*/ 0xac, 0xec, /* channel 13*/ 0xad, 0xed, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 9 */ 0x99, 0xa9, 0xb9, 0xd9, 0xe9, 0xf9, /* channel 10*/ 0x9a, 0xaa, 0xba, 0xda, 0xea, 0xfa, /* channel 11*/ 0x9b, 0xab, 0xbb, 0xdb, 0xeb, 0xfb, /* channel 12*/ 0x9c, 0xac, 0xbc, 0xdc, 0xec, 0xfc, /* channel 13*/ 0x9d, 0xad, 0xbd, 0xdd, 0xed, 0xfd, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT //***************************************************** // based on the programming of TUI control register // TUI_ID_STREAM the correct id stream will be selected //***************************************************** #if (MJP_2_ALL_SLOTS_ENABLED) code uchar MJP_2_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 5 */ 0xa5, 0xe5, /* channel 6 */ 0xa6, 0xe6, /* channel 7 */ 0xa7, 0xe7, /* channel 8 */ 0xa8, 0xe8, /* channel 9 */ 0xa9, 0xe9, /* channel 10*/ 0xaa, 0xea, /* channel 11*/ 0xab, 0xeb, /* channel 12*/ 0xac, 0xec, /* channel 13*/ 0xad, 0xed, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 5 */ 0x95, 0xa5, 0xb5, 0xd5, 0xe5, 0xf5, /* channel 6 */ 0x96, 0xa6, 0xb6, 0xd6, 0xe6, 0xf6, /* channel 7 */ 0x97, 0xa7, 0xb7, 0xd7, 0xe7, 0xf7, /* channel 8 */ 0x98, 0xa8, 0xb8, 0xd8, 0xe8, 0xf8, /* channel 9 */ 0x99, 0xa9, 0xb9, 0xd9, 0xe9, 0xf9, /* channel 10*/ 0x9a, 0xaa, 0xba, 0xda, 0xea, 0xfa, /* channel 11*/ 0x9b, 0xab, 0xbb, 0xdb, 0xeb, 0xfb, /* channel 12*/ 0x9c, 0xac, 0xbc, 0xdc, 0xec, 0xfc, /* channel 13*/ 0x9d, 0xad, 0xbd, 0xdd, 0xed, 0xfd, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT #if (MJP_2_PROBE_SLOTS_ONLY) code uchar MJP_2_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT #if (MJP_2_PROBE_AND_BIT_SLOTS) code uchar MJP_2_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 5 */ 0xa5, 0xe5, /* channel 6 */ 0xa6, 0xe6, /* channel 7 */ 0xa7, 0xe7, /* channel 8 */ 0xa8, 0xe8, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 5 */ 0x95, 0xa5, 0xb5, 0xd5, 0xe5, 0xf5, /* channel 6 */ 0x96, 0xa6, 0xb6, 0xd6, 0xe6, 0xf6, /* channel 7 */ 0x97, 0xa7, 0xb7, 0xd7, 0xe7, 0xf7, /* channel 8 */ 0x98, 0xa8, 0xb8, 0xd8, 0xe8, 0xf8, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT #if (MJP_2_PROBE_AND_COMP_SLOTS) code uchar MJP_2_TUI_ID_STREAM[] = { /* v2 v5 */ /* ---- ---- */ /* channel 0 */ 0xa0, 0xe0, /* channel 1 */ 0xa1, 0xe1, /* channel 2 */ 0xa2, 0xe2, /* channel 3 */ 0xa3, 0xe3, /* channel 4 */ 0xa4, 0xe4, /* channel 9 */ 0xa9, 0xe9, /* channel 10*/ 0xaa, 0xea, /* channel 11*/ 0xab, 0xeb, /* channel 12*/ 0xac, 0xec, /* channel 13*/ 0xad, 0xed, /* channel 14*/ 0xae, 0xee, /*******************/ /* In autocal mode */ /*******************/ /* v1 v2 v3 v4 v5 v6 */ /* ---- ---- ---- ---- ---- ---- */ /* channel 0 */ 0x90, 0xa0, 0xb0, 0xd0, 0xe0, 0xf0, /* channel 1 */ 0x91, 0xa1, 0xb1, 0xd1, 0xe1, 0xf1, /* channel 2 */ 0x92, 0xa2, 0xb2, 0xd2, 0xe2, 0xf2, /* channel 3 */ 0x93, 0xa3, 0xb3, 0xd3, 0xe3, 0xf3, /* channel 4 */ 0x94, 0xa4, 0xb4, 0xd4, 0xe4, 0xf4, /* channel 9 */ 0x99, 0xa9, 0xb9, 0xd9, 0xe9, 0xf9, /* channel 10*/ 0x9a, 0xaa, 0xba, 0xda, 0xea, 0xfa, /* channel 11*/ 0x9b, 0xab, 0xbb, 0xdb, 0xeb, 0xfb, /* channel 12*/ 0x9c, 0xac, 0xbc, 0xdc, 0xec, 0xfc, /* channel 13*/ 0x9d, 0xad, 0xbd, 0xdd, 0xed, 0xfd, /* channel 14*/ 0x9e, 0xae, 0xbe, 0xde, 0xee, 0xfe, /* channel 15*/ 0x9f, 0xaf, 0xbf, 0xdf, 0xef, 0xff}; #endif #pragma EJECT code PROBE_LIMITS_STRUCT_T PROBE_LIMITS [NUMBER_OF_CHANNELS] = { //raw min raw max cap min cap max 0x0, 0xffff, 0x0, 0xffff, // probe 0 0x0, 0xffff, 0x0, 0xffff, // probe 1 0x0, 0xffff, 0x0, 0xffff, // probe 2 0x0, 0xffff, 0x0, 0xffff, // probe 3 0x0, 0xffff, 0x0, 0xffff, // probe 4 0x0, 0xffff, 0x0, 0xffff, // probe 5 0x0, 0xffff, 0x0, 0xffff, // probe 6 0x0, 0xffff, 0x0, 0xffff, // probe 7 0x0, 0xffff, 0x0, 0xffff, // probe 8 0x0, 0xffff, 0x0, 0xffff, // probe 9 0x0, 0xffff, 0x0, 0xffff, // probe 10 0x0, 0xffff, 0x0, 0xffff, // probe 11 0x0, 0xffff, 0x0, 0xffff, // probe 12 0x0, 0xffff, 0x0, 0xffff, // probe 13 0x0, 0xffff, 0x0, 0xffff, // probe 14 0x0, 0xffff, 0x0, 0xffff, // probe 15 0x0, 0xffff, 0x0, 0xffff, // probe 16 0x0, 0xffff, 0x0, 0xffff, // probe 17 0x0, 0xffff, 0x0, 0xffff, // probe 18 0x0, 0xffff, 0x0, 0xffff, // probe 19 0x0, 0xffff, 0x0, 0xffff // probe 20 }; typedef struct { uint MINIMUM; uint MAXIMUM; } AUTOCAL_LIMIT_STRUCT_T; code AUTOCAL_LIMIT_STRUCT_T AUTOCAL_LIMIT [NUMBER_OF_MJPS] = { 0x1, 0xfffe, 0x1, 0xfffe, }; code PROBE_MAP_STRUCT_T PROBE_MAP[NUMBER_OF_CHANNELS] = { //Gain const Vol scale Tank MJP num Compensator 8100, 1, 0, 0, 9, // probe 0 810*10 i.e resolution of 0.10pf 8100, 1, 1, 0, 10, // probe 1 8100, 1, 2, 0, 11, // probe 2 8100, 1, 3, 0, 12, // probe 3 8100, 1, 4, 0, 13, // probe 4 8100, 1, 5, 0, 9, // probe 5 8100, 1, 5, 0, 9, // probe 6 8100, 1, 5, 0, 9, // probe 7 1350, 0, 0, 0, 9, // comp 8 1350, 0, 0, 0, 9, // comp 9 1350, 0, 0, 0, 9, // comp 10 1350, 0, 0, 0, 9, // comp 11 1350, 0, 0, 0, 9, // comp 12 8100, 0, 0, 0, 9, // comp 13 1350, 0, 0, 1, 9, // probe 14 1350, 0, 0, 1, 9, // probe 15 1350, 0, 0, 1, 9, // probe 16 1350, 0, 0, 1, 9, // probe 17 1350, 0, 0, 1, 9, // probe 18 1350, 0, 0, 1, 9, // probe 19 1350, 0, 0, 1, 9 // probe 20 };