29 #ifndef INC_CINOSADCCHANNELS_H
30 #define INC_CINOSADCCHANNELS_H
36 #define DF_INOS_IMAGE_ANALOG_INPUTS_NUMBER DF_INOS_PROCESSIMAGE_ANALOG_INPUTS_NUMBER // def. number of ana inputs
38 #define DF_INOS_ADC_RANGE_BIP_10000mV 0 // adc range number +-10000 mV
39 #define DF_INOS_ADC_RANGE_BIP_1000mV 1 // adc range number +-1000 mV
40 #define DF_INOS_ADC_RANGE_BIP_100mV 2 // adc range number +-100 mV
41 #define DF_INOS_ADC_RANGE_BIP_10mV 3 // adc range number +-10 mV
42 #define DF_INOS_ADC_RANGE_UNI_10000mV 4 // adc range number 0..+10000 mV
43 #define DF_INOS_ADC_RANGE_UNI_1000mV 5 // adc range number 0..+1000 mV
44 #define DF_INOS_ADC_RANGE_UNI_100mV 6 // adc range number 0..+100 mV
45 #define DF_INOS_ADC_RANGE_UNI_10mV 7 // adc range number 0..+10 mV
47 #define DF_INOS_ADC_RANGE_BIP_5000mV 8 // adc range number +-5000 mV
48 #define DF_INOS_ADC_RANGE_BIP_500mV 9 // adc range number +-500 mV
49 #define DF_INOS_ADC_RANGE_BIP_50mV 10 // adc range number +-50 mV
50 #define DF_INOS_ADC_RANGE_BIP_5mV 11 // adc range number +-5 mV
51 #define DF_INOS_ADC_RANGE_UNI_5000mV 12 // adc range number 0..+5000 mV
52 #define DF_INOS_ADC_RANGE_UNI_500mV 13 // adc range number 0..+500 mV
53 #define DF_INOS_ADC_RANGE_UNI_50mV 14 // adc range number 0..+50 mV
54 #define DF_INOS_ADC_RANGE_UNI_5mV 15 // adc range number 0..+5 mV
56 #define DF_INOS_ADC_RANGE_UNI_20mA 32 // adc range number 0..+20mA
57 #define DF_INOS_ADC_RANGE_BIP_5000mA 40 // adc range number +-5000 mA
59 #define DF_INOS_ADC_RANGE_BIP_48000mV 128 // adc range number +-48000 mV
61 #define DF_INOS_ADC_RANGE_DISABLED 255 // adc disabled
83 ICACHE
virtual void Set(uint16 auNumber, real64 arValue)
override;
85 ICACHE
virtual real64 Get(uint16 auNumber)
override;
87 ICACHE real32 GetValue(uint16 auNumber);
89 #if defined(INOS_PROCESSIMAGE_OVERWRITE)
90 ICACHE
void SetValue(uint16 auNumber, real32 afValue,
bool abOverwrite =
true);
95 ICACHE
void SetValue(uint16 auNumber, real32 afValue);
98 real32 GetRawValue(uint16 auNumber, uint32 auStage=0);
101 uint32 auSimulate = DF_INOS_IMAGE_CHN_SIM_DEF);
104 uint32 auSimulate = DF_INOS_IMAGE_CHN_SIM_DEF);
106 void SetRange(uint16 auNumber, uint8 auRange);
108 uint8 GetRange(uint16 auNumber);
112 uint16 auType = defType_double,
113 real64 arLower = REAL64MIN,
114 real64 arUpper = REAL64MAX,
115 char* apUnit =
nullptr,
116 uint16 auCharacteristics = defCharShowFix + SHOW_DIGIT(4)
130 static void Create();
139 #define g_pAdcChannels ((CINOSAdcChannels *) g_pImage[DF_PROCESS_IMAGE_ANALOG_INPUTS])
145 #endif // INC_CINOSADCCHANNELS_H