Interface between the mbed lpc1768 and the ads1298

Dependencies:   USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
faithcerebral
Date:
Mon Apr 14 16:27:56 2014 +0000
Parent:
0:bd3a560e245e
Commit message:
uncommented the test info

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 10 06:44:02 2014 +0000
+++ b/main.cpp	Mon Apr 14 16:27:56 2014 +0000
@@ -239,27 +239,23 @@
                                             TEST INFORMATION
 **********************************************************************************************************************************************/
 void test_info(void){
-  // LocalFileSystem local("local");               // Create the local filesystem under the name "local"
+   LocalFileSystem local("local");               // Create the local filesystem under the name "local"
     //open text file 
-      // FILE *fp = fopen("/local/out.txt", "r");  // Open "out.txt" on the local file system for reading
+       FILE *fp = fopen("/local/out.txt", "r");  // Open "out.txt" on the local file system for reading
          
-         // if (fp == NULL){
-         //    myled = 1;
-          //  }
-            //else {
-          //while (!feof(fp)){
+          if (fp == NULL){
+            myled = 1;
+           }
+        else {
+        while (!feof(fp)){
               
-        // fscanf(fp,"%d\n",&test.num_channels);
-         //fscanf(fp,"%d\n",&test.gain); 
-     //}
-       // }   
+        fscanf(fp,"%d\n",&test.num_channels);
+        fscanf(fp,"%d\n",&test.gain); 
+        fscanf(fp,"%d\n",&test.ttl_freq); //specify frequency of test
+        fscanf(fp,"%d\n",&test.mfs);//specify if multifocal or erg test
+    }
+        }   
        
-    test.num_channels = 3;
-    test.gain = 6;
-    test.lpf_cutoff = 1000;
-    test.mfs = 1;
-    test.ttl_freq = 500;
-    test.freq_s = 5;
     
 }