-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcommand_string.go
109 lines (103 loc) · 3.18 KB
/
command_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Code generated by "stringer -type Command"; DO NOT EDIT.
package medtronic
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ack-6]
_ = x[nak-21]
_ = x[cgmWriteTimestamp-40]
_ = x[setBasalPatternA-48]
_ = x[setBasalPatternB-49]
_ = x[setClock-64]
_ = x[setMaxBolus-65]
_ = x[bolus-66]
_ = x[selectBasalPattern-74]
_ = x[setAbsoluteTempBasal-76]
_ = x[suspend-77]
_ = x[button-91]
_ = x[wakeup-93]
_ = x[setPercentTempBasal-105]
_ = x[setMaxBasal-110]
_ = x[setBasalRates-111]
_ = x[clock-112]
_ = x[pumpID-113]
_ = x[battery-114]
_ = x[reservoir-115]
_ = x[firmwareVersion-116]
_ = x[errorStatus-117]
_ = x[historyPage-128]
_ = x[carbUnits-136]
_ = x[glucoseUnits-137]
_ = x[carbRatios-138]
_ = x[insulinSensitivities-139]
_ = x[glucoseTargets512-140]
_ = x[model-141]
_ = x[settings512-145]
_ = x[basalRates-146]
_ = x[basalPatternA-147]
_ = x[basalPatternB-148]
_ = x[tempBasal-152]
_ = x[glucosePage-154]
_ = x[isigPage-155]
_ = x[calibrationFactor-156]
_ = x[lastHistoryPage-157]
_ = x[glucoseTargets-159]
_ = x[settings-192]
_ = x[cgmPageCount-205]
_ = x[status-206]
_ = x[vcntrPage-213]
}
const _Command_name = "acknakcgmWriteTimestampsetBasalPatternAsetBasalPatternBsetClocksetMaxBolusbolusselectBasalPatternsetAbsoluteTempBasalsuspendbuttonwakeupsetPercentTempBasalsetMaxBasalsetBasalRatesclockpumpIDbatteryreservoirfirmwareVersionerrorStatushistoryPagecarbUnitsglucoseUnitscarbRatiosinsulinSensitivitiesglucoseTargets512modelsettings512basalRatesbasalPatternAbasalPatternBtempBasalglucosePageisigPagecalibrationFactorlastHistoryPageglucoseTargetssettingscgmPageCountstatusvcntrPage"
var _Command_map = map[Command]string{
6: _Command_name[0:3],
21: _Command_name[3:6],
40: _Command_name[6:23],
48: _Command_name[23:39],
49: _Command_name[39:55],
64: _Command_name[55:63],
65: _Command_name[63:74],
66: _Command_name[74:79],
74: _Command_name[79:97],
76: _Command_name[97:117],
77: _Command_name[117:124],
91: _Command_name[124:130],
93: _Command_name[130:136],
105: _Command_name[136:155],
110: _Command_name[155:166],
111: _Command_name[166:179],
112: _Command_name[179:184],
113: _Command_name[184:190],
114: _Command_name[190:197],
115: _Command_name[197:206],
116: _Command_name[206:221],
117: _Command_name[221:232],
128: _Command_name[232:243],
136: _Command_name[243:252],
137: _Command_name[252:264],
138: _Command_name[264:274],
139: _Command_name[274:294],
140: _Command_name[294:311],
141: _Command_name[311:316],
145: _Command_name[316:327],
146: _Command_name[327:337],
147: _Command_name[337:350],
148: _Command_name[350:363],
152: _Command_name[363:372],
154: _Command_name[372:383],
155: _Command_name[383:391],
156: _Command_name[391:408],
157: _Command_name[408:423],
159: _Command_name[423:437],
192: _Command_name[437:445],
205: _Command_name[445:457],
206: _Command_name[457:463],
213: _Command_name[463:472],
}
func (i Command) String() string {
if str, ok := _Command_map[i]; ok {
return str
}
return "Command(" + strconv.FormatInt(int64(i), 10) + ")"
}