finalizadas interpretações de parâmetros de protocolo basal

parent aaee2f23
......@@ -13,17 +13,14 @@ unsigned int H = 200; //define largura de pulso (em us)
unsigned char IPI = 1; //define intervalo entre pulsos (em ms)
unsigned long int pulso=0;
unsigned char estado=1;
unsigned int ITI = 1; //define intervalo entre trens de pulso (em s)
unsigned int ITI = 10; //define intervalo entre trens de pulso (em s)
//unsigned int H = 5; //define largura de pulso (em ms)
//unsigned char IPI = 5; //define intervalo entre pulsos (em ms)
unsigned int IEI = 200; //define intervalo entre epocas (em ms)
//unsigned int ITI = 800; //define intervalo entre trens de epocas (em ms)
const unsigned char n_pulso = 4;
const unsigned char n_epoca = 10;
unsigned char n_pulso = 4;
unsigned char n_epoca = 10;
unsigned int epoca = 0;
//unsigned int pulso=0;
//unsigned char estado=1;
unsigned int contador = 0;
//Rotinas de interrupcao
......@@ -401,9 +398,7 @@ int main()
protocol = 'b';
i=3;
int j=0;
char Tr[5];
char IPIr[3];
char ITIr[3];
char Tr[5];
while(isDigit(data[i]))
{
Tr[j]=data[i];
......@@ -422,23 +417,29 @@ int main()
if(isDigit(data[i+1]))
{
IPI = 10*(data[i]-'0')+(data[i+1]-'0');
i += 2;
}
else
{
IPI =(data[i]-'0');
i++;
}
config_basal_unipolar();
i++;
if(isDigit(data[i+1]))
{
ITI = 10*(data[i]-'0')+(data[i+1]-'0');
}
else
{
ITI =(data[i]-'0');
i++;
}
config_basal_unipolar();
}
if(data[1] == 't')
{
protocol = 't';
protocol = 't';
config_tbs_unipolar();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment