CTRE Phoenix Pro C++ 23.0.12
StatusCodes.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
9#ifdef __cplusplus
10
11namespace ctre
12{
13 namespace phoenix
14 {
15
16 class StatusCode
17 {
18 int value;
19
20 public:
21 /**
22 * \brief No Error
23 */
24 static constexpr int OK = 0;
25 /**
26 * \brief InvalidDeviceSpec
27 */
28 static constexpr int InvalidDeviceSpec = -101;
29 /**
30 * \brief EcuIsNotPresent
31 */
32 static constexpr int EcuIsNotPresent = -102;
33 /**
34 * \brief CouldNotEnterBl
35 */
36 static constexpr int CouldNotEnterBl = -103;
37 /**
38 * \brief CouldNotConfirmBl
39 */
40 static constexpr int CouldNotConfirmBl = -104;
41 /**
42 * \brief CouldNotErase
43 */
44 static constexpr int CouldNotErase = -105;
45 /**
46 * \brief CouldNotSendFlash
47 */
48 static constexpr int CouldNotSendFlash = -106;
49 /**
50 * \brief CouldNotValidate
51 */
52 static constexpr int CouldNotValidate = -107;
53 /**
54 * \brief CouldNotRunApp
55 */
56 static constexpr int CouldNotRunApp = -108;
57 /**
58 * \brief CouldNotReqSetId
59 */
60 static constexpr int CouldNotReqSetId = -109;
61 /**
62 * \brief CouldNotConfirmId
63 */
64 static constexpr int CouldNotConfirmId = -110;
65 /**
66 * \brief FlashWasGood
67 */
68 static constexpr int FlashWasGood = -111;
69 /**
70 * \brief AppTooOld
71 */
72 static constexpr int AppTooOld = -112;
73 /**
74 * \brief CouldNotReqSetDesc
75 */
76 static constexpr int CouldNotReqSetDesc = -113;
77 /**
78 * \brief CompileSzIsWrong
79 */
80 static constexpr int CompileSzIsWrong = -114;
81 /**
82 * \brief GadgeteerDeviceNoSetId
83 */
84 static constexpr int GadgeteerDeviceNoSetId = -115;
85 /**
86 * \brief InvalidTask
87 */
88 static constexpr int InvalidTask = -116;
89 /**
90 * \brief Not Implemented, check latest installer.
91 */
92 static constexpr int NotImplemented = -117;
93 /**
94 * \brief NoDevicesOnBus
95 */
96 static constexpr int NoDevicesOnBus = -118;
97 /**
98 * \brief MoreThanOneFile
99 */
100 static constexpr int MoreThanOneFile = -119;
101 /**
102 * \brief NodeIsInvalid
103 */
104 static constexpr int NodeIsInvalid = -120;
105 /**
106 * \brief InvalidDeviceDescriptor
107 */
108 static constexpr int InvalidDeviceDescriptor = -121;
109 /**
110 * \brief CouldNotSendCanFrame
111 */
112 static constexpr int CouldNotSendCanFrame = -123;
113 /**
114 * \brief NormalModeMsgNotPresent
115 */
116 static constexpr int NormalModeMsgNotPresent = -124;
117 /**
118 * \brief This feature is not supported.
119 */
120 static constexpr int FeatureNotSupported = -125;
121 /**
122 * \brief NotUpdating
123 */
124 static constexpr int NotUpdating = -126;
125 /**
126 * \brief CorruptedPOST
127 */
128 static constexpr int CorruptedPOST = -127;
129 /**
130 * \brief NoConfigs
131 */
132 static constexpr int NoConfigs = -128;
133 /**
134 * \brief ConfigFailed
135 */
136 static constexpr int ConfigFailed = -129;
137 /**
138 * \brief CouldNotReqFactoryDefault
139 */
140 static constexpr int CouldNotReqFactoryDefault = -130;
141 /**
142 * \brief CustomNameNotSupported
143 */
144 static constexpr int CustomNameNotSupported = -131;
145 /**
146 * \brief ConfigReadWriteMismatch
147 */
148 static constexpr int ConfigReadWriteMismatch = -132;
149 /**
150 * \brief CouldNotReqSetConfigs
151 */
152 static constexpr int CouldNotReqSetConfigs = -133;
153 /**
154 * \brief InsufficientSz
155 */
156 static constexpr int InsufficientSz = -134;
157 /**
158 * \brief InvalidModel
159 */
160 static constexpr int InvalidModel = -135;
161 /**
162 * \brief CouldNotReqDevInfo
163 */
164 static constexpr int CouldNotReqDevInfo = -140;
165 /**
166 * \brief NoControls
167 */
168 static constexpr int NoControls = -141;
169 /**
170 * \brief DeviceIsNull
171 */
172 static constexpr int DeviceIsNull = -142;
173 /**
174 * \brief DeviceDidNotRespondToDiagReq
175 */
176 static constexpr int DeviceDidNotRespondToDiagReq = -143;
177 /**
178 * \brief OnlySupportedInTunerX
179 */
180 static constexpr int OnlySupportedInTunerX = -144;
181 /**
182 * \brief CanivCliError
183 */
184 static constexpr int CanivCliError = -145;
185 /**
186 * \brief InvalidCrfBadHeader
187 */
188 static constexpr int InvalidCrfBadHeader = -200;
189 /**
190 * \brief InvalidCrfFileSzInvald
191 */
192 static constexpr int InvalidCrfFileSzInvald = -201;
193 /**
194 * \brief InvalidCrfWrongProduct
195 */
196 static constexpr int InvalidCrfWrongProduct = -202;
197 /**
198 * \brief InvalidCrfNoSects
199 */
200 static constexpr int InvalidCrfNoSects = -203;
201 /**
202 * \brief InvalidCrfBadSectHeader
203 */
204 static constexpr int InvalidCrfBadSectHeader = -204;
205 /**
206 * \brief InvalidCrfBadSectSize
207 */
208 static constexpr int InvalidCrfBadSectSize = -205;
209 /**
210 * \brief NoCrfFile
211 */
212 static constexpr int NoCrfFile = -206;
213 /**
214 * \brief CouldNotFindDynamicId
215 */
216 static constexpr int CouldNotFindDynamicId = -300;
217 /**
218 * \brief DidNotGetDhcp
219 */
220 static constexpr int DidNotGetDhcp = -301;
221 /**
222 * \brief DidNotGetFullDhcp
223 */
224 static constexpr int DidNotGetFullDhcp = -302;
225 /**
226 * \brief InvalidLicenseResp
227 */
228 static constexpr int InvalidLicenseResp = -350;
229 /**
230 * \brief InvalidCanivCache
231 */
232 static constexpr int InvalidCanivCache = -351;
233 /**
234 * \brief CannotOpenSerialPort
235 */
236 static constexpr int CannotOpenSerialPort = -500;
237 /**
238 * \brief CannotWriteSerialPort
239 */
240 static constexpr int CannotWriteSerialPort = -501;
241 /**
242 * \brief CannotReadSerialPort
243 */
244 static constexpr int CannotReadSerialPort = -502;
245 /**
246 * \brief CannotSerialToDevice
247 */
248 static constexpr int CannotSerialToDevice = -503;
249 /**
250 * \brief NoSerialControlFrameResp
251 */
252 static constexpr int NoSerialControlFrameResp = -504;
253 /**
254 * \brief CannotOpenUdpPort
255 */
256 static constexpr int CannotOpenUdpPort = -600;
257 /**
258 * \brief CannotWriteUdpPort
259 */
260 static constexpr int CannotWriteUdpPort = -601;
261 /**
262 * \brief CannotReadUdpPort
263 */
264 static constexpr int CannotReadUdpPort = -602;
265 /**
266 * \brief CannotUdpToDevice
267 */
268 static constexpr int CannotUdpToDevice = -603;
269 /**
270 * \brief NoUdpControlFrameResp
271 */
272 static constexpr int NoUdpControlFrameResp = -604;
273 /**
274 * \brief TimeoutIso15Response
275 */
276 static constexpr int TimeoutIso15Response = -605;
277 /**
278 * \brief InvalidJson
279 */
280 static constexpr int InvalidJson = -700;
281 /**
282 * \brief AppIsTerminating
283 */
284 static constexpr int AppIsTerminating = -800;
285 /**
286 * \brief CAN Message is stale.
287 */
288 static constexpr int CanMessageStale = 1000;
289 /**
290 * \brief Buffer is full, cannot insert more data.
291 */
292 static constexpr int BufferFull = 1006;
293 /**
294 * \brief PulseWidthSensorNotPresent
295 */
296 static constexpr int PulseWidthSensorNotPresent = 1010;
297 /**
298 * \brief General Warning Occurred.
299 */
300 static constexpr int GeneralWarning = 1100;
301 /**
302 * \brief Firm Vers could not be retrieved. Use Phoenix Tuner to check ID and
303 * firmware(CRF) version.
304 */
305 static constexpr int FirmVersionCouldNotBeRetrieved = 1103;
306 /**
307 * \brief This feature will be supported in a future update.
308 */
309 static constexpr int FeaturesNotAvailableYet = 1104;
310 /**
311 * \brief The control mode is not valid for this function.
312 */
313 static constexpr int ControlModeNotValid = 1105;
314 /**
315 * \brief This control mode is not supported yet. A future release will
316 * supported this soon.
317 */
318 static constexpr int ControlModeNotSupportedYet = 1106;
319 /**
320 * \brief Motor Controller must have >= 3.2 firmware for motion profile control
321 * mode.
322 */
323 static constexpr int MotProfFirmThreshold = 1109;
324 /**
325 * \brief Motor Controller must have >= 3.4 firmware for advanced PID0/PID1
326 * features.
327 */
328 static constexpr int MotProfFirmThreshold2 = 1110;
329 /**
330 * \brief SimDeviceNotFound
331 */
332 static constexpr int SimDeviceNotFound = 1200;
333 /**
334 * \brief SimPhysicsTypeNotSupported
335 */
336 static constexpr int SimPhysicsTypeNotSupported = 1201;
337 /**
338 * \brief SimDeviceAlreadyExists
339 */
340 static constexpr int SimDeviceAlreadyExists = 1202;
341 /**
342 * \brief Could not transmit CAN Frame.
343 */
344 static constexpr int TxFailed = -1001;
345 /**
346 * \brief Incorrect argument passed into function/VI.
347 */
348 static constexpr int InvalidParamValue = -1002;
349 /**
350 * \brief CAN frame not received/too-stale.
351 */
352 static constexpr int RxTimeout = -1003;
353 /**
354 * \brief CAN Transmit timed out.
355 */
356 static constexpr int TxTimeout = -1004;
357 /**
358 * \brief ArbID is incorrect.
359 */
360 static constexpr int UnexpectedArbId = -1005;
361 /**
362 * \brief CanOverflowed
363 */
364 static constexpr int CanOverflowed = -1006;
365 /**
366 * \brief Sensor Not Present.
367 */
368 static constexpr int SensorNotPresent = -1007;
369 /**
370 * \brief Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN
371 * device firmware(CRF). Then restart your robot application to clear
372 * this error.
373 */
374 static constexpr int FirmwareTooOld = -1008;
375 /**
376 * \brief Control Frame Period could not be changed. Most likely it is not
377 * being transmitted.
378 */
379 static constexpr int CouldNotChangePeriod = -1009;
380 /**
381 * \brief BufferFailure
382 */
383 static constexpr int BufferFailure = -1010;
384 /**
385 * \brief Firmware is legacy non-FRC version. Use Phoenix Tuner to field
386 * upgrade your CTRE CAN device firmware(CRF). Firmware greater than
387 * 20.0 required.
388 */
389 static constexpr int FirmwareNonFRC = -1011;
390 /**
391 * \brief General Error Occurred.
392 */
393 static constexpr int GeneralError = -1100;
394 /**
395 * \brief No new response to update signal.
396 */
397 static constexpr int SigNotUpdated = -1200;
398 /**
399 * \brief NotAllPIDValuesUpdated
400 */
401 static constexpr int NotAllPIDValuesUpdated = -1201;
402 /**
403 * \brief GEN_PORT_ERROR
404 */
405 static constexpr int GEN_PORT_ERROR = -1300;
406 /**
407 * \brief PORT_MODULE_TYPE_MISMATCH
408 */
409 static constexpr int PORT_MODULE_TYPE_MISMATCH = -1301;
410 /**
411 * \brief GEN_MODULE_ERROR
412 */
413 static constexpr int GEN_MODULE_ERROR = -1400;
414 /**
415 * \brief MODULE_NOT_INIT_SET_ERROR
416 */
417 static constexpr int MODULE_NOT_INIT_SET_ERROR = -1401;
418 /**
419 * \brief MODULE_NOT_INIT_GET_ERROR
420 */
421 static constexpr int MODULE_NOT_INIT_GET_ERROR = -1402;
422 /**
423 * \brief Wheel Radius is too small, cannot get distance traveled.
424 */
425 static constexpr int WheelRadiusTooSmall = -1500;
426 /**
427 * \brief Ticks per revolution is 0, cannot get heading.
428 */
429 static constexpr int TicksPerRevZero = -1501;
430 /**
431 * \brief Distance between wheels is too small, cannot get heading.
432 */
433 static constexpr int DistanceBetweenWheelsTooSmall = -1502;
434 /**
435 * \brief GainsAreNotSet
436 */
437 static constexpr int GainsAreNotSet = -1503;
438 /**
439 * \brief Use RemoteLimitSwitchSource instead of LimitSwitchSource.
440 */
441 static constexpr int WrongRemoteLimitSwitchSource = -1504;
442 /**
443 * \brief Motor Controller Voltage Compensation should not be used with
444 * setVoltage(). This causes compensation to happen twice. Disable
445 * Voltage Compensation by calling enableVoltageCompensation(false) in
446 * order to use setVoltage().
447 */
448 static constexpr int DoubleVoltageCompensatingWPI = -1505;
449 /**
450 * \brief CANdleAnimSlotOutOfBounds
451 */
452 static constexpr int CANdleAnimSlotOutOfBounds = -1506;
453 /**
454 * \brief IncompatibleMode
455 */
456 static constexpr int IncompatibleMode = -1600;
457 /**
458 * \brief Handle passed into function is incorrect.
459 */
460 static constexpr int InvalidHandle = -1601;
461 /**
462 * \brief Features requires newer firmware version.
463 */
464 static constexpr int FeatureRequiresHigherFirm = -1700;
465 /**
466 * \brief Config factory default features require firmware >=3.10.
467 */
468 static constexpr int ConfigFactoryDefaultRequiresHigherFirm = -1702;
469 /**
470 * \brief Config Motion S Curve Strength features require firmware >=4.16.
471 */
472 static constexpr int ConfigMotionSCurveRequiresHigherFirm = -1703;
473 /**
474 * \brief Talon FX(Falcon 500) Firmware Too Old. Use Phoenix Tuner to field
475 * upgrade your CTRE CAN device firmware(CRF) to >=20.3. Then restart
476 * your robot application to clear this error.
477 */
478 static constexpr int TalonFXFirmwarePreVBatDetect = -1704;
479 /**
480 * \brief CANdleAnimationsRequireHigherFirm
481 */
482 static constexpr int CANdleAnimationsRequireHigherFirm = -1705;
483 /**
484 * \brief LibraryCouldNotBeLoaded
485 */
486 static constexpr int LibraryCouldNotBeLoaded = -1800;
487 /**
488 * \brief MissingRoutineInLibrary
489 */
490 static constexpr int MissingRoutineInLibrary = -1801;
491 /**
492 * \brief ResourceNotAvailable
493 */
494 static constexpr int ResourceNotAvailable = -1802;
495 /**
496 * \brief Could not find music file specified, try specifying an absolute path.
497 */
498 static constexpr int MusicFileNotFound = -1900;
499 /**
500 * \brief Music file size is incorrect, could not parse correctly. Ensure
501 * you're using Tuner to generate file.
502 */
503 static constexpr int MusicFileWrongSize = -1901;
504 /**
505 * \brief Music file version is too new, update Phoenix to utilize this file.
506 */
507 static constexpr int MusicFileTooNew = -1902;
508 /**
509 * \brief Music file is invalid. Ensure you're using Tuner to generate file.
510 */
511 static constexpr int MusicFileInvalid = -1903;
512 /**
513 * \brief An invalid orchestra action occurred. Ensure a music file is loaded.
514 */
515 static constexpr int InvalidOrchestraAction = -1904;
516 /**
517 * \brief This music file version is too old. Regenerate file using Tuner.
518 */
519 static constexpr int MusicFileTooOld = -1905;
520 /**
521 * \brief Music interrupted due to one of the instruments being commanded a
522 * different control mode. Press Play to resume music.
523 */
524 static constexpr int MusicInterrupted = -1906;
525 /**
526 * \brief This device doesn't support MusicTone control mode.
527 */
528 static constexpr int MusicNotSupported = -1907;
529 /**
530 * \brief kInvalidInterface
531 */
532 static constexpr int kInvalidInterface = -2000;
533 /**
534 * \brief kInvalidGuid
535 */
536 static constexpr int kInvalidGuid = -2001;
537 /**
538 * \brief kInvalidClass
539 */
540 static constexpr int kInvalidClass = -2002;
541 /**
542 * \brief kInvalidProtocol
543 */
544 static constexpr int kInvalidProtocol = -2003;
545 /**
546 * \brief kInvalidPath
547 */
548 static constexpr int kInvalidPath = -2004;
549 /**
550 * \brief kGeneralWinUsbError
551 */
552 static constexpr int kGeneralWinUsbError = -2005;
553 /**
554 * \brief kFailedSetup
555 */
556 static constexpr int kFailedSetup = -2006;
557 /**
558 * \brief kListenFailed
559 */
560 static constexpr int kListenFailed = -2007;
561 /**
562 * \brief kSendFailed
563 */
564 static constexpr int kSendFailed = -2008;
565 /**
566 * \brief kReceiveFailed
567 */
568 static constexpr int kReceiveFailed = -2009;
569 /**
570 * \brief kInvalidRespFormat
571 */
572 static constexpr int kInvalidRespFormat = -2010;
573 /**
574 * \brief kWinUsbInitFailed
575 */
576 static constexpr int kWinUsbInitFailed = -2011;
577 /**
578 * \brief kWinUsbQueryFailed
579 */
580 static constexpr int kWinUsbQueryFailed = -2012;
581 /**
582 * \brief kWinUsbGeneralError
583 */
584 static constexpr int kWinUsbGeneralError = -2013;
585 /**
586 * \brief kAccessDenied
587 */
588 static constexpr int kAccessDenied = -2014;
589 /**
590 * \brief kFirmwareInvalidResponse
591 */
592 static constexpr int kFirmwareInvalidResponse = -2015;
593 /**
594 * \brief This StatusCode has not been initialized. Make sure the StatusCode is
595 * getting assigned to the return of a method.
596 */
597 static constexpr int StatusCodeNotInitialized = -10000;
598 /**
599 * \brief WarningNotInitialized
600 */
601 static constexpr int WarningNotInitialized = 10000;
602 /**
603 * \brief The timestamp reported by CANivore is at least 10ms older than the
604 * timestamp reported by the system, indicating it's fallen out of sync.
605 * This does not impact the data of this message, only the timing.
606 */
607 static constexpr int HwTimestampOutOfSync = 10001;
608 /**
609 * \brief InvalidNetwork
610 */
611 static constexpr int InvalidNetwork = -10001;
612 /**
613 * \brief MultiSignalNotSupported
614 */
615 static constexpr int MultiSignalNotSupported = -10002;
616 /**
617 * \brief Could not cast from base value to this particular signal's type
618 */
619 static constexpr int CouldNotCast = -10003;
620 /**
621 * \brief Could not find this value when searching for it
622 */
623 static constexpr int NotFound = -10004;
624 /**
625 * \brief This is not supported
626 */
627 static constexpr int NotSupported = -10005;
628 /**
629 * \brief Could not determine context from this device hash
630 */
631 static constexpr int MissingContext = -10006;
632 /**
633 * \brief Model name in license file does not match model name of selected
634 * device.
635 */
636 static constexpr int ModelMismatch = -10007;
637 /**
638 * \brief Serial Number in license file does not match model name of selected
639 * device.
640 */
641 static constexpr int SerialMismatch = -10008;
642 /**
643 * \brief Could not find specified file.
644 */
645 static constexpr int NoFile = -10009;
646 /**
647 * \brief License did not successfully download to Device.
648 */
649 static constexpr int LicenseDownloadFailed = -10010;
650 /**
651 * \brief Self Test report does not have any values, is the firmware up to
652 * date?
653 */
654 static constexpr int SelfTestIsEmpty = -10011;
655 /**
656 * \brief Failed to lookup signal properties. This can happen if the fimware
657 * is too new and supports signals that older APIs do not support.
658 */
659 static constexpr int SignalLookupFailed = -10012;
660 /**
661 * \brief The current mode of the device is invalid for getting this signal.
662 */
663 static constexpr int InvalidModeToGetSignal = -10013;
664 /**
665 * \brief Device is not licensed. Cannot get any data from it.
666 */
667 static constexpr int UnlicensedDevice = -10014;
668 /**
669 * \brief Size is invalid.
670 */
671 static constexpr int InvalidSize = -10015;
672 /**
673 * \brief InvalidLicenseResponse
674 */
675 static constexpr int InvalidLicenseResponse = -10016;
676 /**
677 * \brief InvalidContext
678 */
679 static constexpr int InvalidContext = -10017;
680 /**
681 * \brief InternalError
682 */
683 static constexpr int InternalError = -10018;
684 /**
685 * \brief TaskIsBusy
686 */
687 static constexpr int TaskIsBusy = -10019;
688 /**
689 * \brief kDeviceResponseIncorrect
690 */
691 static constexpr int kDeviceResponseIncorrect = -10020;
692 /**
693 * \brief kErrorPollingForDevices
694 */
695 static constexpr int kErrorPollingForDevices = -10021;
696 /**
697 * \brief Device firmware could not be retrieved. Check that the device is
698 * running Pro firmware, that the device ID is correct, that the
699 * specified CAN bus is correct, and that the device is powered.
700 */
701 static constexpr int CouldNotRetrieveProFirmware = -10022;
702 /**
703 * \brief Device firmware could not be decoded. Check that the device is
704 * running Pro firmware, that the device ID is correct, that the
705 * specified CAN bus is correct, and that the device is powered.
706 */
707 static constexpr int CouldNotDecodeDeviceFirmware = -10023;
708 /**
709 * \brief The values specified for master are in valid. Make sure the Device
710 * ID of master are correct.
711 */
712 static constexpr int InvalidIDToFollow = -10024;
713
714 operator int() const { return this->value; }
715
716 bool operator==(const StatusCode &data) const
717 {
718 return this->value == data.value;
719 }
720 bool operator==(int data) const
721 {
722 return this->value == data;
723 }
724 bool operator<(const StatusCode &data) const
725 {
726 return this->value < data.value;
727 }
728 bool operator<(int data) const
729 {
730 return this->value < data;
731 }
732 StatusCode(int val) : value{val} {}
733 StatusCode() : value{StatusCode::StatusCodeNotInitialized} {}
734
735 const char *GetName() const
736 {
737 switch (value)
738 {
739 case 0: return "OK";
740 case -101: return "InvalidDeviceSpec";
741 case -102: return "EcuIsNotPresent";
742 case -103: return "CouldNotEnterBl";
743 case -104: return "CouldNotConfirmBl";
744 case -105: return "CouldNotErase";
745 case -106: return "CouldNotSendFlash";
746 case -107: return "CouldNotValidate";
747 case -108: return "CouldNotRunApp";
748 case -109: return "CouldNotReqSetId";
749 case -110: return "CouldNotConfirmId";
750 case -111: return "FlashWasGood";
751 case -112: return "AppTooOld";
752 case -113: return "CouldNotReqSetDesc";
753 case -114: return "CompileSzIsWrong";
754 case -115: return "GadgeteerDeviceNoSetId";
755 case -116: return "InvalidTask";
756 case -117: return "NotImplemented";
757 case -118: return "NoDevicesOnBus";
758 case -119: return "MoreThanOneFile";
759 case -120: return "NodeIsInvalid";
760 case -121: return "InvalidDeviceDescriptor";
761 case -123: return "CouldNotSendCanFrame";
762 case -124: return "NormalModeMsgNotPresent";
763 case -125: return "FeatureNotSupported";
764 case -126: return "NotUpdating";
765 case -127: return "CorruptedPOST";
766 case -128: return "NoConfigs";
767 case -129: return "ConfigFailed";
768 case -130: return "CouldNotReqFactoryDefault";
769 case -131: return "CustomNameNotSupported";
770 case -132: return "ConfigReadWriteMismatch";
771 case -133: return "CouldNotReqSetConfigs";
772 case -134: return "InsufficientSz";
773 case -135: return "InvalidModel";
774 case -140: return "CouldNotReqDevInfo";
775 case -141: return "NoControls";
776 case -142: return "DeviceIsNull";
777 case -143: return "DeviceDidNotRespondToDiagReq";
778 case -144: return "OnlySupportedInTunerX";
779 case -145: return "CanivCliError";
780 case -200: return "InvalidCrfBadHeader";
781 case -201: return "InvalidCrfFileSzInvald";
782 case -202: return "InvalidCrfWrongProduct";
783 case -203: return "InvalidCrfNoSects";
784 case -204: return "InvalidCrfBadSectHeader";
785 case -205: return "InvalidCrfBadSectSize";
786 case -206: return "NoCrfFile";
787 case -300: return "CouldNotFindDynamicId";
788 case -301: return "DidNotGetDhcp";
789 case -302: return "DidNotGetFullDhcp";
790 case -350: return "InvalidLicenseResp";
791 case -351: return "InvalidCanivCache";
792 case -500: return "CannotOpenSerialPort";
793 case -501: return "CannotWriteSerialPort";
794 case -502: return "CannotReadSerialPort";
795 case -503: return "CannotSerialToDevice";
796 case -504: return "NoSerialControlFrameResp";
797 case -600: return "CannotOpenUdpPort";
798 case -601: return "CannotWriteUdpPort";
799 case -602: return "CannotReadUdpPort";
800 case -603: return "CannotUdpToDevice";
801 case -604: return "NoUdpControlFrameResp";
802 case -605: return "TimeoutIso15Response";
803 case -700: return "InvalidJson";
804 case -800: return "AppIsTerminating";
805 case 1000: return "CanMessageStale";
806 case 1006: return "BufferFull";
807 case 1010: return "PulseWidthSensorNotPresent";
808 case 1100: return "GeneralWarning";
809 case 1103: return "FirmVersionCouldNotBeRetrieved";
810 case 1104: return "FeaturesNotAvailableYet";
811 case 1105: return "ControlModeNotValid";
812 case 1106: return "ControlModeNotSupportedYet";
813 case 1109: return "MotProfFirmThreshold";
814 case 1110: return "MotProfFirmThreshold2";
815 case 1200: return "SimDeviceNotFound";
816 case 1201: return "SimPhysicsTypeNotSupported";
817 case 1202: return "SimDeviceAlreadyExists";
818 case -1001: return "TxFailed";
819 case -1002: return "InvalidParamValue";
820 case -1003: return "RxTimeout";
821 case -1004: return "TxTimeout";
822 case -1005: return "UnexpectedArbId";
823 case -1006: return "CanOverflowed";
824 case -1007: return "SensorNotPresent";
825 case -1008: return "FirmwareTooOld";
826 case -1009: return "CouldNotChangePeriod";
827 case -1010: return "BufferFailure";
828 case -1011: return "FirmwareNonFRC";
829 case -1100: return "GeneralError";
830 case -1200: return "SigNotUpdated";
831 case -1201: return "NotAllPIDValuesUpdated";
832 case -1300: return "GEN_PORT_ERROR";
833 case -1301: return "PORT_MODULE_TYPE_MISMATCH";
834 case -1400: return "GEN_MODULE_ERROR";
835 case -1401: return "MODULE_NOT_INIT_SET_ERROR";
836 case -1402: return "MODULE_NOT_INIT_GET_ERROR";
837 case -1500: return "WheelRadiusTooSmall";
838 case -1501: return "TicksPerRevZero";
839 case -1502: return "DistanceBetweenWheelsTooSmall";
840 case -1503: return "GainsAreNotSet";
841 case -1504: return "WrongRemoteLimitSwitchSource";
842 case -1505: return "DoubleVoltageCompensatingWPI";
843 case -1506: return "CANdleAnimSlotOutOfBounds";
844 case -1600: return "IncompatibleMode";
845 case -1601: return "InvalidHandle";
846 case -1700: return "FeatureRequiresHigherFirm";
847 case -1702: return "ConfigFactoryDefaultRequiresHigherFirm";
848 case -1703: return "ConfigMotionSCurveRequiresHigherFirm";
849 case -1704: return "TalonFXFirmwarePreVBatDetect";
850 case -1705: return "CANdleAnimationsRequireHigherFirm";
851 case -1800: return "LibraryCouldNotBeLoaded";
852 case -1801: return "MissingRoutineInLibrary";
853 case -1802: return "ResourceNotAvailable";
854 case -1900: return "MusicFileNotFound";
855 case -1901: return "MusicFileWrongSize";
856 case -1902: return "MusicFileTooNew";
857 case -1903: return "MusicFileInvalid";
858 case -1904: return "InvalidOrchestraAction";
859 case -1905: return "MusicFileTooOld";
860 case -1906: return "MusicInterrupted";
861 case -1907: return "MusicNotSupported";
862 case -2000: return "kInvalidInterface";
863 case -2001: return "kInvalidGuid";
864 case -2002: return "kInvalidClass";
865 case -2003: return "kInvalidProtocol";
866 case -2004: return "kInvalidPath";
867 case -2005: return "kGeneralWinUsbError";
868 case -2006: return "kFailedSetup";
869 case -2007: return "kListenFailed";
870 case -2008: return "kSendFailed";
871 case -2009: return "kReceiveFailed";
872 case -2010: return "kInvalidRespFormat";
873 case -2011: return "kWinUsbInitFailed";
874 case -2012: return "kWinUsbQueryFailed";
875 case -2013: return "kWinUsbGeneralError";
876 case -2014: return "kAccessDenied";
877 case -2015: return "kFirmwareInvalidResponse";
878 case -10000: return "StatusCodeNotInitialized";
879 case 10000: return "WarningNotInitialized";
880 case 10001: return "HwTimestampOutOfSync";
881 case -10001: return "InvalidNetwork";
882 case -10002: return "MultiSignalNotSupported";
883 case -10003: return "CouldNotCast";
884 case -10004: return "NotFound";
885 case -10005: return "NotSupported";
886 case -10006: return "MissingContext";
887 case -10007: return "ModelMismatch";
888 case -10008: return "SerialMismatch";
889 case -10009: return "NoFile";
890 case -10010: return "LicenseDownloadFailed";
891 case -10011: return "SelfTestIsEmpty";
892 case -10012: return "SignalLookupFailed";
893 case -10013: return "InvalidModeToGetSignal";
894 case -10014: return "UnlicensedDevice";
895 case -10015: return "InvalidSize";
896 case -10016: return "InvalidLicenseResponse";
897 case -10017: return "InvalidContext";
898 case -10018: return "InternalError";
899 case -10019: return "TaskIsBusy";
900 case -10020: return "kDeviceResponseIncorrect";
901 case -10021: return "kErrorPollingForDevices";
902 case -10022: return "CouldNotRetrieveProFirmware";
903 case -10023: return "CouldNotDecodeDeviceFirmware";
904 case -10024: return "InvalidIDToFollow";
905 default:
906 return "Could not find name";
907 }
908 }
909 const char *GetDescription() const
910 {
911 switch (value)
912 {
913 case 0: return "No Error";
914 case -101: return "InvalidDeviceSpec";
915 case -102: return "EcuIsNotPresent";
916 case -103: return "CouldNotEnterBl";
917 case -104: return "CouldNotConfirmBl";
918 case -105: return "CouldNotErase";
919 case -106: return "CouldNotSendFlash";
920 case -107: return "CouldNotValidate";
921 case -108: return "CouldNotRunApp";
922 case -109: return "CouldNotReqSetId";
923 case -110: return "CouldNotConfirmId";
924 case -111: return "FlashWasGood";
925 case -112: return "AppTooOld";
926 case -113: return "CouldNotReqSetDesc";
927 case -114: return "CompileSzIsWrong";
928 case -115: return "GadgeteerDeviceNoSetId";
929 case -116: return "InvalidTask";
930 case -117: return "Not Implemented, check latest installer.";
931 case -118: return "NoDevicesOnBus";
932 case -119: return "MoreThanOneFile";
933 case -120: return "NodeIsInvalid";
934 case -121: return "InvalidDeviceDescriptor";
935 case -123: return "CouldNotSendCanFrame";
936 case -124: return "NormalModeMsgNotPresent";
937 case -125: return "This feature is not supported.";
938 case -126: return "NotUpdating";
939 case -127: return "CorruptedPOST";
940 case -128: return "NoConfigs";
941 case -129: return "ConfigFailed";
942 case -130: return "CouldNotReqFactoryDefault";
943 case -131: return "CustomNameNotSupported";
944 case -132: return "ConfigReadWriteMismatch";
945 case -133: return "CouldNotReqSetConfigs";
946 case -134: return "InsufficientSz";
947 case -135: return "InvalidModel";
948 case -140: return "CouldNotReqDevInfo";
949 case -141: return "NoControls";
950 case -142: return "DeviceIsNull";
951 case -143: return "DeviceDidNotRespondToDiagReq";
952 case -144: return "OnlySupportedInTunerX";
953 case -145: return "CanivCliError";
954 case -200: return "InvalidCrfBadHeader";
955 case -201: return "InvalidCrfFileSzInvald";
956 case -202: return "InvalidCrfWrongProduct";
957 case -203: return "InvalidCrfNoSects";
958 case -204: return "InvalidCrfBadSectHeader";
959 case -205: return "InvalidCrfBadSectSize";
960 case -206: return "NoCrfFile";
961 case -300: return "CouldNotFindDynamicId";
962 case -301: return "DidNotGetDhcp";
963 case -302: return "DidNotGetFullDhcp";
964 case -350: return "InvalidLicenseResp";
965 case -351: return "InvalidCanivCache";
966 case -500: return "CannotOpenSerialPort";
967 case -501: return "CannotWriteSerialPort";
968 case -502: return "CannotReadSerialPort";
969 case -503: return "CannotSerialToDevice";
970 case -504: return "NoSerialControlFrameResp";
971 case -600: return "CannotOpenUdpPort";
972 case -601: return "CannotWriteUdpPort";
973 case -602: return "CannotReadUdpPort";
974 case -603: return "CannotUdpToDevice";
975 case -604: return "NoUdpControlFrameResp";
976 case -605: return "TimeoutIso15Response";
977 case -700: return "InvalidJson";
978 case -800: return "AppIsTerminating";
979 case 1000: return "CAN Message is stale.";
980 case 1006: return "Buffer is full, cannot insert more data.";
981 case 1010: return "PulseWidthSensorNotPresent";
982 case 1100: return "General Warning Occurred.";
983 case 1103: return "Firm Vers could not be retrieved. Use Phoenix Tuner to check ID and firmware(CRF) version.";
984 case 1104: return "This feature will be supported in a future update.";
985 case 1105: return "The control mode is not valid for this function.";
986 case 1106: return "This control mode is not supported yet. A future release will supported this soon.";
987 case 1109: return "Motor Controller must have >= 3.2 firmware for motion profile control mode.";
988 case 1110: return "Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features.";
989 case 1200: return "SimDeviceNotFound";
990 case 1201: return "SimPhysicsTypeNotSupported";
991 case 1202: return "SimDeviceAlreadyExists";
992 case -1001: return "Could not transmit CAN Frame.";
993 case -1002: return "Incorrect argument passed into function/VI.";
994 case -1003: return "CAN frame not received/too-stale.";
995 case -1004: return "CAN Transmit timed out.";
996 case -1005: return "ArbID is incorrect.";
997 case -1006: return "CanOverflowed";
998 case -1007: return "Sensor Not Present.";
999 case -1008: return "Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF). Then restart your robot application to clear this error.";
1000 case -1009: return "Control Frame Period could not be changed. Most likely it is not being transmitted.";
1001 case -1010: return "BufferFailure";
1002 case -1011: return "Firmware is legacy non-FRC version. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF). Firmware greater than 20.0 required.";
1003 case -1100: return "General Error Occurred.";
1004 case -1200: return "No new response to update signal.";
1005 case -1201: return "NotAllPIDValuesUpdated";
1006 case -1300: return "GEN_PORT_ERROR";
1007 case -1301: return "PORT_MODULE_TYPE_MISMATCH";
1008 case -1400: return "GEN_MODULE_ERROR";
1009 case -1401: return "MODULE_NOT_INIT_SET_ERROR";
1010 case -1402: return "MODULE_NOT_INIT_GET_ERROR";
1011 case -1500: return "Wheel Radius is too small, cannot get distance traveled.";
1012 case -1501: return "Ticks per revolution is 0, cannot get heading.";
1013 case -1502: return "Distance between wheels is too small, cannot get heading.";
1014 case -1503: return "GainsAreNotSet";
1015 case -1504: return "Use RemoteLimitSwitchSource instead of LimitSwitchSource.";
1016 case -1505: return "Motor Controller Voltage Compensation should not be used with setVoltage(). This causes compensation to happen twice. Disable Voltage Compensation by calling enableVoltageCompensation(false) in order to use setVoltage().";
1017 case -1506: return "CANdleAnimSlotOutOfBounds";
1018 case -1600: return "IncompatibleMode";
1019 case -1601: return "Handle passed into function is incorrect.";
1020 case -1700: return "Features requires newer firmware version.";
1021 case -1702: return "Config factory default features require firmware >=3.10.";
1022 case -1703: return "Config Motion S Curve Strength features require firmware >=4.16.";
1023 case -1704: return "Talon FX(Falcon 500) Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF) to >=20.3. Then restart your robot application to clear this error.";
1024 case -1705: return "CANdleAnimationsRequireHigherFirm";
1025 case -1800: return "LibraryCouldNotBeLoaded";
1026 case -1801: return "MissingRoutineInLibrary";
1027 case -1802: return "ResourceNotAvailable";
1028 case -1900: return "Could not find music file specified, try specifying an absolute path.";
1029 case -1901: return "Music file size is incorrect, could not parse correctly. Ensure you're using Tuner to generate file.";
1030 case -1902: return "Music file version is too new, update Phoenix to utilize this file.";
1031 case -1903: return "Music file is invalid. Ensure you're using Tuner to generate file.";
1032 case -1904: return "An invalid orchestra action occurred. Ensure a music file is loaded.";
1033 case -1905: return "This music file version is too old. Regenerate file using Tuner.";
1034 case -1906: return "Music interrupted due to one of the instruments being commanded a different control mode. Press Play to resume music.";
1035 case -1907: return "This device doesn't support MusicTone control mode.";
1036 case -2000: return "kInvalidInterface";
1037 case -2001: return "kInvalidGuid";
1038 case -2002: return "kInvalidClass";
1039 case -2003: return "kInvalidProtocol";
1040 case -2004: return "kInvalidPath";
1041 case -2005: return "kGeneralWinUsbError";
1042 case -2006: return "kFailedSetup";
1043 case -2007: return "kListenFailed";
1044 case -2008: return "kSendFailed";
1045 case -2009: return "kReceiveFailed";
1046 case -2010: return "kInvalidRespFormat";
1047 case -2011: return "kWinUsbInitFailed";
1048 case -2012: return "kWinUsbQueryFailed";
1049 case -2013: return "kWinUsbGeneralError";
1050 case -2014: return "kAccessDenied";
1051 case -2015: return "kFirmwareInvalidResponse";
1052 case -10000: return "This StatusCode has not been initialized. Make sure the StatusCode is getting assigned to the return of a method.";
1053 case 10000: return "WarningNotInitialized";
1054 case 10001: return "The timestamp reported by CANivore is at least 10ms older than the timestamp reported by the system, indicating it's fallen out of sync. This does not impact the data of this message, only the timing.";
1055 case -10001: return "InvalidNetwork";
1056 case -10002: return "MultiSignalNotSupported";
1057 case -10003: return "Could not cast from base value to this particular signal's type";
1058 case -10004: return "Could not find this value when searching for it";
1059 case -10005: return "This is not supported";
1060 case -10006: return "Could not determine context from this device hash";
1061 case -10007: return "Model name in license file does not match model name of selected device.";
1062 case -10008: return "Serial Number in license file does not match model name of selected device.";
1063 case -10009: return "Could not find specified file.";
1064 case -10010: return "License did not successfully download to Device.";
1065 case -10011: return "Self Test report does not have any values, is the firmware up to date?";
1066 case -10012: return "Failed to lookup signal properties. This can happen if the fimware is too new and supports signals that older APIs do not support.";
1067 case -10013: return "The current mode of the device is invalid for getting this signal.";
1068 case -10014: return "Device is not licensed. Cannot get any data from it.";
1069 case -10015: return "Size is invalid.";
1070 case -10016: return "InvalidLicenseResponse";
1071 case -10017: return "InvalidContext";
1072 case -10018: return "InternalError";
1073 case -10019: return "TaskIsBusy";
1074 case -10020: return "kDeviceResponseIncorrect";
1075 case -10021: return "kErrorPollingForDevices";
1076 case -10022: return "Device firmware could not be retrieved. Check that the device is running Pro firmware, that the device ID is correct, that the specified CAN bus is correct, and that the device is powered.";
1077 case -10023: return "Device firmware could not be decoded. Check that the device is running Pro firmware, that the device ID is correct, that the specified CAN bus is correct, and that the device is powered.";
1078 case -10024: return "The values specified for master are in valid. Make sure the Device ID of master are correct.";
1079 default:
1080 return "Could not find description";
1081 }
1082 }
1083 bool IsError() const { return value < 0; }
1084 bool IsWarning() const { return value > 0; }
1085 bool IsOK() const { return value == OK; }
1086 };
1087
1088 }
1089}
1090
1091#else // This is straight-C, so just create a typedef enum to use
1092
1093/**
1094 * \brief Typedef enum of the StatusCode for use in C projects
1095 */
1096typedef enum _StatusCode_t
1097{
1098 /**
1099 * \brief No Error
1100 */
1101 OK = 0,
1102 /**
1103 * \brief InvalidDeviceSpec
1104 */
1106 /**
1107 * \brief EcuIsNotPresent
1108 */
1110 /**
1111 * \brief CouldNotEnterBl
1112 */
1114 /**
1115 * \brief CouldNotConfirmBl
1116 */
1118 /**
1119 * \brief CouldNotErase
1120 */
1122 /**
1123 * \brief CouldNotSendFlash
1124 */
1126 /**
1127 * \brief CouldNotValidate
1128 */
1130 /**
1131 * \brief CouldNotRunApp
1132 */
1134 /**
1135 * \brief CouldNotReqSetId
1136 */
1138 /**
1139 * \brief CouldNotConfirmId
1140 */
1142 /**
1143 * \brief FlashWasGood
1144 */
1146 /**
1147 * \brief AppTooOld
1148 */
1150 /**
1151 * \brief CouldNotReqSetDesc
1152 */
1154 /**
1155 * \brief CompileSzIsWrong
1156 */
1158 /**
1159 * \brief GadgeteerDeviceNoSetId
1160 */
1162 /**
1163 * \brief InvalidTask
1164 */
1166 /**
1167 * \brief Not Implemented, check latest installer.
1168 */
1170 /**
1171 * \brief NoDevicesOnBus
1172 */
1174 /**
1175 * \brief MoreThanOneFile
1176 */
1178 /**
1179 * \brief NodeIsInvalid
1180 */
1182 /**
1183 * \brief InvalidDeviceDescriptor
1184 */
1186 /**
1187 * \brief CouldNotSendCanFrame
1188 */
1190 /**
1191 * \brief NormalModeMsgNotPresent
1192 */
1194 /**
1195 * \brief This feature is not supported.
1196 */
1198 /**
1199 * \brief NotUpdating
1200 */
1202 /**
1203 * \brief CorruptedPOST
1204 */
1206 /**
1207 * \brief NoConfigs
1208 */
1210 /**
1211 * \brief ConfigFailed
1212 */
1214 /**
1215 * \brief CouldNotReqFactoryDefault
1216 */
1218 /**
1219 * \brief CustomNameNotSupported
1220 */
1222 /**
1223 * \brief ConfigReadWriteMismatch
1224 */
1226 /**
1227 * \brief CouldNotReqSetConfigs
1228 */
1230 /**
1231 * \brief InsufficientSz
1232 */
1234 /**
1235 * \brief InvalidModel
1236 */
1238 /**
1239 * \brief CouldNotReqDevInfo
1240 */
1242 /**
1243 * \brief NoControls
1244 */
1246 /**
1247 * \brief DeviceIsNull
1248 */
1250 /**
1251 * \brief DeviceDidNotRespondToDiagReq
1252 */
1254 /**
1255 * \brief OnlySupportedInTunerX
1256 */
1258 /**
1259 * \brief CanivCliError
1260 */
1262 /**
1263 * \brief InvalidCrfBadHeader
1264 */
1266 /**
1267 * \brief InvalidCrfFileSzInvald
1268 */
1270 /**
1271 * \brief InvalidCrfWrongProduct
1272 */
1274 /**
1275 * \brief InvalidCrfNoSects
1276 */
1278 /**
1279 * \brief InvalidCrfBadSectHeader
1280 */
1282 /**
1283 * \brief InvalidCrfBadSectSize
1284 */
1286 /**
1287 * \brief NoCrfFile
1288 */
1290 /**
1291 * \brief CouldNotFindDynamicId
1292 */
1294 /**
1295 * \brief DidNotGetDhcp
1296 */
1298 /**
1299 * \brief DidNotGetFullDhcp
1300 */
1302 /**
1303 * \brief InvalidLicenseResp
1304 */
1306 /**
1307 * \brief InvalidCanivCache
1308 */
1310 /**
1311 * \brief CannotOpenSerialPort
1312 */
1314 /**
1315 * \brief CannotWriteSerialPort
1316 */
1318 /**
1319 * \brief CannotReadSerialPort
1320 */
1322 /**
1323 * \brief CannotSerialToDevice
1324 */
1326 /**
1327 * \brief NoSerialControlFrameResp
1328 */
1330 /**
1331 * \brief CannotOpenUdpPort
1332 */
1334 /**
1335 * \brief CannotWriteUdpPort
1336 */
1338 /**
1339 * \brief CannotReadUdpPort
1340 */
1342 /**
1343 * \brief CannotUdpToDevice
1344 */
1346 /**
1347 * \brief NoUdpControlFrameResp
1348 */
1350 /**
1351 * \brief TimeoutIso15Response
1352 */
1354 /**
1355 * \brief InvalidJson
1356 */
1358 /**
1359 * \brief AppIsTerminating
1360 */
1362 /**
1363 * \brief CAN Message is stale.
1364 */
1366 /**
1367 * \brief Buffer is full, cannot insert more data.
1368 */
1370 /**
1371 * \brief PulseWidthSensorNotPresent
1372 */
1374 /**
1375 * \brief General Warning Occurred.
1376 */
1378 /**
1379 * \brief Firm Vers could not be retrieved. Use Phoenix Tuner to check ID and
1380 * firmware(CRF) version.
1381 */
1383 /**
1384 * \brief This feature will be supported in a future update.
1385 */
1387 /**
1388 * \brief The control mode is not valid for this function.
1389 */
1391 /**
1392 * \brief This control mode is not supported yet. A future release will
1393 * supported this soon.
1394 */
1396 /**
1397 * \brief Motor Controller must have &gt;= 3.2 firmware for motion profile control
1398 * mode.
1399 */
1401 /**
1402 * \brief Motor Controller must have &gt;= 3.4 firmware for advanced PID0/PID1
1403 * features.
1404 */
1406 /**
1407 * \brief SimDeviceNotFound
1408 */
1410 /**
1411 * \brief SimPhysicsTypeNotSupported
1412 */
1414 /**
1415 * \brief SimDeviceAlreadyExists
1416 */
1418 /**
1419 * \brief Could not transmit CAN Frame.
1420 */
1421 TxFailed = -1001,
1422 /**
1423 * \brief Incorrect argument passed into function/VI.
1424 */
1426 /**
1427 * \brief CAN frame not received/too-stale.
1428 */
1429 RxTimeout = -1003,
1430 /**
1431 * \brief CAN Transmit timed out.
1432 */
1433 TxTimeout = -1004,
1434 /**
1435 * \brief ArbID is incorrect.
1436 */
1438 /**
1439 * \brief CanOverflowed
1440 */
1442 /**
1443 * \brief Sensor Not Present.
1444 */
1446 /**
1447 * \brief Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN
1448 * device firmware(CRF). Then restart your robot application to clear
1449 * this error.
1450 */
1452 /**
1453 * \brief Control Frame Period could not be changed. Most likely it is not
1454 * being transmitted.
1455 */
1457 /**
1458 * \brief BufferFailure
1459 */
1461 /**
1462 * \brief Firmware is legacy non-FRC version. Use Phoenix Tuner to field
1463 * upgrade your CTRE CAN device firmware(CRF). Firmware greater than
1464 * 20.0 required.
1465 */
1467 /**
1468 * \brief General Error Occurred.
1469 */
1471 /**
1472 * \brief No new response to update signal.
1473 */
1475 /**
1476 * \brief NotAllPIDValuesUpdated
1477 */
1479 /**
1480 * \brief GEN_PORT_ERROR
1481 */
1483 /**
1484 * \brief PORT_MODULE_TYPE_MISMATCH
1485 */
1487 /**
1488 * \brief GEN_MODULE_ERROR
1489 */
1491 /**
1492 * \brief MODULE_NOT_INIT_SET_ERROR
1493 */
1495 /**
1496 * \brief MODULE_NOT_INIT_GET_ERROR
1497 */
1499 /**
1500 * \brief Wheel Radius is too small, cannot get distance traveled.
1501 */
1503 /**
1504 * \brief Ticks per revolution is 0, cannot get heading.
1505 */
1507 /**
1508 * \brief Distance between wheels is too small, cannot get heading.
1509 */
1511 /**
1512 * \brief GainsAreNotSet
1513 */
1515 /**
1516 * \brief Use RemoteLimitSwitchSource instead of LimitSwitchSource.
1517 */
1519 /**
1520 * \brief Motor Controller Voltage Compensation should not be used with
1521 * setVoltage(). This causes compensation to happen twice. Disable
1522 * Voltage Compensation by calling enableVoltageCompensation(false) in
1523 * order to use setVoltage().
1524 */
1526 /**
1527 * \brief CANdleAnimSlotOutOfBounds
1528 */
1530 /**
1531 * \brief IncompatibleMode
1532 */
1534 /**
1535 * \brief Handle passed into function is incorrect.
1536 */
1538 /**
1539 * \brief Features requires newer firmware version.
1540 */
1542 /**
1543 * \brief Config factory default features require firmware &gt;=3.10.
1544 */
1546 /**
1547 * \brief Config Motion S Curve Strength features require firmware &gt;=4.16.
1548 */
1550 /**
1551 * \brief Talon FX(Falcon 500) Firmware Too Old. Use Phoenix Tuner to field
1552 * upgrade your CTRE CAN device firmware(CRF) to &gt;=20.3. Then restart
1553 * your robot application to clear this error.
1554 */
1556 /**
1557 * \brief CANdleAnimationsRequireHigherFirm
1558 */
1560 /**
1561 * \brief LibraryCouldNotBeLoaded
1562 */
1564 /**
1565 * \brief MissingRoutineInLibrary
1566 */
1568 /**
1569 * \brief ResourceNotAvailable
1570 */
1572 /**
1573 * \brief Could not find music file specified, try specifying an absolute path.
1574 */
1576 /**
1577 * \brief Music file size is incorrect, could not parse correctly. Ensure
1578 * you're using Tuner to generate file.
1579 */
1581 /**
1582 * \brief Music file version is too new, update Phoenix to utilize this file.
1583 */
1585 /**
1586 * \brief Music file is invalid. Ensure you're using Tuner to generate file.
1587 */
1589 /**
1590 * \brief An invalid orchestra action occurred. Ensure a music file is loaded.
1591 */
1593 /**
1594 * \brief This music file version is too old. Regenerate file using Tuner.
1595 */
1597 /**
1598 * \brief Music interrupted due to one of the instruments being commanded a
1599 * different control mode. Press Play to resume music.
1600 */
1602 /**
1603 * \brief This device doesn't support MusicTone control mode.
1604 */
1606 /**
1607 * \brief kInvalidInterface
1608 */
1610 /**
1611 * \brief kInvalidGuid
1612 */
1614 /**
1615 * \brief kInvalidClass
1616 */
1618 /**
1619 * \brief kInvalidProtocol
1620 */
1622 /**
1623 * \brief kInvalidPath
1624 */
1626 /**
1627 * \brief kGeneralWinUsbError
1628 */
1630 /**
1631 * \brief kFailedSetup
1632 */
1634 /**
1635 * \brief kListenFailed
1636 */
1638 /**
1639 * \brief kSendFailed
1640 */
1642 /**
1643 * \brief kReceiveFailed
1644 */
1646 /**
1647 * \brief kInvalidRespFormat
1648 */
1650 /**
1651 * \brief kWinUsbInitFailed
1652 */
1654 /**
1655 * \brief kWinUsbQueryFailed
1656 */
1658 /**
1659 * \brief kWinUsbGeneralError
1660 */
1662 /**
1663 * \brief kAccessDenied
1664 */
1666 /**
1667 * \brief kFirmwareInvalidResponse
1668 */
1670 /**
1671 * \brief This StatusCode has not been initialized. Make sure the StatusCode is
1672 * getting assigned to the return of a method.
1673 */
1675 /**
1676 * \brief WarningNotInitialized
1677 */
1679 /**
1680 * \brief The timestamp reported by CANivore is at least 10ms older than the
1681 * timestamp reported by the system, indicating it's fallen out of sync.
1682 * This does not impact the data of this message, only the timing.
1683 */
1685 /**
1686 * \brief InvalidNetwork
1687 */
1689 /**
1690 * \brief MultiSignalNotSupported
1691 */
1693 /**
1694 * \brief Could not cast from base value to this particular signal's type
1695 */
1697 /**
1698 * \brief Could not find this value when searching for it
1699 */
1700 NotFound = -10004,
1701 /**
1702 * \brief This is not supported
1703 */
1705 /**
1706 * \brief Could not determine context from this device hash
1707 */
1709 /**
1710 * \brief Model name in license file does not match model name of selected
1711 * device.
1712 */
1714 /**
1715 * \brief Serial Number in license file does not match model name of selected
1716 * device.
1717 */
1719 /**
1720 * \brief Could not find specified file.
1721 */
1722 NoFile = -10009,
1723 /**
1724 * \brief License did not successfully download to Device.
1725 */
1727 /**
1728 * \brief Self Test report does not have any values, is the firmware up to
1729 * date?
1730 */
1732 /**
1733 * \brief Failed to lookup signal properties. This can happen if the fimware
1734 * is too new and supports signals that older APIs do not support.
1735 */
1737 /**
1738 * \brief The current mode of the device is invalid for getting this signal.
1739 */
1741 /**
1742 * \brief Device is not licensed. Cannot get any data from it.
1743 */
1745 /**
1746 * \brief Size is invalid.
1747 */
1748 InvalidSize = -10015,
1749 /**
1750 * \brief InvalidLicenseResponse
1751 */
1753 /**
1754 * \brief InvalidContext
1755 */
1757 /**
1758 * \brief InternalError
1759 */
1761 /**
1762 * \brief TaskIsBusy
1763 */
1764 TaskIsBusy = -10019,
1765 /**
1766 * \brief kDeviceResponseIncorrect
1767 */
1769 /**
1770 * \brief kErrorPollingForDevices
1771 */
1773 /**
1774 * \brief Device firmware could not be retrieved. Check that the device is
1775 * running Pro firmware, that the device ID is correct, that the
1776 * specified CAN bus is correct, and that the device is powered.
1777 */
1779 /**
1780 * \brief Device firmware could not be decoded. Check that the device is
1781 * running Pro firmware, that the device ID is correct, that the
1782 * specified CAN bus is correct, and that the device is powered.
1783 */
1785 /**
1786 * \brief The values specified for master are in valid. Make sure the Device
1787 * ID of master are correct.
1788 */
1791
1792/**
1793 * \brief Get the name of the StatusCode passed
1794 *
1795 * \param value StatusCode to get name of
1796 * \returns const char* Name of StatusCode
1797 */
1799/**
1800 * \brief Get the description of the StatusCode passed
1801 *
1802 * \param value StatusCode to get description of
1803 * \returns const char* Description of StatusCode
1804 */
1806
1807#endif
enum _StatusCode_t StatusCode_t
Typedef enum of the StatusCode for use in C projects.
_StatusCode_t
Typedef enum of the StatusCode for use in C projects.
Definition: StatusCodes.h:1097
@ CouldNotRunApp
CouldNotRunApp.
Definition: StatusCodes.h:1133
@ CouldNotReqSetId
CouldNotReqSetId.
Definition: StatusCodes.h:1137
@ TalonFXFirmwarePreVBatDetect
Talon FX(Falcon 500) Firmware Too Old.
Definition: StatusCodes.h:1555
@ SimDeviceNotFound
SimDeviceNotFound.
Definition: StatusCodes.h:1409
@ InvalidContext
InvalidContext.
Definition: StatusCodes.h:1756
@ CanMessageStale
CAN Message is stale.
Definition: StatusCodes.h:1365
@ NoConfigs
NoConfigs.
Definition: StatusCodes.h:1209
@ IncompatibleMode
IncompatibleMode.
Definition: StatusCodes.h:1533
@ InvalidHandle
Handle passed into function is incorrect.
Definition: StatusCodes.h:1537
@ GainsAreNotSet
GainsAreNotSet.
Definition: StatusCodes.h:1514
@ MusicFileInvalid
Music file is invalid.
Definition: StatusCodes.h:1588
@ TicksPerRevZero
Ticks per revolution is 0, cannot get heading.
Definition: StatusCodes.h:1506
@ NotUpdating
NotUpdating.
Definition: StatusCodes.h:1201
@ MotProfFirmThreshold
Motor Controller must have >= 3.2 firmware for motion profile control mode.
Definition: StatusCodes.h:1400
@ AppIsTerminating
AppIsTerminating.
Definition: StatusCodes.h:1361
@ CannotSerialToDevice
CannotSerialToDevice.
Definition: StatusCodes.h:1325
@ MusicFileNotFound
Could not find music file specified, try specifying an absolute path.
Definition: StatusCodes.h:1575
@ ConfigReadWriteMismatch
ConfigReadWriteMismatch.
Definition: StatusCodes.h:1225
@ kWinUsbQueryFailed
kWinUsbQueryFailed
Definition: StatusCodes.h:1657
@ kAccessDenied
kAccessDenied
Definition: StatusCodes.h:1665
@ kInvalidPath
kInvalidPath
Definition: StatusCodes.h:1625
@ CouldNotReqSetConfigs
CouldNotReqSetConfigs.
Definition: StatusCodes.h:1229
@ WheelRadiusTooSmall
Wheel Radius is too small, cannot get distance traveled.
Definition: StatusCodes.h:1502
@ InvalidJson
InvalidJson.
Definition: StatusCodes.h:1357
@ CannotOpenUdpPort
CannotOpenUdpPort.
Definition: StatusCodes.h:1333
@ OK
No Error.
Definition: StatusCodes.h:1101
@ StatusCodeNotInitialized
This StatusCode has not been initialized.
Definition: StatusCodes.h:1674
@ CANdleAnimSlotOutOfBounds
CANdleAnimSlotOutOfBounds.
Definition: StatusCodes.h:1529
@ NoDevicesOnBus
NoDevicesOnBus.
Definition: StatusCodes.h:1173
@ MoreThanOneFile
MoreThanOneFile.
Definition: StatusCodes.h:1177
@ BufferFull
Buffer is full, cannot insert more data.
Definition: StatusCodes.h:1369
@ GadgeteerDeviceNoSetId
GadgeteerDeviceNoSetId.
Definition: StatusCodes.h:1161
@ DidNotGetFullDhcp
DidNotGetFullDhcp.
Definition: StatusCodes.h:1301
@ CANdleAnimationsRequireHigherFirm
CANdleAnimationsRequireHigherFirm.
Definition: StatusCodes.h:1559
@ InvalidLicenseResponse
InvalidLicenseResponse.
Definition: StatusCodes.h:1752
@ RxTimeout
CAN frame not received/too-stale.
Definition: StatusCodes.h:1429
@ MultiSignalNotSupported
MultiSignalNotSupported.
Definition: StatusCodes.h:1692
@ CannotReadUdpPort
CannotReadUdpPort.
Definition: StatusCodes.h:1341
@ CouldNotDecodeDeviceFirmware
Device firmware could not be decoded.
Definition: StatusCodes.h:1784
@ kErrorPollingForDevices
kErrorPollingForDevices
Definition: StatusCodes.h:1772
@ kDeviceResponseIncorrect
kDeviceResponseIncorrect
Definition: StatusCodes.h:1768
@ GEN_PORT_ERROR
GEN_PORT_ERROR.
Definition: StatusCodes.h:1482
@ TxFailed
Could not transmit CAN Frame.
Definition: StatusCodes.h:1421
@ InvalidCrfFileSzInvald
InvalidCrfFileSzInvald.
Definition: StatusCodes.h:1269
@ MODULE_NOT_INIT_GET_ERROR
MODULE_NOT_INIT_GET_ERROR.
Definition: StatusCodes.h:1498
@ LicenseDownloadFailed
License did not successfully download to Device.
Definition: StatusCodes.h:1726
@ NoControls
NoControls.
Definition: StatusCodes.h:1245
@ InvalidModel
InvalidModel.
Definition: StatusCodes.h:1237
@ kWinUsbInitFailed
kWinUsbInitFailed
Definition: StatusCodes.h:1653
@ ControlModeNotSupportedYet
This control mode is not supported yet.
Definition: StatusCodes.h:1395
@ kInvalidClass
kInvalidClass
Definition: StatusCodes.h:1617
@ CanOverflowed
CanOverflowed.
Definition: StatusCodes.h:1441
@ DidNotGetDhcp
DidNotGetDhcp.
Definition: StatusCodes.h:1297
@ InvalidOrchestraAction
An invalid orchestra action occurred.
Definition: StatusCodes.h:1592
@ kInvalidRespFormat
kInvalidRespFormat
Definition: StatusCodes.h:1649
@ DeviceDidNotRespondToDiagReq
DeviceDidNotRespondToDiagReq.
Definition: StatusCodes.h:1253
@ CannotWriteUdpPort
CannotWriteUdpPort.
Definition: StatusCodes.h:1337
@ NoFile
Could not find specified file.
Definition: StatusCodes.h:1722
@ ControlModeNotValid
The control mode is not valid for this function.
Definition: StatusCodes.h:1390
@ NormalModeMsgNotPresent
NormalModeMsgNotPresent.
Definition: StatusCodes.h:1193
@ UnexpectedArbId
ArbID is incorrect.
Definition: StatusCodes.h:1437
@ DistanceBetweenWheelsTooSmall
Distance between wheels is too small, cannot get heading.
Definition: StatusCodes.h:1510
@ HwTimestampOutOfSync
The timestamp reported by CANivore is at least 10ms older than the timestamp reported by the system,...
Definition: StatusCodes.h:1684
@ MusicFileWrongSize
Music file size is incorrect, could not parse correctly.
Definition: StatusCodes.h:1580
@ CouldNotChangePeriod
Control Frame Period could not be changed.
Definition: StatusCodes.h:1456
@ FeaturesNotAvailableYet
This feature will be supported in a future update.
Definition: StatusCodes.h:1386
@ InvalidLicenseResp
InvalidLicenseResp.
Definition: StatusCodes.h:1305
@ kListenFailed
kListenFailed
Definition: StatusCodes.h:1637
@ MusicFileTooNew
Music file version is too new, update Phoenix to utilize this file.
Definition: StatusCodes.h:1584
@ FirmVersionCouldNotBeRetrieved
Firm Vers could not be retrieved.
Definition: StatusCodes.h:1382
@ CompileSzIsWrong
CompileSzIsWrong.
Definition: StatusCodes.h:1157
@ InvalidTask
InvalidTask.
Definition: StatusCodes.h:1165
@ NotFound
Could not find this value when searching for it.
Definition: StatusCodes.h:1700
@ CouldNotCast
Could not cast from base value to this particular signal's type.
Definition: StatusCodes.h:1696
@ DeviceIsNull
DeviceIsNull.
Definition: StatusCodes.h:1249
@ InvalidCanivCache
InvalidCanivCache.
Definition: StatusCodes.h:1309
@ WrongRemoteLimitSwitchSource
Use RemoteLimitSwitchSource instead of LimitSwitchSource.
Definition: StatusCodes.h:1518
@ InvalidModeToGetSignal
The current mode of the device is invalid for getting this signal.
Definition: StatusCodes.h:1740
@ CouldNotEnterBl
CouldNotEnterBl.
Definition: StatusCodes.h:1113
@ MusicFileTooOld
This music file version is too old.
Definition: StatusCodes.h:1596
@ CannotUdpToDevice
CannotUdpToDevice.
Definition: StatusCodes.h:1345
@ CorruptedPOST
CorruptedPOST.
Definition: StatusCodes.h:1205
@ kInvalidInterface
kInvalidInterface
Definition: StatusCodes.h:1609
@ MissingContext
Could not determine context from this device hash.
Definition: StatusCodes.h:1708
@ CouldNotRetrieveProFirmware
Device firmware could not be retrieved.
Definition: StatusCodes.h:1778
@ InvalidNetwork
InvalidNetwork.
Definition: StatusCodes.h:1688
@ ResourceNotAvailable
ResourceNotAvailable.
Definition: StatusCodes.h:1571
@ InvalidCrfNoSects
InvalidCrfNoSects.
Definition: StatusCodes.h:1277
@ CouldNotReqDevInfo
CouldNotReqDevInfo.
Definition: StatusCodes.h:1241
@ InvalidCrfBadSectHeader
InvalidCrfBadSectHeader.
Definition: StatusCodes.h:1281
@ kFirmwareInvalidResponse
kFirmwareInvalidResponse
Definition: StatusCodes.h:1669
@ CanivCliError
CanivCliError.
Definition: StatusCodes.h:1261
@ GeneralError
General Error Occurred.
Definition: StatusCodes.h:1470
@ kGeneralWinUsbError
kGeneralWinUsbError
Definition: StatusCodes.h:1629
@ SimPhysicsTypeNotSupported
SimPhysicsTypeNotSupported.
Definition: StatusCodes.h:1413
@ CannotWriteSerialPort
CannotWriteSerialPort.
Definition: StatusCodes.h:1317
@ GEN_MODULE_ERROR
GEN_MODULE_ERROR.
Definition: StatusCodes.h:1490
@ SignalLookupFailed
Failed to lookup signal properties.
Definition: StatusCodes.h:1736
@ kWinUsbGeneralError
kWinUsbGeneralError
Definition: StatusCodes.h:1661
@ InvalidSize
Size is invalid.
Definition: StatusCodes.h:1748
@ NoCrfFile
NoCrfFile.
Definition: StatusCodes.h:1289
@ InsufficientSz
InsufficientSz.
Definition: StatusCodes.h:1233
@ AppTooOld
AppTooOld.
Definition: StatusCodes.h:1149
@ GeneralWarning
General Warning Occurred.
Definition: StatusCodes.h:1377
@ UnlicensedDevice
Device is not licensed.
Definition: StatusCodes.h:1744
@ kFailedSetup
kFailedSetup
Definition: StatusCodes.h:1633
@ CouldNotSendCanFrame
CouldNotSendCanFrame.
Definition: StatusCodes.h:1189
@ InvalidCrfWrongProduct
InvalidCrfWrongProduct.
Definition: StatusCodes.h:1273
@ LibraryCouldNotBeLoaded
LibraryCouldNotBeLoaded.
Definition: StatusCodes.h:1563
@ PulseWidthSensorNotPresent
PulseWidthSensorNotPresent.
Definition: StatusCodes.h:1373
@ FeatureRequiresHigherFirm
Features requires newer firmware version.
Definition: StatusCodes.h:1541
@ CouldNotReqSetDesc
CouldNotReqSetDesc.
Definition: StatusCodes.h:1153
@ FirmwareNonFRC
Firmware is legacy non-FRC version.
Definition: StatusCodes.h:1466
@ NoUdpControlFrameResp
NoUdpControlFrameResp.
Definition: StatusCodes.h:1349
@ MusicNotSupported
This device doesn't support MusicTone control mode.
Definition: StatusCodes.h:1605
@ InvalidCrfBadHeader
InvalidCrfBadHeader.
Definition: StatusCodes.h:1265
@ CouldNotSendFlash
CouldNotSendFlash.
Definition: StatusCodes.h:1125
@ kSendFailed
kSendFailed
Definition: StatusCodes.h:1641
@ TxTimeout
CAN Transmit timed out.
Definition: StatusCodes.h:1433
@ InvalidParamValue
Incorrect argument passed into function/VI.
Definition: StatusCodes.h:1425
@ MusicInterrupted
Music interrupted due to one of the instruments being commanded a different control mode.
Definition: StatusCodes.h:1601
@ InvalidCrfBadSectSize
InvalidCrfBadSectSize.
Definition: StatusCodes.h:1285
@ PORT_MODULE_TYPE_MISMATCH
PORT_MODULE_TYPE_MISMATCH.
Definition: StatusCodes.h:1486
@ WarningNotInitialized
WarningNotInitialized.
Definition: StatusCodes.h:1678
@ kReceiveFailed
kReceiveFailed
Definition: StatusCodes.h:1645
@ SensorNotPresent
Sensor Not Present.
Definition: StatusCodes.h:1445
@ SimDeviceAlreadyExists
SimDeviceAlreadyExists.
Definition: StatusCodes.h:1417
@ NotImplemented
Not Implemented, check latest installer.
Definition: StatusCodes.h:1169
@ ConfigMotionSCurveRequiresHigherFirm
Config Motion S Curve Strength features require firmware >=4.16.
Definition: StatusCodes.h:1549
@ CouldNotConfirmBl
CouldNotConfirmBl.
Definition: StatusCodes.h:1117
@ CouldNotFindDynamicId
CouldNotFindDynamicId.
Definition: StatusCodes.h:1293
@ kInvalidProtocol
kInvalidProtocol
Definition: StatusCodes.h:1621
@ TimeoutIso15Response
TimeoutIso15Response.
Definition: StatusCodes.h:1353
@ CannotReadSerialPort
CannotReadSerialPort.
Definition: StatusCodes.h:1321
@ CouldNotConfirmId
CouldNotConfirmId.
Definition: StatusCodes.h:1141
@ FirmwareTooOld
Firmware Too Old.
Definition: StatusCodes.h:1451
@ CouldNotValidate
CouldNotValidate.
Definition: StatusCodes.h:1129
@ InvalidDeviceDescriptor
InvalidDeviceDescriptor.
Definition: StatusCodes.h:1185
@ EcuIsNotPresent
EcuIsNotPresent.
Definition: StatusCodes.h:1109
@ InvalidDeviceSpec
InvalidDeviceSpec.
Definition: StatusCodes.h:1105
@ NotSupported
This is not supported.
Definition: StatusCodes.h:1704
@ NoSerialControlFrameResp
NoSerialControlFrameResp.
Definition: StatusCodes.h:1329
@ ConfigFactoryDefaultRequiresHigherFirm
Config factory default features require firmware >=3.10.
Definition: StatusCodes.h:1545
@ MODULE_NOT_INIT_SET_ERROR
MODULE_NOT_INIT_SET_ERROR.
Definition: StatusCodes.h:1494
@ CouldNotReqFactoryDefault
CouldNotReqFactoryDefault.
Definition: StatusCodes.h:1217
@ SelfTestIsEmpty
Self Test report does not have any values, is the firmware up to date?
Definition: StatusCodes.h:1731
@ ConfigFailed
ConfigFailed.
Definition: StatusCodes.h:1213
@ TaskIsBusy
TaskIsBusy.
Definition: StatusCodes.h:1764
@ DoubleVoltageCompensatingWPI
Motor Controller Voltage Compensation should not be used with setVoltage().
Definition: StatusCodes.h:1525
@ SigNotUpdated
No new response to update signal.
Definition: StatusCodes.h:1474
@ NodeIsInvalid
NodeIsInvalid.
Definition: StatusCodes.h:1181
@ FeatureNotSupported
This feature is not supported.
Definition: StatusCodes.h:1197
@ InvalidIDToFollow
The values specified for master are in valid.
Definition: StatusCodes.h:1789
@ CustomNameNotSupported
CustomNameNotSupported.
Definition: StatusCodes.h:1221
@ OnlySupportedInTunerX
OnlySupportedInTunerX.
Definition: StatusCodes.h:1257
@ FlashWasGood
FlashWasGood.
Definition: StatusCodes.h:1145
@ InternalError
InternalError.
Definition: StatusCodes.h:1760
@ ModelMismatch
Model name in license file does not match model name of selected device.
Definition: StatusCodes.h:1713
@ CouldNotErase
CouldNotErase.
Definition: StatusCodes.h:1121
@ NotAllPIDValuesUpdated
NotAllPIDValuesUpdated.
Definition: StatusCodes.h:1478
@ MotProfFirmThreshold2
Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features.
Definition: StatusCodes.h:1405
@ CannotOpenSerialPort
CannotOpenSerialPort.
Definition: StatusCodes.h:1313
@ BufferFailure
BufferFailure.
Definition: StatusCodes.h:1460
@ kInvalidGuid
kInvalidGuid
Definition: StatusCodes.h:1613
@ MissingRoutineInLibrary
MissingRoutineInLibrary.
Definition: StatusCodes.h:1567
@ SerialMismatch
Serial Number in license file does not match model name of selected device.
Definition: StatusCodes.h:1718
const char * GetStatusCodeName(StatusCode_t value)
Get the name of the StatusCode passed.
const char * GetStatusCodeDescription(StatusCode_t value)
Get the description of the StatusCode passed.
Definition: string_util.hpp:14