This commit is contained in:
yichin
2019-05-24 17:39:06 +08:00
parent 47a24ccef3
commit c63656ac97
2 changed files with 68 additions and 56 deletions
+7 -4
View File
@@ -1,5 +1,8 @@
from devlib.util import print_instruction
CHANNEL_STI_0 = 0
CHANNEL_STI_1 = 1
STI_WAVEFORM_POS = 0x00
STI_WAVEFORM_NEG = 0x01
STI_WAVEFORM_P2N = 0x02
@@ -17,14 +20,14 @@ STI_INSTRUCTION = {
STI_PARAMETER = {
'CURRENT': 10, # uA
'CHANNEL': 0,
'CHANNEL': CHANNEL_STI_0,
'STI_MODE': STI_WAVEFORM_POS,
'PRECISION': STI_PRECISION_10,
'STI_FREQ': 10, # Hz
'STI_PW': 10, # us
'STI_PW': 100, # us
'STI_PW_IPI': 10, # us
'STI_NUM': STI_NUM_INFINITE,
}
print_instruction(STI_INSTRUCTION['GLOBAL'], STI_PARAMETER, c_style_uint8_array='buf')
print_instruction(STI_INSTRUCTION['LOCAL'], STI_PARAMETER, c_style_uint8_array='buf')
# print_instruction(STI_INSTRUCTION['GLOBAL'], STI_PARAMETER, append_ris_type=False, c_style_uint8_array='ins')
print_instruction(STI_INSTRUCTION['LOCAL'], STI_PARAMETER, append_ris_type=False, c_style_uint8_array='ins')