| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | HaltMsg | |||||||||||||||||||||||||
2 | Size = 6 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||
3 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | HALT_FLAG | CHK_SUM | |||||||||||||||||||
4 | Type | Fixed | Fixed | Type | Length | msg[0] | Sum | |||||||||||||||||||
5 | Value | 0x04 | 0x08 | 0x04 | 0x01 | HALT_FLAG | CHK_SUM | |||||||||||||||||||
6 | HALT_FLAG = 0x00 - Halt; 0x01 - Run | |||||||||||||||||||||||||
7 | ||||||||||||||||||||||||||
8 | ||||||||||||||||||||||||||
9 | DeleteScheduleMsg | |||||||||||||||||||||||||
10 | Size = 6 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||
11 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | DEL_SCH_ID | CHK_SUM | |||||||||||||||||||
12 | Type | Fixed | Fixed | Type | Length | msg[0] | Sum | |||||||||||||||||||
13 | Value | 0x04 | 0x08 | 0x12 | 0x01 | DEL_SCH_ID | CHK_SUM | |||||||||||||||||||
14 | DEL_SCH_ID = The Schedule ID going to be deleted | |||||||||||||||||||||||||
15 | ||||||||||||||||||||||||||
16 | ||||||||||||||||||||||||||
17 | ChannelSetupMsg | |||||||||||||||||||||||||
18 | B0-B6 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||
19 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | PortChannel | AmplitudeLimit | |||||||||||||||||||
20 | Type | Fixed | Fixed | Type | Length | msg[0] | msg[1] | |||||||||||||||||||
21 | Value | 0x04 | 0x08 | 0x47 | 0x07 | PortChannel | AmplitudeLimit | |||||||||||||||||||
22 | ||||||||||||||||||||||||||
23 | B6-B11 | Byte 6 | Byte 7 | Byte 8 | Byte 9 | Byte 10 | Byte 11 | |||||||||||||||||||
24 | Address | PW_Limit | IP_Delay_H | IP_Delay_L | AspectRatio | AnodeCathode | CHK_SUM | |||||||||||||||||||
25 | Type | msg[2] | msg[3] | msg[4] | msg[5] | msg[6] | Sum | |||||||||||||||||||
26 | Value | PulseWidthLimit | InterphaseDelay | AspectRatio | AnodeCathode | CHK_SUM | ||||||||||||||||||||
27 | PortChannel = Port/Channel number | |||||||||||||||||||||||||
28 | AmplitudeLimit = Amplitude Limit value (Range: 0 to 100, Unit: mA) | |||||||||||||||||||||||||
29 | PulseWidthLimit = Pulse Width Limit value (Range: 0 to 255, Unit: us) | |||||||||||||||||||||||||
30 | InterphaseDelay = interphase delay in usec (Default 50us) | |||||||||||||||||||||||||
31 | AspectRatio = Ratio of phase 1 to phase 2, (Default 0x11 for 1:1) 0 means monophasic phase 1 only, FF means monophasic phase 2 only Lower nibble is phase 1 and upper nibble is phase 2 | |||||||||||||||||||||||||
32 | AnodeCathode = The lower 4 bits specify which physical channel is the cathode and the upper 4 bits specify which physical channel is the anode. For 7 monopolar channels, the AnodeCathode setting for each channel would be: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 For 4 bipolar channels, the AnodeCathode setting for each channel would be: 0x01, 0x23, 0x45, 0x67 | |||||||||||||||||||||||||
33 | ||||||||||||||||||||||||||
34 | ||||||||||||||||||||||||||
35 | CreateScheduleMsg | |||||||||||||||||||||||||
36 | Size = 8 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 | |||||||||||||||||
37 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | SyncSignal | Duration_H | Duration_L | CHK_SUM | |||||||||||||||||
38 | Type | Fixed | Fixed | Type | Length | msg[0] | msg[1] | msg[2] | Sum | |||||||||||||||||
39 | Value | 0x04 | 0x08 | 0x10 | 0x03 | 0xAA | Duration | CHK_SUM | ||||||||||||||||||
40 | SyncSignal = 0xAA | |||||||||||||||||||||||||
41 | Duration = Unit in msec , (syncDelay?) | |||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | CreateEventMsg | |||||||||||||||||||||||||
45 | B11-B06 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | ||||||||||||||||||
46 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | ScheduleID | Delay | |||||||||||||||||||
47 | Type | Fixed | Fixed | Type | Length | msg[0] | msg[1] | msg[2] | ||||||||||||||||||
48 | Value | 0x04 | 0x08 | 0x15 | 0x09 | ScheduleID | Delay_H | Delay_L | ||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | B5-B0 | Byte 7 | Byte 8 | Byte 9 | Byte 10 | Byte 11 | Byte 12 | Byte 13 | ||||||||||||||||||
51 | Address | Priority | EventType | PortChannel | PulseWidth | Amplitude | Zone | CHK_SUM | ||||||||||||||||||
52 | Type | msg[3] | msg[4] | msg[5] | msg[6] | msg[7] | msg[8] | Sum | ||||||||||||||||||
53 | Value | Priority | EventType | PortChannel | PulseWidth | Amplitude | 0x00 | CHK_SUM | ||||||||||||||||||
54 | Not Sure the Size of CreateEventMsg | |||||||||||||||||||||||||
55 | uint8_t Stim::_crt_evnt1[14] = {0x04, 0x80, 0x15, 0x09, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x59}; uint8_t Stim::_crt_evnt2[14] = {0x04, 0x80, 0x15, 0x09, 0x01, 0x00, 0x05, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x53}; uint8_t Stim::_crt_evnt3[14] = {0x04, 0x80, 0x15, 0x09, 0x01, 0x00, 0x0A, 0x00, 0x03, 0x02, 0x00, 0x00, 0x00, 0x4D}; | |||||||||||||||||||||||||
56 | ScheduleID start from 1 | |||||||||||||||||||||||||
57 | Delay interval should be 2ms | |||||||||||||||||||||||||
58 | PortChannel start from 0 | |||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ChangeEventMsg | |||||||||||||||||||||||||
63 | Size = 9 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 | Byte 8 | ||||||||||||||||
64 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | EventID | PulseWidth | Amplitude | Zone | CHK_SUM | ||||||||||||||||
65 | Type | Fixed | Fixed | Type | Length | msg[0] | msg[1] | msg[2] | msg[3] | Sum | ||||||||||||||||
66 | Value | 0x04 | 0x08 | 0x19 | 0x04 | EventID | PulseWidth | Amplitude | 0x00 | CHK_SUM | ||||||||||||||||
67 | EventID start from 1 | |||||||||||||||||||||||||
68 | PulseWidth = PulseWidth is changed to 0x10 usec | |||||||||||||||||||||||||
69 | Amplitude = Amplitude is changed to 0x10 mA | |||||||||||||||||||||||||
70 | Zone is not implemented | |||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ChangeEventSchedMsg | |||||||||||||||||||||||||
74 | Size = 9 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 | Byte 8 | ||||||||||||||||
75 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | EventID | ScheduleID | Delay | Priority | CHK_SUM | ||||||||||||||||
76 | Type | Fixed | Fixed | Type | Length | msg[0] | msg[1] | msg[2] | msg[3] | Sum | ||||||||||||||||
77 | Value | SUR/PERC/ICM | 0x08 | 0x18 | 0x04 | EventID | ScheduleID | Delay | 0x00 | CHK_SUM | ||||||||||||||||
78 | EventID start from 1 | |||||||||||||||||||||||||
79 | ScheduleID start from 1 | |||||||||||||||||||||||||
80 | Delay interval should be 2ms | |||||||||||||||||||||||||
81 | Priority default is 0 | |||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ChangeScheduleParameter | |||||||||||||||||||||||||
85 | Size = 9 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 | Byte 8 | ||||||||||||||||
86 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | ScheduleID | SyncSignal | IPI_H | IPI_L | CHK_SUM | ||||||||||||||||
87 | Type | Fixed | Fixed | Type | Length | msg[0] | msg[1] | msg[2] | msg[3] | Sum | ||||||||||||||||
88 | Value | 0x04 | 0x08 | 0x13 | 0x04 | ScheduleID | 0xAA | Duration | CHK_SUM | |||||||||||||||||
89 | ScheduleID start from 1 | |||||||||||||||||||||||||
90 | PulseWidth = PulseWidth is changed to 0x10 usec | |||||||||||||||||||||||||
91 | Amplitude = Amplitude is changed to 0x10 mA | |||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | SyncMsg (Start Schedule) | |||||||||||||||||||||||||
95 | Size = 6 | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||
96 | Address | DES_ADDR | SRC_ADDR | MSG_TYPE | MSG_LEN | SyncSignal | CHK_SUM | |||||||||||||||||||
97 | Type | Fixed | Fixed | Type | Length | msg[0] | Sum | |||||||||||||||||||
98 | Value | 0x04 | 0x08 | 0x1b | 0x01 | SyncSignal | CHK_SUM | |||||||||||||||||||
99 | SyncSignal = 0xAA | |||||||||||||||||||||||||
100 | Start the Schedule using a Sync command with the sync signal specified in the Create Schedule Command (0xAA in this example). The Stimulus module will start to output pulses. | |||||||||||||||||||||||||