Elite 1.4-re notify include mode & gain infomation

This commit is contained in:
alan
2019-08-28 10:48:50 +08:00
parent 24db728a6c
commit f7f5e550c9
@@ -933,10 +933,15 @@ static void EliteNotifyControl(){
| header |
| current |
| voltage or impedance |
| ADC gain level|
| mode & gain |
| time stamp |
| cycle number |
mode & gain
this byte include Elite working mode and ADC gain level
we use "(mode & 0xF0) | (gain & 0x0F)" to encode these two information
cycle number
for cyclic voltammetry use, we save it as channel number.
0xFF
@@ -961,7 +966,7 @@ static void SendNotify(){
}
}
not_buf[9] = ADCGainLevel;
not_buf[9] = (INSTRUCTION.eliteFxn & 0xF0) | (ADCGainLevel & 0x0F);
// 1 Timestamp = 32 usec; 31 Timestamp ~= 1 msec
not_time_stamp = (Timestamp_get32())/31; // msec