sti cali function
This commit is contained in:
+1
@@ -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;
|
||||
|
||||
+16
@@ -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
|
||||
Reference in New Issue
Block a user