808

Dependents:   Chromatograph_Mobile

Revision:
1:54015254fc18
Parent:
0:1b92bdad27f6
Child:
2:ccfbc827eb2c
diff -r 1b92bdad27f6 -r 54015254fc18 ads1248.h
--- a/ads1248.h	Sat Aug 08 18:29:32 2020 +0000
+++ b/ads1248.h	Tue Aug 11 19:13:08 2020 +0000
@@ -230,8 +230,13 @@
         GPIOCFG_t GPIOCFG;
         GPIODIR_t GPIODIR;
         GPIODAT_t GPIODAT;
+        struct {//хранение настроек калибровки
+            float k,b;
+        }Calibr;
     }ADS1248_t;
-
+    
+    
+    
     unsigned char ADS1248SleepCommand( void );
     
     unsigned char ADS1248WakeupCommand( void );
@@ -245,6 +250,9 @@
     unsigned long ADS1248ReadData( ADS1248_t * ads );
     
     unsigned char ADS1248SettingReg ( ADS1248_t * ads );
+    
+    unsigned long ADS1248ReadCalibratedData(ADS1248_t * ads);
+    void ADS1248CalibrateSoft(ADS1248_t * ads, float (*btf)(unsigned char *));
 
 #endif /*ADS1248_H*/