Repository for import to local machine
Dependencies: DMBasicGUI DMSupport
GCComponentTypeEnums.h@8:26e49e6955bd, 2017-07-31 (annotated)
- Committer:
- jmitc91516
- Date:
- Mon Jul 31 15:37:57 2017 +0000
- Revision:
- 8:26e49e6955bd
- Parent:
- 1:a5258871b33d
Method ramp scrolling improved, and more bitmaps moved to QSPI memory
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmitc91516 | 1:a5258871b33d | 1 | #ifndef GCCOMPONENTTYPEENUMS_H |
jmitc91516 | 1:a5258871b33d | 2 | #define GCCOMPONENTTYPEENUMS_H |
jmitc91516 | 1:a5258871b33d | 3 | |
jmitc91516 | 1:a5258871b33d | 4 | /* |
jmitc91516 | 1:a5258871b33d | 5 | Enums enumerating the possible types of various GC components. |
jmitc91516 | 1:a5258871b33d | 6 | |
jmitc91516 | 1:a5258871b33d | 7 | Since the values in each enumeration must match those returned by the corresponding GC command |
jmitc91516 | 1:a5258871b33d | 8 | to get the component type, they are all specified explicitly. All of them also include |
jmitc91516 | 1:a5258871b33d | 9 | a MIN_xxx_TYPE and MAX_xxx_TYPE specifier. As long as we keep these up to date, the code |
jmitc91516 | 1:a5258871b33d | 10 | that uses these enumerations should not have to be changed if we simply add more component types. |
jmitc91516 | 1:a5258871b33d | 11 | |
jmitc91516 | 1:a5258871b33d | 12 | The values below are taken from page 5 of 18 of the 500 Series GC Communications Protocol, |
jmitc91516 | 1:a5258871b33d | 13 | Version 1.0, dated 11/02/16. |
jmitc91516 | 1:a5258871b33d | 14 | */ |
jmitc91516 | 1:a5258871b33d | 15 | |
jmitc91516 | 1:a5258871b33d | 16 | // The values in this enumeration must match those returned by the GC "GDTY" command |
jmitc91516 | 1:a5258871b33d | 17 | typedef enum enumDetectorType { FID_DETECTOR = 0, |
jmitc91516 | 1:a5258871b33d | 18 | TCD_DETECTOR = 1, |
jmitc91516 | 1:a5258871b33d | 19 | ECD_DETECTOR = 2, |
jmitc91516 | 1:a5258871b33d | 20 | TXL_DETECTOR = 3, |
jmitc91516 | 1:a5258871b33d | 21 | NO_DETECTOR = 4, |
jmitc91516 | 1:a5258871b33d | 22 | NPD_DETECTOR = 5, |
jmitc91516 | 1:a5258871b33d | 23 | PID_DETECTOR = 6, |
jmitc91516 | 1:a5258871b33d | 24 | FPD_DETECTOR = 7, |
jmitc91516 | 1:a5258871b33d | 25 | SPDID_DETECTOR = 8, |
jmitc91516 | 1:a5258871b33d | 26 | |
jmitc91516 | 1:a5258871b33d | 27 | MIN_DETECTOR_TYPE = FID_DETECTOR, // These must be kept up to date... |
jmitc91516 | 1:a5258871b33d | 28 | MAX_DETECTOR_TYPE = SPDID_DETECTOR // ...with the above |
jmitc91516 | 1:a5258871b33d | 29 | } DetectorType; |
jmitc91516 | 1:a5258871b33d | 30 | |
jmitc91516 | 1:a5258871b33d | 31 | // The values in this enumeration must match those returned by the GC "GCTY" command |
jmitc91516 | 1:a5258871b33d | 32 | typedef enum enumColumnType { NO_COLUMN = 0, |
jmitc91516 | 1:a5258871b33d | 33 | CONVENTIONAL_COLUMN = 1, |
jmitc91516 | 1:a5258871b33d | 34 | DIRECTLY_HEATED_COLUMN = 2, |
jmitc91516 | 1:a5258871b33d | 35 | |
jmitc91516 | 1:a5258871b33d | 36 | MIN_COLUMN_TYPE = NO_COLUMN, // These must be kept up to date... |
jmitc91516 | 1:a5258871b33d | 37 | MAX_COLUMN_TYPE = DIRECTLY_HEATED_COLUMN // ...with the above |
jmitc91516 | 1:a5258871b33d | 38 | } ColumnType; |
jmitc91516 | 1:a5258871b33d | 39 | |
jmitc91516 | 1:a5258871b33d | 40 | // The values in this enumeration must match those returned by the GC "GITY" command |
jmitc91516 | 1:a5258871b33d | 41 | typedef enum enumInjectorType { NO_INJECTOR = 0, |
jmitc91516 | 1:a5258871b33d | 42 | TEST_PTV_INJECTOR = 1, |
jmitc91516 | 1:a5258871b33d | 43 | PTV_INJECTOR = 2, |
jmitc91516 | 1:a5258871b33d | 44 | |
jmitc91516 | 1:a5258871b33d | 45 | MIN_INJECTOR_TYPE = NO_INJECTOR, // These must be kept up to date... |
jmitc91516 | 1:a5258871b33d | 46 | MAX_INJECTOR_TYPE = PTV_INJECTOR // ...with the above |
jmitc91516 | 1:a5258871b33d | 47 | } InjectorType; |
jmitc91516 | 1:a5258871b33d | 48 | |
jmitc91516 | 1:a5258871b33d | 49 | // The values in this enumeration must match those returned by the GC "GATY" command |
jmitc91516 | 1:a5258871b33d | 50 | typedef enum enumAuxiliaryType { NO_AUXILIARY = 0, |
jmitc91516 | 1:a5258871b33d | 51 | FITTED_AUXILIARY = 1, |
jmitc91516 | 1:a5258871b33d | 52 | |
jmitc91516 | 1:a5258871b33d | 53 | MIN_AUXILIARY_TYPE = NO_AUXILIARY, // These must be kept up to date... |
jmitc91516 | 1:a5258871b33d | 54 | MAX_AUXILIARY_TYPE = FITTED_AUXILIARY // ...with the above |
jmitc91516 | 1:a5258871b33d | 55 | } AuxiliaryType; |
jmitc91516 | 1:a5258871b33d | 56 | |
jmitc91516 | 1:a5258871b33d | 57 | // The values in this enumeration must match those returned by the GC "GGTY" command |
jmitc91516 | 1:a5258871b33d | 58 | typedef enum enumGasboxType { MANUAL_GASBOX = 0, |
jmitc91516 | 1:a5258871b33d | 59 | EPPC_GASBOX = 1, |
jmitc91516 | 1:a5258871b33d | 60 | |
jmitc91516 | 1:a5258871b33d | 61 | MIN_GASBOX_TYPE = MANUAL_GASBOX, // These must be kept up to date... |
jmitc91516 | 1:a5258871b33d | 62 | MAX_GASBOX_TYPE = EPPC_GASBOX // ...with the above |
jmitc91516 | 1:a5258871b33d | 63 | } GasboxType; |
jmitc91516 | 1:a5258871b33d | 64 | |
jmitc91516 | 1:a5258871b33d | 65 | // The values in this enumeration must match those returned by the GC "GCGS" command |
jmitc91516 | 1:a5258871b33d | 66 | typedef enum enumCarrierGasType { CARRIER_GAS_NITROGEN = 0, |
jmitc91516 | 1:a5258871b33d | 67 | CARRIER_GAS_HELIUM = 1, |
jmitc91516 | 1:a5258871b33d | 68 | CARRIER_GAS_HYDROGEN = 2, |
jmitc91516 | 1:a5258871b33d | 69 | |
jmitc91516 | 1:a5258871b33d | 70 | MIN_CARRIER_GAS_TYPE = CARRIER_GAS_NITROGEN, // These must be kept up to date... |
jmitc91516 | 1:a5258871b33d | 71 | MAX_CARRIER_GAS_TYPE = CARRIER_GAS_HYDROGEN // ...with the above |
jmitc91516 | 1:a5258871b33d | 72 | } CarrierGasType; |
jmitc91516 | 1:a5258871b33d | 73 | |
jmitc91516 | 1:a5258871b33d | 74 | #endif // GCCOMPONENTTYPEENUMS_H |