WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
UsageReporting.h File Reference
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Namespaces

namespace  nUsageReporting
 

Macros

#define EXPORT_FUNC
 
#define kUsageReporting_version   1
 

Enumerations

enum  nUsageReporting::tResourceType {
  nUsageReporting::kResourceType_Controller = 0 , nUsageReporting::kResourceType_Module = 1 , nUsageReporting::kResourceType_Language = 2 , nUsageReporting::kResourceType_CANPlugin = 3 ,
  nUsageReporting::kResourceType_Accelerometer = 4 , nUsageReporting::kResourceType_ADXL345 = 5 , nUsageReporting::kResourceType_AnalogChannel = 6 , nUsageReporting::kResourceType_AnalogTrigger = 7 ,
  nUsageReporting::kResourceType_AnalogTriggerOutput = 8 , nUsageReporting::kResourceType_CANJaguar = 9 , nUsageReporting::kResourceType_Compressor = 10 , nUsageReporting::kResourceType_Counter = 11 ,
  nUsageReporting::kResourceType_Dashboard = 12 , nUsageReporting::kResourceType_DigitalInput = 13 , nUsageReporting::kResourceType_DigitalOutput = 14 , nUsageReporting::kResourceType_DriverStationCIO = 15 ,
  nUsageReporting::kResourceType_DriverStationEIO = 16 , nUsageReporting::kResourceType_DriverStationLCD = 17 , nUsageReporting::kResourceType_Encoder = 18 , nUsageReporting::kResourceType_GearTooth = 19 ,
  nUsageReporting::kResourceType_Gyro = 20 , nUsageReporting::kResourceType_I2C = 21 , nUsageReporting::kResourceType_Framework = 22 , nUsageReporting::kResourceType_Jaguar = 23 ,
  nUsageReporting::kResourceType_Joystick = 24 , nUsageReporting::kResourceType_Kinect = 25 , nUsageReporting::kResourceType_KinectStick = 26 , nUsageReporting::kResourceType_PIDController = 27 ,
  nUsageReporting::kResourceType_Preferences = 28 , nUsageReporting::kResourceType_PWM = 29 , nUsageReporting::kResourceType_Relay = 30 , nUsageReporting::kResourceType_RobotDrive = 31 ,
  nUsageReporting::kResourceType_SerialPort = 32 , nUsageReporting::kResourceType_Servo = 33 , nUsageReporting::kResourceType_Solenoid = 34 , nUsageReporting::kResourceType_SPI = 35 ,
  nUsageReporting::kResourceType_Task = 36 , nUsageReporting::kResourceType_Ultrasonic = 37 , nUsageReporting::kResourceType_Victor = 38 , nUsageReporting::kResourceType_Button = 39 ,
  nUsageReporting::kResourceType_Command = 40 , nUsageReporting::kResourceType_AxisCamera = 41 , nUsageReporting::kResourceType_PCVideoServer = 42 , nUsageReporting::kResourceType_SmartDashboard = 43 ,
  nUsageReporting::kResourceType_Talon = 44 , nUsageReporting::kResourceType_HiTechnicColorSensor = 45 , nUsageReporting::kResourceType_HiTechnicAccel = 46 , nUsageReporting::kResourceType_HiTechnicCompass = 47 ,
  nUsageReporting::kResourceType_SRF08 = 48 , nUsageReporting::kResourceType_AnalogOutput = 49 , nUsageReporting::kResourceType_VictorSP = 50 , nUsageReporting::kResourceType_PWMTalonSRX = 51 ,
  nUsageReporting::kResourceType_CANTalonSRX = 52 , nUsageReporting::kResourceType_ADXL362 = 53 , nUsageReporting::kResourceType_ADXRS450 = 54 , nUsageReporting::kResourceType_RevSPARK = 55 ,
  nUsageReporting::kResourceType_MindsensorsSD540 = 56 , nUsageReporting::kResourceType_DigitalGlitchFilter = 57 , nUsageReporting::kResourceType_ADIS16448 = 58 , nUsageReporting::kResourceType_PDP = 59 ,
  nUsageReporting::kResourceType_PCM = 60 , nUsageReporting::kResourceType_PigeonIMU = 61 , nUsageReporting::kResourceType_NidecBrushless = 62 , nUsageReporting::kResourceType_CANifier = 63 ,
  nUsageReporting::kResourceType_TalonFX = 64 , nUsageReporting::kResourceType_CTRE_future1 = 65 , nUsageReporting::kResourceType_CTRE_future2 = 66 , nUsageReporting::kResourceType_CTRE_future3 = 67 ,
  nUsageReporting::kResourceType_CTRE_future4 = 68 , nUsageReporting::kResourceType_CTRE_future5 = 69 , nUsageReporting::kResourceType_CTRE_future6 = 70 , nUsageReporting::kResourceType_LinearFilter = 71 ,
  nUsageReporting::kResourceType_XboxController = 72 , nUsageReporting::kResourceType_UsbCamera = 73 , nUsageReporting::kResourceType_NavX = 74 , nUsageReporting::kResourceType_Pixy = 75 ,
  nUsageReporting::kResourceType_Pixy2 = 76 , nUsageReporting::kResourceType_ScanseSweep = 77 , nUsageReporting::kResourceType_Shuffleboard = 78 , nUsageReporting::kResourceType_CAN = 79 ,
  nUsageReporting::kResourceType_DigilentDMC60 = 80 , nUsageReporting::kResourceType_PWMVictorSPX = 81 , nUsageReporting::kResourceType_RevSparkMaxPWM = 82 , nUsageReporting::kResourceType_RevSparkMaxCAN = 83 ,
  nUsageReporting::kResourceType_ADIS16470 = 84 , nUsageReporting::kResourceType_PIDController2 = 85 , nUsageReporting::kResourceType_ProfiledPIDController = 86 , nUsageReporting::kResourceType_Kinematics = 87 ,
  nUsageReporting::kResourceType_Odometry = 88 , nUsageReporting::kResourceType_Units = 89 , nUsageReporting::kResourceType_TrapezoidProfile = 90 , nUsageReporting::kResourceType_DutyCycle = 91 ,
  nUsageReporting::kResourceType_AddressableLEDs = 92 , nUsageReporting::kResourceType_FusionVenom = 93 , nUsageReporting::kResourceType_CTRE_future7 = 94 , nUsageReporting::kResourceType_CTRE_future8 = 95 ,
  nUsageReporting::kResourceType_CTRE_future9 = 96 , nUsageReporting::kResourceType_CTRE_future10 = 97 , nUsageReporting::kResourceType_CTRE_future11 = 98 , nUsageReporting::kResourceType_CTRE_future12 = 99 ,
  nUsageReporting::kResourceType_CTRE_future13 = 100 , nUsageReporting::kResourceType_CTRE_future14 = 101 , nUsageReporting::kResourceType_ExponentialProfile = 102 , nUsageReporting::kResourceType_PS4Controller = 103 ,
  nUsageReporting::kResourceType_PhotonCamera = 104 , nUsageReporting::kResourceType_PhotonPoseEstimator = 105 , nUsageReporting::kResourceType_PathPlannerPath = 106 , nUsageReporting::kResourceType_PathPlannerAuto = 107 ,
  nUsageReporting::kResourceType_PathFindingCommand = 108 , nUsageReporting::kResourceType_Redux_future1 = 109 , nUsageReporting::kResourceType_Redux_future2 = 110 , nUsageReporting::kResourceType_Redux_future3 = 111 ,
  nUsageReporting::kResourceType_Redux_future4 = 112 , nUsageReporting::kResourceType_Redux_future5 = 113 , nUsageReporting::kResourceType_RevSparkFlexCAN = 114 , nUsageReporting::kResourceType_RevSparkFlexPWM = 115 ,
  nUsageReporting::kResourceType_BangBangController = 116 , nUsageReporting::kResourceType_DataLogManager = 117 , nUsageReporting::kResourceType_LoggingFramework = 118 , nUsageReporting::kResourceType_ChoreoTrajectory = 119 ,
  nUsageReporting::kResourceType_ChoreoTrigger = 120 , nUsageReporting::kResourceType_PathWeaverTrajectory = 121 , nUsageReporting::kResourceType_Koors40 = 122 , nUsageReporting::kResourceType_ThriftyNova = 123 ,
  nUsageReporting::kResourceType_RevServoHub = 124 , nUsageReporting::kResourceType_PWFSEN36005 = 125 , nUsageReporting::kResourceType_LaserShark = 126
}
 
