reading internal temperature sensor of arch max and storing data
TempBase.h
- Committer:
- tifo
- Date:
- 2017-09-14
- Revision:
- 3:e98dbcd4f4e3
- Parent:
- 0:62f36500cd41
File content as of revision 3:e98dbcd4f4e3:
#ifndef TEMPBASE_H
#define TEMPBASE_H
class TempBase
{
public:
TempBase();
TempBase(float);
void Init();
int GetRawTemp();
float ConvertTemp(int);
private:
float ambientTemp;
float v25;
float avgSlope;
float vRef;
ADC_HandleTypeDef hadc1; // Declare main adc confic object
ADC_ChannelConfTypeDef sConfig; //Declare the ST HAL ADC object
};
#endif