WPILibC++ 2023.4.3-108-ge5452e3
FRCUsageReporting.h File Reference
#include <stdint.h>

Go to the source code of this file.

Namespaces

namespace  HALUsageReporting
 

Enumerations

enum  HALUsageReporting::tResourceType : int32_t {
  HALUsageReporting::kResourceType_Controller = 0 , HALUsageReporting::kResourceType_Module = 1 , HALUsageReporting::kResourceType_Language = 2 , HALUsageReporting::kResourceType_CANPlugin = 3 ,
  HALUsageReporting::kResourceType_Accelerometer = 4 , HALUsageReporting::kResourceType_ADXL345 = 5 , HALUsageReporting::kResourceType_AnalogChannel = 6 , HALUsageReporting::kResourceType_AnalogTrigger = 7 ,
  HALUsageReporting::kResourceType_AnalogTriggerOutput = 8 , HALUsageReporting::kResourceType_CANJaguar = 9 , HALUsageReporting::kResourceType_Compressor = 10 , HALUsageReporting::kResourceType_Counter = 11 ,
  HALUsageReporting::kResourceType_Dashboard = 12 , HALUsageReporting::kResourceType_DigitalInput = 13 , HALUsageReporting::kResourceType_DigitalOutput = 14 , HALUsageReporting::kResourceType_DriverStationCIO = 15 ,
  HALUsageReporting::kResourceType_DriverStationEIO = 16 , HALUsageReporting::kResourceType_DriverStationLCD = 17 , HALUsageReporting::kResourceType_Encoder = 18 , HALUsageReporting::kResourceType_GearTooth = 19 ,
  HALUsageReporting::kResourceType_Gyro = 20 , HALUsageReporting::kResourceType_I2C = 21 , HALUsageReporting::kResourceType_Framework = 22 , HALUsageReporting::kResourceType_Jaguar = 23 ,
  HALUsageReporting::kResourceType_Joystick = 24 , HALUsageReporting::kResourceType_Kinect = 25 , HALUsageReporting::kResourceType_KinectStick = 26 , HALUsageReporting::kResourceType_PIDController = 27 ,
  HALUsageReporting::kResourceType_Preferences = 28 , HALUsageReporting::kResourceType_PWM = 29 , HALUsageReporting::kResourceType_Relay = 30 , HALUsageReporting::kResourceType_RobotDrive = 31 ,
  HALUsageReporting::kResourceType_SerialPort = 32 , HALUsageReporting::kResourceType_Servo = 33 , HALUsageReporting::kResourceType_Solenoid = 34 , HALUsageReporting::kResourceType_SPI = 35 ,
  HALUsageReporting::kResourceType_Task = 36 , HALUsageReporting::kResourceType_Ultrasonic = 37 , HALUsageReporting::kResourceType_Victor = 38 , HALUsageReporting::kResourceType_Button = 39 ,
  HALUsageReporting::kResourceType_Command = 40 , HALUsageReporting::kResourceType_AxisCamera = 41 , HALUsageReporting::kResourceType_PCVideoServer = 42 , HALUsageReporting::kResourceType_SmartDashboard = 43 ,
  HALUsageReporting::kResourceType_Talon = 44 , HALUsageReporting::kResourceType_HiTechnicColorSensor = 45 , HALUsageReporting::kResourceType_HiTechnicAccel = 46 , HALUsageReporting::kResourceType_HiTechnicCompass = 47 ,
  HALUsageReporting::kResourceType_SRF08 = 48 , HALUsageReporting::kResourceType_AnalogOutput = 49 , HALUsageReporting::kResourceType_VictorSP = 50 , HALUsageReporting::kResourceType_PWMTalonSRX = 51 ,
  HALUsageReporting::kResourceType_CANTalonSRX = 52 , HALUsageReporting::kResourceType_ADXL362 = 53 , HALUsageReporting::kResourceType_ADXRS450 = 54 , HALUsageReporting::kResourceType_RevSPARK = 55 ,
  HALUsageReporting::kResourceType_MindsensorsSD540 = 56 , HALUsageReporting::kResourceType_DigitalGlitchFilter = 57 , HALUsageReporting::kResourceType_ADIS16448 = 58 , HALUsageReporting::kResourceType_PDP = 59 ,
  HALUsageReporting::kResourceType_PCM = 60 , HALUsageReporting::kResourceType_PigeonIMU = 61 , HALUsageReporting::kResourceType_NidecBrushless = 62 , HALUsageReporting::kResourceType_CANifier = 63 ,
  HALUsageReporting::kResourceType_TalonFX = 64 , HALUsageReporting::kResourceType_CTRE_future1 = 65 , HALUsageReporting::kResourceType_CTRE_future2 = 66 , HALUsageReporting::kResourceType_CTRE_future3 = 67 ,
  HALUsageReporting::kResourceType_CTRE_future4 = 68 , HALUsageReporting::kResourceType_CTRE_future5 = 69 , HALUsageReporting::kResourceType_CTRE_future6 = 70 , HALUsageReporting::kResourceType_LinearFilter = 71 ,
  HALUsageReporting::kResourceType_XboxController = 72 , HALUsageReporting::kResourceType_UsbCamera = 73 , HALUsageReporting::kResourceType_NavX = 74 , HALUsageReporting::kResourceType_Pixy = 75 ,
  HALUsageReporting::kResourceType_Pixy2 = 76 , HALUsageReporting::kResourceType_ScanseSweep = 77 , HALUsageReporting::kResourceType_Shuffleboard = 78 , HALUsageReporting::kResourceType_CAN = 79 ,
  HALUsageReporting::kResourceType_DigilentDMC60 = 80 , HALUsageReporting::kResourceType_PWMVictorSPX = 81 , HALUsageReporting::kResourceType_RevSparkMaxPWM = 82 , HALUsageReporting::kResourceType_RevSparkMaxCAN = 83 ,
  HALUsageReporting::kResourceType_ADIS16470 = 84 , HALUsageReporting::kResourceType_PIDController2 = 85 , HALUsageReporting::kResourceType_ProfiledPIDController = 86 , HALUsageReporting::kResourceType_Kinematics = 87 ,
  HALUsageReporting::kResourceType_Odometry = 88 , HALUsageReporting::kResourceType_Units = 89 , HALUsageReporting::kResourceType_TrapezoidProfile = 90 , HALUsageReporting::kResourceType_DutyCycle = 91 ,
  HALUsageReporting::kResourceType_AddressableLEDs = 92 , HALUsageReporting::kResourceType_FusionVenom = 93 , HALUsageReporting::kResourceType_PS4Controller = 94
}
 
