Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
experiments.h
00001 #ifndef EXPERIMENTS_H 00002 #define EXPERIMENTS_H 00003 00004 #include <stdio.h> 00005 00006 typedef enum { 00007 R, 00008 P, 00009 RP, 00010 PR, 00011 PGM 00012 } ExperimentsType; 00013 00014 #define FILE_PREFIX_LENGTH 18 00015 #define FILE_NAME_LENGTH 16 + FILE_PREFIX_LENGTH 00016 /* Length of: /msc/Data/ + FILE_NAME_LENGTH */ 00017 #define PATH_TO_FILE_LEN FILE_NAME_LENGTH + 10 00018 00019 #define MAX_STEPS_NO 99 00020 00021 extern float pgm[MAX_STEPS_NO][20]; 00022 00023 /* The both variables are used in lcd_events.c */ 00024 extern FILE* currentFile; 00025 extern char FileName[FILE_NAME_LENGTH]; 00026 extern char FilePrefix[FILE_PREFIX_LENGTH]; 00027 extern int StartTime; 00028 extern int SwitchMode; 00029 00030 #ifdef USE_LCD 00031 void readUserPrograms(void); 00032 #else 00033 static inline void readUserPrograms(void) 00034 { 00035 } 00036 #endif 00037 00038 /* Sets module's variables to specific values before the experiment. */ 00039 void experimentPrepareDefinedProgram(void); 00040 /* Return true if experiment reached the end. */ 00041 bool experimentRunDefinedProgram(void); 00042 void experimentPrepareUserProgram(void); 00043 bool experimentRunUserProgram(void); 00044 00045 void finishExperiment(void); 00046 00047 #endif
Generated on Tue Sep 27 2022 18:47:00 by
1.7.2