mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
add calculations of T & P by ADC; Release mode still have problems
This commit is contained in:
@@ -47,7 +47,14 @@
|
||||
// starting index of ADC2
|
||||
#define ADC2START (9*NUMBER_OF_ADC1_CHANNELS)
|
||||
|
||||
// ADC level for not connected TRD
|
||||
#define ADC_NOCONN (4000)
|
||||
|
||||
void adc_setup();
|
||||
float getMCUtemp();
|
||||
uint16_t getADCval(int nch);
|
||||
float getADCvoltage(int nch);
|
||||
float getADCvoltage(uint16_t ADCval);
|
||||
|
||||
float calcR(uint16_t ADCval);
|
||||
float calcT(uint16_t ADCval);
|
||||
float calcPres5050();
|
||||
|
||||
Reference in New Issue
Block a user