WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Errors.hpp
1 #pragma once
2 
3 #define CTR_RxTimeout_MESSAGE "CTRE CAN Recieve Timeout"
4 #define CTR_TxTimeout_MESSAGE "CTRE CAN Transmit Timeout"
5 #define CTR_InvalidParamValue_MESSAGE "CTRE CAN Invalid Parameter"
6 #define CTR_UnexpectedArbId_MESSAGE "CTRE Unexpected Arbitration ID (CAN Node ID)"
7 #define CTR_TxFailed_MESSAGE "CTRE CAN Transmit Error"
8 #define CTR_SigNotUpdated_MESSAGE "CTRE CAN Signal Not Updated"
9 
10 #define NiFpga_Status_FifoTimeout_MESSAGE "NIFPGA: FIFO timeout error"
11 #define NiFpga_Status_TransferAborted_MESSAGE "NIFPGA: Transfer aborted error"
12 #define NiFpga_Status_MemoryFull_MESSAGE "NIFPGA: Memory Allocation failed, memory full"
13 #define NiFpga_Status_SoftwareFault_MESSAGE "NIFPGA: Unexepected software error"
14 #define NiFpga_Status_InvalidParameter_MESSAGE "NIFPGA: Invalid Parameter"
15 #define NiFpga_Status_ResourceNotFound_MESSAGE "NIFPGA: Resource not found"
16 #define NiFpga_Status_ResourceNotInitialized_MESSAGE "NIFPGA: Resource not initialized"
17 #define NiFpga_Status_HardwareFault_MESSAGE "NIFPGA: Hardware Fault"
18 #define NiFpga_Status_IrqTimeout_MESSAGE "NIFPGA: Interrupt timeout"
19 
20 #define ERR_CANSessionMux_InvalidBuffer_MESSAGE "CAN: Invalid Buffer"
21 #define ERR_CANSessionMux_MessageNotFound_MESSAGE "CAN: Message not found"
22 #define WARN_CANSessionMux_NoToken_MESSAGE "CAN: No token"
23 #define ERR_CANSessionMux_NotAllowed_MESSAGE "CAN: Not allowed"
24 #define ERR_CANSessionMux_NotInitialized_MESSAGE "CAN: Not initialized"
25 
26 #define SAMPLE_RATE_TOO_HIGH 1001
27 #define SAMPLE_RATE_TOO_HIGH_MESSAGE "HAL: Analog module sample rate is too high"
28 #define VOLTAGE_OUT_OF_RANGE 1002
29 #define VOLTAGE_OUT_OF_RANGE_MESSAGE "HAL: Voltage to convert to raw value is out of range [0; 5]"
30 #define LOOP_TIMING_ERROR 1004
31 #define LOOP_TIMING_ERROR_MESSAGE "HAL: Digital module loop timing is not the expected value"
32 #define SPI_WRITE_NO_MOSI 1012
33 #define SPI_WRITE_NO_MOSI_MESSAGE "HAL: Cannot write to SPI port with no MOSI output"
34 #define SPI_READ_NO_MISO 1013
35 #define SPI_READ_NO_MISO_MESSAGE "HAL: Cannot read from SPI port with no MISO input"
36 #define SPI_READ_NO_DATA 1014
37 #define SPI_READ_NO_DATA_MESSAGE "HAL: No data available to read from SPI"
38 #define INCOMPATIBLE_STATE 1015
39 #define INCOMPATIBLE_STATE_MESSAGE "HAL: Incompatible State: The operation cannot be completed"
40 #define NO_AVAILABLE_RESOURCES -1004
41 #define NO_AVAILABLE_RESOURCES_MESSAGE "HAL: No available resources to allocate"
42 #define NULL_PARAMETER -1005
43 #define NULL_PARAMETER_MESSAGE "HAL: A pointer parameter to a method is NULL"
44 #define ANALOG_TRIGGER_LIMIT_ORDER_ERROR -1010
45 #define ANALOG_TRIGGER_LIMIT_ORDER_ERROR_MESSAGE "HAL: AnalogTrigger limits error. Lower limit > Upper Limit"
46 #define ANALOG_TRIGGER_PULSE_OUTPUT_ERROR -1011
47 #define ANALOG_TRIGGER_PULSE_OUTPUT_ERROR_MESSAGE "HAL: Attempted to read AnalogTrigger pulse output."
48 #define PARAMETER_OUT_OF_RANGE -1028
49 #define PARAMETER_OUT_OF_RANGE_MESSAGE "HAL: A parameter is out of range."
50 #define RESOURCE_IS_ALLOCATED -1029
51 #define RESOURCE_IS_ALLOCATED_MESSAGE "HAL: Resource already allocated"
52 
53 #define VI_ERROR_SYSTEM_ERROR_MESSAGE "HAL - VISA: System Error";
54 #define VI_ERROR_INV_OBJECT_MESSAGE "HAL - VISA: Invalid Object"
55 #define VI_ERROR_RSRC_LOCKED_MESSAGE "HAL - VISA: Resource Locked"
56 #define VI_ERROR_RSRC_NFOUND_MESSAGE "HAL - VISA: Resource Not Found"
57 #define VI_ERROR_INV_RSRC_NAME_MESSAGE "HAL - VISA: Invalid Resource Name"
58 #define VI_ERROR_QUEUE_OVERFLOW_MESSAGE "HAL - VISA: Queue Overflow"
59 #define VI_ERROR_IO_MESSAGE "HAL - VISA: General IO Error"
60 #define VI_ERROR_ASRL_PARITY_MESSAGE "HAL - VISA: Parity Error"
61 #define VI_ERROR_ASRL_FRAMING_MESSAGE "HAL - VISA: Framing Error"
62 #define VI_ERROR_ASRL_OVERRUN_MESSAGE "HAL - VISA: Buffer Overrun Error"
63 #define VI_ERROR_RSRC_BUSY_MESSAGE "HAL - VISA: Resource Busy"
64 #define VI_ERROR_INV_PARAMETER_MESSAGE "HAL - VISA: Invalid Parameter"