Table of Contents

Enum StatusCode

Namespace
CTRE.Phoenix6
Assembly
Phoenix6.Hardware.dll

Status codes reported by APIs, including OK, warnings, and errors.

public enum StatusCode
Extension Methods

Fields

ApiTooOld = -10030

This API version is too old for the firmware on the device. Either upgrade the API to a newer version or downgrade the device firmware to an older version for correct behavior.

AppIsTerminating = -800

The user application is shutting down.

AppTooOld = -112

Device firmware application is too old.

BufferFailure = -1010

BufferFailure

BufferFull = 1006

Buffer is full, cannot insert more data.

CANdleAnimSlotOutOfBounds = -1506

CANdleAnimSlotOutOfBounds

CANdleAnimationsRequireHigherFirm = -1705

CANdleAnimationsRequireHigherFirm

CanMessageStale = 1000

CAN message is stale, data is valid but old. Check the CAN bus wiring, CAN bus utilization, and power to the device.

CanOverflowed = -1006

CanOverflowed

CanivCliError = -145

Command-line issue with caniv.

CannotLicenseWhileEnabled = -10033

Device cannot be licensed while it is control enabled. Disable and neutral the device to apply the licenses.

CannotOpenSerialPort = -500

CannotOpenSerialPort

CannotOpenUdpPort = -600

CannotOpenUdpPort

CannotReadSerialPort = -502

CannotReadSerialPort

CannotReadUdpPort = -602

CannotReadUdpPort

CannotSerialToDevice = -503

CannotSerialToDevice

CannotStepWhileUnpaused = -10038

The simulation timing cannot be advanced by a time step while unpaused. Pause the simulator before advancing time.

CannotUdpToDevice = -603

CannotUdpToDevice

CannotWriteSerialPort = -501

CannotWriteSerialPort

CannotWriteUdpPort = -601

CannotWriteUdpPort

CompileSzIsWrong = -114

CompileSzIsWrong

ConfigFactoryDefaultRequiresHigherFirm = -1702

Config factory default features require firmware >=3.10.

ConfigFailed = -129

ConfigFailed

ConfigMotionSCurveRequiresHigherFirm = -1703

Config Motion S Curve Strength features require firmware >=4.16.

ConfigReadWriteMismatch = -132

The configs read from the device do not match the configs that were written.

ControlModeNotSupportedYet = 1106

This control mode is not supported yet. A future release will supported this soon.

ControlModeNotValid = 1105

The control mode is not valid for this function.

CorruptedPOST = -127

CorruptedPOST

CouldNotCast = -10003

Could not cast from base value to this particular signal's type

CouldNotChangePeriod = -1009

Control Frame Period could not be changed. Most likely it is not being transmitted.

CouldNotConfirmBl = -104

Could not confirm the device has entered the bootloader.

CouldNotConfirmId = -110

Could not verify that the changed ID took effect.

CouldNotDecodeDeviceFirmware = -10022

Device firmware could not be decoded. Check that the device is running v6 firmware, the device ID is correct, the specified CAN bus is correct, and the device is powered.

CouldNotEnterBl = -103

Could not put the device into bootloader mode.

CouldNotErase = -105

Could not erase flash.

CouldNotFindDynamicId = -300

CouldNotFindDynamicId

CouldNotReqDevInfo = -140

CouldNotReqDevInfo

CouldNotReqFactoryDefault = -130

Unable to factory default this device.

CouldNotReqSetConfigs = -133

Could not apply the device configs.

CouldNotReqSetDesc = -113

Unable to set name to this device.

CouldNotReqSetId = -109

Unable to set ID to this device.

CouldNotRetrieveV6Firmware = -10021

Device firmware could not be retrieved. Check that the device is running v6 firmware, the device ID is correct, the specified CAN bus is correct, and the device is powered.

CouldNotRunApp = -108

Could not run the device firmware application.

CouldNotSendCanFrame = -123

CouldNotSendCanFrame

CouldNotSendFlash = -106

Could not field upgrade the device.

CouldNotSerialize = -10026

The data frame could not be serialized for transmit.

CouldNotValidate = -107

Bootloader could not verify integrity of the flashed application.

CustomNameNotSupported = -131

CustomNameNotSupported

DeviceDidNotRespondToDiagReq = -143

DeviceDidNotRespondToDiagReq

DeviceIsNull = -142

DeviceIsNull

DidNotGetDhcp = -301

DidNotGetDhcp

DidNotGetFullDhcp = -302

DidNotGetFullDhcp

DirectoryMissing = -10029

Could not find specified directory.

DistanceBetweenWheelsTooSmall = -1502

Distance between wheels is too small, cannot get heading.

DoubleVoltageCompensatingWPI = -1505

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().

EcuIsNotPresent = -102

Device is not present. Verify the device is connected and powered, and that the CAN bus is terminated.

FeatureNotSupported = -125

This feature is not supported.

FeatureRequiresHigherFirm = -1700

Features requires newer firmware version.

FeaturesNotAvailableYet = 1104

This feature will be supported in a future update.

FirmVersionCouldNotBeRetrieved = 1103

