doxytest
Functions
Messages2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned int MESSAGES2 (void)
 

Function Documentation

◆ MESSAGES2()

unsigned int MESSAGES2 ( void  )
28 {
29 /*===========================================================================================*/
30 static int i=0;
31 static int j=0;
32 static unsigned int tmp=0;
33 static unsigned int temp=0;
34 
35 static unsigned int crono_ordre=0;
36 static unsigned int crono_marque=0;
37 static unsigned int crono_temps=0;
38 static unsigned int crono_secondes=0;
39 static unsigned int crono_minutes=0;
40 static unsigned int crono_heure=0;
41 static unsigned int crono_jours=0;
42 static unsigned int crono_hms=0;//heures minutes secondes
43 
44 switch (menu)
45 {
46 
47 case 1:
48 //CASE_UNE:
49 //Help
50 if(help){help=0;
51 
52 strcpy (infoinline[PARA_LIBRE()],
53 "La touche F5 permet un rafraichissement de l'écran. Si la touche 1 est pressée avant, l'affichage s'inverse (N/B).");
54 /*----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*///256 char
55 strcpy (infoinline[PARA_LIBRE()],
56 "Touche 2 avant pour 2em écran, Touche 4 avant pour 8lignes/4lignes");
57 
58 strcpy (infoinline[PARA_LIBRE()],
59 "La touche F6 permet de Mêmoriser des valeurs.");
60 
61 strcpy (infoinline[PARA_LIBRE()],
62 "La touche F7 permet de baculer dans l'écran utilisateur (valeurs memorisées).");
63 
64 strcpy (infoinline[PARA_LIBRE()],
65 "F8 pour sortir, esc pr message suivant.");
66 }
67 
68 break;
69 
70 /*Consult. Syst�me*/
71 case MES_DATE: // Crono
72 
73  val_enter_max=1000000000;
74  Val_enter=&crono_ordre;
75  switch (crono_ordre)
76  {
77  case 0://RESET Crono
78  crono_ordre=1;//Inactiver ordre, mode crono
79  crono_marque=treel;
80  break;
81  case 1://Mode crono
82  crono_temps=treel-crono_marque;//Calcul du temps
83  break;
84  case 2://Mode d�compte
85  crono_temps=crono_marque-treel;//Calcul du temps
86  if(crono_temps==0)
87  {
88  //sonnerie=1;
89  }
90  break;
91  default://D�compte
92  crono_marque=treel+crono_ordre;
93  crono_ordre=2;//Inactiver ordre, mode compte � rebour
94  break;
95  }
96  crono_jours=crono_temps/(24*3600);
97  crono_heure=(crono_temps/3600)%(24);
98  crono_minutes=(crono_temps/60)%60;
99  crono_secondes=(crono_temps)%60;
100  crono_hms=(crono_jours*1000000)+(crono_heure*10000)+(crono_minutes*100)+(crono_secondes);
101 
102  strcpy (texte[0],"CRONO");
103  strcpy (texte[1],"Sec tot");
104 
105  Val_mem[1]=&crono_temps;
106  Val_max[1]=30*24*60*60;
107  val_mode[1]=1;
108  BCD_0(crono_hms);
109 
110  texte[2][17]='s';
111  texte[2][16]=A[0];
112  texte[2][15]=A[1];
113  texte[2][13]='m';
114  texte[2][12]=A[2];
115  texte[2][11]=A[3];
116  texte[2][9]='h';
117  texte[2][8]=A[4];
118  texte[2][7]=A[5];
119  texte[2][5]='j';
120  texte[2][4]=A[6];
121  texte[2][3]=A[7];
122  texte[2][2]=A[8];
123  texte[2][1]=A[9];
124 
125  strcpy (texte[3],"Pour JJ HH MM SS");
126  texte[3][17]=7;// Fl�che
127 
128 break;
129  case MES_DATE*10://Mettre en hh mm sec
130 
131  enter=1;//ordre
132  crono_marque=VAL_ENTRER (crono_marque,GROS);
133  enter=0;//efface l'ordre
134 
135  crono_jours=crono_marque/(1000000);
136  crono_marque=crono_marque-(crono_jours*1000000);
137  crono_heure=(crono_marque/10000);
138  crono_marque=crono_marque-(crono_heure*10000);
139  crono_minutes=(crono_marque/100);
140  crono_marque=crono_marque-(crono_minutes*100);
141  crono_secondes=(crono_marque);
142  crono_marque=(crono_jours*24*3600)+(crono_heure*3600)+(crono_minutes*60)+(crono_secondes);
143 
144  crono_marque=crono_marque+treel;
145  crono_ordre=2;//Inactiver ordre, mode compte � rebour
146  menu=menu/10;
147  break;
148 
149 
150 
151 
152 default:
153  return 10;
154 break;
155 /*===========================================================================================*/
156 }
157 
158 }
#define MES_DATE
Definition: Messages.h:19