enum  HALUsageReporting::tInstances : int32_t {
  HALUsageReporting::kLanguage_LabVIEW = 1 , HALUsageReporting::kLanguage_CPlusPlus = 2 , HALUsageReporting::kLanguage_Java = 3 , HALUsageReporting::kLanguage_Python = 4 ,
  HALUsageReporting::kLanguage_DotNet = 5 , HALUsageReporting::kLanguage_Kotlin = 6 , HALUsageReporting::kCANPlugin_BlackJagBridge = 1 , HALUsageReporting::kCANPlugin_2CAN = 2 ,
  HALUsageReporting::kFramework_Iterative = 1 , HALUsageReporting::kFramework_Simple = 2 , HALUsageReporting::kFramework_CommandControl = 3 , HALUsageReporting::kFramework_Timed = 4 ,
  HALUsageReporting::kFramework_ROS = 5 , HALUsageReporting::kFramework_RobotBuilder = 6 , HALUsageReporting::kRobotDrive_ArcadeStandard = 1 , HALUsageReporting::kRobotDrive_ArcadeButtonSpin = 2 ,
  HALUsageReporting::kRobotDrive_ArcadeRatioCurve = 3 , HALUsageReporting::kRobotDrive_Tank = 4 , HALUsageReporting::kRobotDrive_MecanumPolar = 5 , HALUsageReporting::kRobotDrive_MecanumCartesian = 6 ,
  HALUsageReporting::kRobotDrive2_DifferentialArcade = 7 , HALUsageReporting::kRobotDrive2_DifferentialTank = 8 , HALUsageReporting::kRobotDrive2_DifferentialCurvature = 9 , HALUsageReporting::kRobotDrive2_MecanumCartesian = 10 ,
  HALUsageReporting::kRobotDrive2_MecanumPolar = 11 , HALUsageReporting::kRobotDrive2_KilloughCartesian = 12 , HALUsageReporting::kRobotDrive2_KilloughPolar = 13 , HALUsageReporting::kDriverStationCIO_Analog = 1 ,
  HALUsageReporting::kDriverStationCIO_DigitalIn = 2 , HALUsageReporting::kDriverStationCIO_DigitalOut = 3 , HALUsageReporting::kDriverStationEIO_Acceleration = 1 , HALUsageReporting::kDriverStationEIO_AnalogIn = 2 ,
  HALUsageReporting::kDriverStationEIO_AnalogOut = 3 , HALUsageReporting::kDriverStationEIO_Button = 4 , HALUsageReporting::kDriverStationEIO_LED = 5 , HALUsageReporting::kDriverStationEIO_DigitalIn = 6 ,
  HALUsageReporting::kDriverStationEIO_DigitalOut = 7 , HALUsageReporting::kDriverStationEIO_FixedDigitalOut = 8 , HALUsageReporting::kDriverStationEIO_PWM = 9 , HALUsageReporting::kDriverStationEIO_Encoder = 10 ,
  HALUsageReporting::kDriverStationEIO_TouchSlider = 11 , HALUsageReporting::kADXL345_SPI = 1 , HALUsageReporting::kADXL345_I2C = 2 , HALUsageReporting::kCommand_Scheduler = 1 ,
  HALUsageReporting::kCommand2_Scheduler = 2 , HALUsageReporting::kSmartDashboard_Instance = 1 , HALUsageReporting::kKinematics_DifferentialDrive = 1 , HALUsageReporting::kKinematics_MecanumDrive = 2 ,
  HALUsageReporting::kKinematics_SwerveDrive = 3 , HALUsageReporting::kOdometry_DifferentialDrive = 1 , HALUsageReporting::kOdometry_MecanumDrive = 2 , HALUsageReporting::kOdometry_SwerveDrive = 3
}
 

Functions

int64_t HAL_Report (int32_t resource, int32_t instanceNumber, int32_t context=0, const char *feature=nullptr)
 Reports a hardware usage to the HAL. More...
 

Function Documentation

◆ HAL_Report()

int64_t HAL_Report ( int32_t  resource,
int32_t  instanceNumber,
int32_t  context = 0,
const char *  feature = nullptr 
)

Reports a hardware usage to the HAL.

Parameters
resourcethe used resource
instanceNumberthe instance of the resource
contexta user specified context index
featurea user specified feature string
Returns
the index of the added value in NetComm