Firm Vers could not be retrieved. Use Phoenix Tuner X to check ID and firmware(CRF) version.

FirmwareNonFRC = -1011

Firmware is legacy non-FRC version. Use Phoenix Tuner X to field upgrade your CTRE CAN device firmware(CRF). Firmware greater than 20.0 required.

FirmwareTooNew = -10025

Firmware Too New. Use Phoenix Tuner X to field upgrade your CTRE CAN device firmware(CRF) to a compatible version. Then restart your robot application to clear this error.

FirmwareTooOld = -1008

Firmware Too Old. Use Phoenix Tuner X to field upgrade your CTRE CAN device firmware(CRF). Then restart your robot application to clear this error.

FirmwareVersNotCompatible = -10028

Firmware version is not compatible with this version of Phoenix. Make sure your firmware and API major versions match.

FlashWasGood = -111

Device field upgrade was successful.

FrequentConfigCalls = 10002

Do not apply or refresh configs periodically, as configs are blocking.

GEN_MODULE_ERROR = -1400

GEN_MODULE_ERROR

GEN_PORT_ERROR = -1300

GEN_PORT_ERROR

GadgeteerDeviceNoSetId = -115

Cannot set the ID of a gadgeteer device.

GainsAreNotSet = -1503

GainsAreNotSet

GeneralError = -1100

General Error Occurred.

GeneralWarning = 1100

General Warning Occurred.

HootLogTooNew = -10036

The given hoot log requires a newer version of Phoenix API.

HootLogTooOld = -10035

The given hoot log requires an older version of Phoenix API.

HwTimestampOutOfSync = 10001

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.

IncompatibleMode = -1600

IncompatibleMode

InsufficientSz = -134

InsufficientSz

InternalError = -10018

InternalError

InvalidCanivCache = -351

InvalidCanivCache

InvalidContext = -10017

InvalidContext

InvalidCrfBadHeader = -200

InvalidCrfBadHeader

InvalidCrfBadSectHeader = -204

InvalidCrfBadSectHeader

InvalidCrfBadSectSize = -205

InvalidCrfBadSectSize

InvalidCrfFileSzInvald = -201

InvalidCrfFileSzInvald

InvalidCrfNoSects = -203

InvalidCrfNoSects

InvalidCrfWrongProduct = -202

Specified CRF is for the wrong product.

InvalidDeviceDescriptor = -121

InvalidDeviceDescriptor

InvalidDeviceModel = -10041

The provided model was not a valid device type.

InvalidDeviceSpec = -101

InvalidDeviceSpec

InvalidFile = -10034

Could not open or read the given file.

InvalidHandle = -1601

Handle passed into function is incorrect.

InvalidIDToFollow = -10023

The values specified for master are in valid. Make sure the Device ID of master are correct.

InvalidJson = -700

InvalidJson

InvalidLicenseResp = -350

InvalidLicenseResp

InvalidLicenseResponse = -10016

InvalidLicenseResponse

InvalidModeToGetSignal = -10013

The current mode of the device is invalid for getting this signal.

InvalidModel = -135

This feature is not supported for this device model.

InvalidNetwork = -10001

The given network/CAN bus is invalid. Verify that any status signals provided are on the same network and that the network is present.

InvalidOrchestraAction = -1904

An invalid orchestra action occurred. Ensure a music file is loaded.

InvalidParamValue = -1002

An invalid argument was passed into the function/VI, such as a null pointer.

InvalidSize = -10015

Size is invalid.

InvalidTask = -116

This diagnostic action is not supported.

LibraryCouldNotBeLoaded = -1800

LibraryCouldNotBeLoaded

LicenseDownloadFailed = -10010

License did not successfully download to Device.

LoggerNotRunning = -10031

The signal logger is not running. Start the signal logger before writing any signals.

MODULE_NOT_INIT_GET_ERROR = -1402

MODULE_NOT_INIT_GET_ERROR

MODULE_NOT_INIT_SET_ERROR = -1401

MODULE_NOT_INIT_SET_ERROR

MechanismFaulted = -10027

The mechanism is disabled due to a fault in one of the devices.

MissingContext = -10006

Could not determine context from this device hash

MissingRoutineInLibrary = -1801

MissingRoutineInLibrary

MissingSchema = -10043

The schema for the logged user signal is invalid or missing. Ensure that the schema is written before the user signal.

ModelMismatch = -10007

Model name in license file does not match model name of selected device.

MoreThanOneFile = -119

MoreThanOneFile

MotProfFirmThreshold = 1109

Motor Controller must have >= 3.2 firmware for motion profile control mode.

MotProfFirmThreshold2 = 1110

Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features.

MultiSignalNotSupported = -10002

The CAN bus does not support multi-signal synchronization.

MultipleReplayNotSupported = -10039

Hoot replay does not support replaying multiple files. Ensure that only one file is loaded at a time.

MusicFileInvalid = -1903

Music file is invalid. Ensure you're using Tuner to generate file.

MusicFileNotFound = -1900

Could not find music file specified, try specifying an absolute path.

MusicFileTooNew = -1902

Music file version is too new, update Phoenix to utilize this file.

MusicFileTooOld = -1905