enum  nUsageReporting::tInstances {
  nUsageReporting::kLanguage_LabVIEW = 1 , nUsageReporting::kLanguage_CPlusPlus = 2 , nUsageReporting::kLanguage_Java = 3 , nUsageReporting::kLanguage_Python = 4 ,
  nUsageReporting::kLanguage_DotNet = 5 , nUsageReporting::kLanguage_Kotlin = 6 , nUsageReporting::kLanguage_Rust = 7 , nUsageReporting::kCANPlugin_BlackJagBridge = 1 ,
  nUsageReporting::kCANPlugin_2CAN = 2 , nUsageReporting::kFramework_Iterative = 1 , nUsageReporting::kFramework_Simple = 2 , nUsageReporting::kFramework_CommandControl = 3 ,
  nUsageReporting::kFramework_Timed = 4 , nUsageReporting::kFramework_ROS = 5 , nUsageReporting::kFramework_RobotBuilder = 6 , nUsageReporting::kFramework_AdvantageKit = 7 ,
  nUsageReporting::kFramework_MagicBot = 8 , nUsageReporting::kRobotDrive_ArcadeStandard = 1 , nUsageReporting::kRobotDrive_ArcadeButtonSpin = 2 , nUsageReporting::kRobotDrive_ArcadeRatioCurve = 3 ,
  nUsageReporting::kRobotDrive_Tank = 4 , nUsageReporting::kRobotDrive_MecanumPolar = 5 , nUsageReporting::kRobotDrive_MecanumCartesian = 6 , nUsageReporting::kRobotDrive2_DifferentialArcade = 7 ,
  nUsageReporting::kRobotDrive2_DifferentialTank = 8 , nUsageReporting::kRobotDrive2_DifferentialCurvature = 9 , nUsageReporting::kRobotDrive2_MecanumCartesian = 10 , nUsageReporting::kRobotDrive2_MecanumPolar = 11 ,
  nUsageReporting::kRobotDrive2_KilloughCartesian = 12 , nUsageReporting::kRobotDrive2_KilloughPolar = 13 , nUsageReporting::kRobotDriveSwerve_Other = 14 , nUsageReporting::kRobotDriveSwerve_YAGSL = 15 ,
  nUsageReporting::kRobotDriveSwerve_CTRE = 16 , nUsageReporting::kRobotDriveSwerve_MaxSwerve = 17 , nUsageReporting::kRobotDriveSwerve_AdvantageKit = 18 , nUsageReporting::kDriverStationCIO_Analog = 1 ,
  nUsageReporting::kDriverStationCIO_DigitalIn = 2 , nUsageReporting::kDriverStationCIO_DigitalOut = 3 , nUsageReporting::kDriverStationEIO_Acceleration = 1 , nUsageReporting::kDriverStationEIO_AnalogIn = 2 ,
  nUsageReporting::kDriverStationEIO_AnalogOut = 3 , nUsageReporting::kDriverStationEIO_Button = 4 , nUsageReporting::kDriverStationEIO_LED = 5 , nUsageReporting::kDriverStationEIO_DigitalIn = 6 ,
  nUsageReporting::kDriverStationEIO_DigitalOut = 7 , nUsageReporting::kDriverStationEIO_FixedDigitalOut = 8 , nUsageReporting::kDriverStationEIO_PWM = 9 , nUsageReporting::kDriverStationEIO_Encoder = 10 ,
  nUsageReporting::kDriverStationEIO_TouchSlider = 11 , nUsageReporting::kADXL345_SPI = 1 , nUsageReporting::kADXL345_I2C = 2 , nUsageReporting::kCommand_Scheduler = 1 ,
  nUsageReporting::kCommand2_Scheduler = 2 , nUsageReporting::kSmartDashboard_Instance = 1 , nUsageReporting::kSmartDashboard_LiveWindow = 2 , nUsageReporting::kKinematics_DifferentialDrive = 1 ,
  nUsageReporting::kKinematics_MecanumDrive = 2 , nUsageReporting::kKinematics_SwerveDrive = 3 , nUsageReporting::kOdometry_DifferentialDrive = 1 , nUsageReporting::kOdometry_MecanumDrive = 2 ,
  nUsageReporting::kOdometry_SwerveDrive = 3 , nUsageReporting::kDashboard_Unknown = 1 , nUsageReporting::kDashboard_Glass = 2 , nUsageReporting::kDashboard_SmartDashboard = 3 ,
  nUsageReporting::kDashboard_Shuffleboard = 4 , nUsageReporting::kDashboard_Elastic = 5 , nUsageReporting::kDashboard_LabVIEW = 6 , nUsageReporting::kDashboard_AdvantageScope = 7 ,
  nUsageReporting::kDashboard_QFRCDashboard = 8 , nUsageReporting::kDashboard_FRCWebComponents = 9 , nUsageReporting::kDataLogLocation_Onboard = 1 , nUsageReporting::kDataLogLocation_USB = 2 ,
  nUsageReporting::kLoggingFramework_Other = 1 , nUsageReporting::kLoggingFramework_Epilogue = 2 , nUsageReporting::kLoggingFramework_Monologue = 3 , nUsageReporting::kLoggingFramework_AdvantageKit = 4 ,
  nUsageReporting::kLoggingFramework_DogLog = 5 , nUsageReporting::kPDP_CTRE = 1 , nUsageReporting::kPDP_REV = 2 , nUsageReporting::kPDP_Unknown = 3
}
 

Functions

uint32_t EXPORT_FUNC nUsageReporting::report (tResourceType resource, uint8_t instanceNumber, uint8_t context=0, const char *feature=NULL)
 Report the usage of a resource of interest.
 
uint32_t EXPORT_FUNC FRC_NetworkCommunication_nUsageReporting_report (uint8_t resource, uint8_t instanceNumber, uint8_t context, const char *feature)
 

Macro Definition Documentation

◆ EXPORT_FUNC

#define EXPORT_FUNC

◆ kUsageReporting_version

#define kUsageReporting_version   1

Function Documentation

◆ FRC_NetworkCommunication_nUsageReporting_report()

uint32_t EXPORT_FUNC FRC_NetworkCommunication_nUsageReporting_report ( uint8_t resource,
uint8_t instanceNumber,
uint8_t context,
const char * feature )