MesureADC
Pour avoir les températures d'un ADC LTC2439
MesureADC.h
1 //
2 // MesureADC.h
3 // libLTC
4 //
5 // Created by Tim THUREL on 04/03/2020.
6 // Copyright © 2020 Tim THUREL. All rights reserved.
7 //
8 
21 #ifndef MesureADC_h
22 #define MesureADC_h
23 
24 #include <stdint.h>
25 #include <Arduino.h>
26 #include "LTC2439.h"
27 
28 #define DEBUG
29 
30 
31 
35 class MesureADC
36 {
37 public:
38  MesureADC(int vref,int maxval,int res_mesure,int v_alim, int beta, int r_therm );
47  float * ReadTemp(int adcCS); // renvoie l'adresse d'un tableau de température
48  // !!! Attention !!! bien vider le tableau dans un autre tableau si vous utilisez plusieurs ADC.
49 
57 private:
58  float mesureI(float *table);
59  void temp();
60  void res();
61  void volt();
62  void mesureV(int CS);
63 
64  int vreference;
65  int maximumval;
66  int res_courant;
67  int tention_alim;
68  int beta_therm;
69  int res_therm;
70 
71  float i1;
72  float i2;
73 
74  float tableV1[8];
75  float tableV2[8];
76 
77  float tableVR1[8];
78  float tableVR2[8];
79 
80  float tableR1[8];
81  float tableR2[8];
82 
83  float T1[8];
84  float T2[8];
85 
86  float out[16];
87 };
88 
89 
90 
91 #endif /* MesureADC.h */
MesureADC::ReadTemp
float * ReadTemp(int adcCS)
Definition: MesureADC.cpp:22
MesureADC
Classe utilisé pour la librairie LTC2439 et avoir toute les températures.
Definition: MesureADC.h:36
MesureADC::MesureADC
MesureADC(int vref, int maxval, int res_mesure, int v_alim, int beta, int r_therm)
Definition: MesureADC.cpp:12