/***************************************************************************/ /***************************************************************************/ /***************************************************************************/ /******* *******/ /******* 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 : typedefs.h */ /* CPC : N/A */ /* Engineer : Sridhar Rokkam */ /* Criticality Level : Level C */ /* Contents : type definitions */ /* Description : This include file declares all type definitions */ /* used in the CPCI. */ /* */ /* */ /* */ /* 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 */ /* ------ --- -------- ------------------------------------------------ */ /* */ /* */ /***************************************************************************/ typedef unsigned char uchar; typedef unsigned int uint; typedef unsigned long ulong; typedef union { struct { uint word; }w; struct { uchar hbyte; uchar lbyte; }b; } WORD_BYTE_OVERLAY_T; typedef union { float f; unsigned long ul; unsigned char uc; } FTYPE_T; typedef struct { ulong filtered_v2_v5; uchar primed; uint capacitance; } PROBE_STRUCT_T ; typedef struct { ulong filtered_triangle; uchar primed; } AUTOCAL_STRUCT_T; typedef struct { uint MIN_RAW_VOLTAGE; uint MAX_RAW_VOLTAGE; uint MIN_CAP; uint MAX_CAP; } PROBE_LIMITS_STRUCT_T; typedef struct { int MIN; int MAX; } PROBE_RANGE_STRUCT_T; typedef struct { uint GAIN_CONSTANT; // for cap computation uint VOLUME_SCALE_FACTOR; // for cap to volume conversion uchar TANK; // to which tank the probe belongs uchar MJP_NUM; // to which MJP the probe belongs uchar COMPENSATOR; // compensator to be used for this probe } PROBE_MAP_STRUCT_T; typedef struct { int raw_density; // raw density computed from timer0 counts long filtered_density; // filtered density 0.8 old + 0.2 new uchar stability_count; // tracking (to 0.02 lbs/gal) count int inferred_density; // density inferred from compensator int filtered_offset; // filtered offset between inferred and measured density int computations_density; // density value to be used by computations uint old_count; // timer0 count from previous cycle } DENS_DATA_STRUCT_T; typedef struct { long filtered_vref_vgnd; uchar vref_vgnd_fail_count; long filtered_gain_offset; uchar gain_offset_fail_count; long filtered_slope_hi_low; uchar slope_hi_low_fail_count; long filtered_probe_offset; uchar probe_offset_fail_count; long filtered_diff_cap_offset; uchar diff_cap_offset_fail_count; long filtered_dc_offset; long filtered_diff_offset; uchar dc_offset_fail_count; uchar diff_offset_fail_count; uchar primed; int capacitance; int computed_capacitance; } COMPUTATIONS_STRUCT_T ; typedef struct { uint lbs; uint kgs; uint ssm; } ARINC_COMPUTATIONS_STRUCT_T ; typedef union { ulong arn_message; WORD_BYTE_OVERLAY_T msg_parts[2]; } ARINC_MESSAGE_STRUCT_T ; typedef union { uchar bytes[30]; struct { uchar sync1; uchar sync2; uchar bytes_in_msg; uchar message[27]; }packet; }INTP_MSG_STRUCT_T; typedef struct { uchar fault_id; uchar pass_fail_status; }INTP_FAULT_STRUCT_T; typedef struct { void * dest_ptr; // pr 019 uchar number_of_bytes; }INTP_DESTINATIONS_T; // add this for PDM typedef struct { uchar lru_id; uchar error_code; uint num_of_occurrences; char current_status; }PDM_OUT_DATA_T;