This music file version is too old. Regenerate file using Tuner.

MusicFileWrongSize = -1901

Music file size is incorrect, could not parse correctly. Ensure you're using Tuner to generate file.

MusicInterrupted = -1906

Music interrupted due to one of the instruments being commanded a different control mode. Press Play to resume music.

MusicNotSupported = -1907

This device doesn't support MusicTone control mode.

NoConfigs = -128

This device did not report any available configs. Verify firmware and diagnostics are up-to-date.

NoControls = -141

This device does not support new controls.

NoCrfFile = -206

Specified CRF file could not be found.

NoDevicesOnBus = -118

NoDevicesOnBus

NoFile = -10009

Could not find specified file.

NoSerialControlFrameResp = -504

NoSerialControlFrameResp

NoUdpControlFrameResp = -604

NoUdpControlFrameResp

NodeIsInvalid = -120

Specified device was not found. Verify the device is connected and powered, and that the CAN bus is terminated.

NormalModeMsgNotPresent = -124

NormalModeMsgNotPresent

NotAllPIDValuesUpdated = -1201

NotAllPIDValuesUpdated

NotFound = -10004

Could not find this value when searching for it

NotImplemented = -117

Not Implemented, check latest installer.

NotSupported = -10005

This is not supported

NotUpdating = -126

The diagnostic server is not field upgrading any devices.

OK = 0

No Error

OnlySupportedInTunerX = -144

This feature requires Tuner X.

PORT_MODULE_TYPE_MISMATCH = -1301

PORT_MODULE_TYPE_MISMATCH

PulseWidthSensorNotPresent = 1010

PulseWidthSensorNotPresent

ResourceNotAvailable = -1802

ResourceNotAvailable

RxTimeout = -1003

CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.

SelfTestIsEmpty = -10011

Self Test report does not have any values, is the firmware up to date?

SensorNotPresent = -1007

Sensor Not Present.

SerialMismatch = -10008

Serial Number in license file does not match model name of selected device.

SigNotUpdated = -1200

No new response to update signal.

SignalLookupFailed = -10012

Failed to lookup signal properties. This can happen if the fimware is too new and supports signals that older APIs do not support.

SignalNotSupportedOrMissing = -10042

The requested signal is missing or not supported. Verify that the device firmware is up-to-date.

SimDeviceAlreadyExists = 1202

SimDeviceAlreadyExists

SimDeviceNotFound = 1200

SimDeviceNotFound

SimPhysicsTypeNotSupported = 1201

SimPhysicsTypeNotSupported

StatusCodeNotInitialized = -10000

This StatusCode has not been initialized. Make sure the StatusCode is getting assigned to the return of a method.

TalonFXFirmwarePreVBatDetect = -1704

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.

TaskIsBusy = -100

Diagnostic Server is busy with another command.

TicksPerRevZero = -1501

Ticks per revolution is 0, cannot get heading.

TimeoutCannotBeZero = -10032

Blocking operations, such as configs, cannot have a timeout of 0. Pass in a non-zero timeout (typically 0.050+ seconds) for normal operation.

TimeoutIso15Response = -605

TimeoutIso15Response

TxFailed = -1001

Could not transmit CAN Frame.

TxTimeout = -1004

CAN Transmit timed out.

UnexpectedArbId = -1005

ArbID is incorrect.

UnlicensedDevice = -10014

Device is not licensed. Cannot get any data from it.

UnlicensedHootLog = -10037

Hoot log is not licensed. Cannot get any data from it.

UserSignalLimitExceeded = -10040

The maximum number of loggable user signals has been exceeded. Additional user signals will not be logged.

UsingProFeatureOnUnlicensedDevice = -10024

Using a Pro only feature on an unlicensed device. The device may not behave as expected if it continues to operate while unlicensed.

WarningNotInitialized = 10000

WarningNotInitialized

WheelRadiusTooSmall = -1500

Wheel Radius is too small, cannot get distance traveled.

WrongRemoteLimitSwitchSource = -1504

Use RemoteLimitSwitchSource instead of LimitSwitchSource.

kAccessDenied = -2014

kAccessDenied

kDeviceResponseIncorrect = -10019

kDeviceResponseIncorrect

kErrorPollingForDevices = -10020

kErrorPollingForDevices

kFailedSetup = -2006

kFailedSetup

kFirmwareInvalidResponse = -2015

kFirmwareInvalidResponse

kGeneralWinUsbError = -2005

kGeneralWinUsbError

kInvalidClass = -2002

kInvalidClass

kInvalidGuid = -2001

kInvalidGuid

kInvalidInterface = -2000

kInvalidInterface

kInvalidPath = -2004

kInvalidPath

kInvalidProtocol = -2003

kInvalidProtocol

kInvalidRespFormat = -2010

kInvalidRespFormat

kListenFailed = -2007

kListenFailed

kReceiveFailed = -2009

kReceiveFailed

kSendFailed = -2008

kSendFailed

kWinUsbGeneralError = -2013

kWinUsbGeneralError

kWinUsbInitFailed = -2011

kWinUsbInitFailed

kWinUsbQueryFailed = -2012

kWinUsbQueryFailed