sti cali function

This commit is contained in:
weiting2
2020-04-23 18:39:36 +08:00
parent 69452da545
commit d9904e2bb1
2 changed files with 17 additions and 0 deletions
@@ -1020,6 +1020,7 @@ static uint8_t build_neu_ins_config(uint8_t config_type, uint32_t* value) {
}
}
case NEU_SET_STI_VOLT: {
UserCode2StiCode(INSTRUCTION.sti_amplitude_h, INSTRUCTION.sti_amplitude_l);
done = build_sti_amplitude(value);
if (done) {
return NEU_SET_POLARITY;
@@ -0,0 +1,16 @@
#ifndef STI_CALI_H
#define STI_CALI_H
#include "headstage_cali_table.h"
static void UserCode2StiCode(uint16_t amp_h, uint16_t *amp_l){
// get real current value (uA)
uint32_t real_amp = amp_h * 5;
// trans into sti code
}
#endif