|
LevelMeter-Display
2.0
An ultrasonic Level Meter for Stormwater Cisterns
|


Go to the source code of this file.
Data Structures | |
| union | ADCData_t |
| Holds raw ADC Values for all Channels. More... | |
Functions | |
| static void | ADCcli (void) |
| static void | ADCResetMinMax (void) |
| Resets the Min/Max values of the Analog Values. More... | |
| static void | ADCsei (void) |
| void | InitADC (void) |
| Initializes the ADC. More... | |
Variables | |
| volatile ADCData_t | ADCData |
| ADC-Values for the last measurement. More... | |
| volatile ADCData_t | ADCDataAvg |
| Averaged ADC-Values. More... | |
| volatile ADCData_t | ADCDataMax |
| Maximum ADC-Values during last average Period. More... | |
| volatile ADCData_t | ADCDataMaxTmp |
| Maximum ADC-Values in the current Period. More... | |
| volatile ADCData_t | ADCDataMin |
| Minimum ADC-Values during last average Period. More... | |
| volatile ADCData_t | ADCDataMinTmp |
| Minimum ADC-Values in the current Period. More... | |
| static const uint8_t | ADCFLAG_NEWAVERAGES =2 |
| All Averages have been updated. More... | |
| static const uint8_t | ADCFLAG_NEWRESULTS =1 |
| All Channels have been updated. More... | |
| volatile uint8_t | adcFlags |
| volatile uint16_t | channelMismatchCnt |
|
inlinestatic |
|
inlinestatic |
Resets the Min/Max values of the Analog Values.
References ADCcli(), ADCDataMax, ADCDataMaxTmp, ADCDataMin, ADCDataMinTmp, ADCsei(), and ADCData_t::array.
Referenced by DoTflags().


|
inlinestatic |
| void InitADC | ( | void | ) |
Initializes the ADC.
The ADC is set to free running mode at 115.2kHz clock. This gives one result every 113us or one complete set every 564us.
References channel, and muxChannel.
Referenced by CmdCalibrate(), and Init().

| volatile ADCData_t ADCData |
ADC-Values for the last measurement.
Referenced by CmdStat(), FTestSWUnreg(), ISR(), and TempFromADC().
| volatile ADCData_t ADCDataAvg |
Averaged ADC-Values.
Referenced by CmdCalibrate(), EnterDouble(), FTestSupply(), FTestSWUnreg(), ISR(), ShowScreen(), and TempFromADC().
| volatile ADCData_t ADCDataMax |
Maximum ADC-Values during last average Period.
Referenced by ADCResetMinMax(), CmdStat(), and main().
| volatile ADCData_t ADCDataMaxTmp |
Maximum ADC-Values in the current Period.
Referenced by ADCResetMinMax(), DoTflags(), and ISR().
| volatile ADCData_t ADCDataMin |
Minimum ADC-Values during last average Period.
Referenced by ADCResetMinMax(), CmdStat(), and main().
| volatile ADCData_t ADCDataMinTmp |
Minimum ADC-Values in the current Period.
Referenced by ADCResetMinMax(), DoTflags(), and ISR().
|
static |
All Averages have been updated.
Referenced by EnterDouble(), and ISR().
|
static |
All Channels have been updated.
Referenced by FTestSWUnreg(), and ISR().
| volatile uint8_t adcFlags |
Referenced by EnterDouble(), FTestSWUnreg(), and ISR().
| volatile uint16_t channelMismatchCnt |
1.8.15