WPILibC++ 2024.3.2
FRCUsageReporting.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5// THIS FILE WAS AUTO-GENERATED BY ./hal/generate_usage_reporting.py. DO NOT MODIFY
6
7#pragma once
8
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15// ifdef's definition is to allow for default parameters in C++.
16#ifdef __cplusplus
17/**
18 * Reports a hardware usage to the HAL.
19 *
20 * @param resource the used resource
21 * @param instanceNumber the instance of the resource
22 * @param context a user specified context index
23 * @param feature a user specified feature string
24 * @return the index of the added value in NetComm
25 */
26int64_t HAL_Report(int32_t resource, int32_t instanceNumber,
27 int32_t context = 0, const char* feature = nullptr);
28#else
29
30/**
31 * Reports a hardware usage to the HAL.
32 *
33 * @param resource the used resource
34 * @param instanceNumber the instance of the resource
35 * @param context a user specified context index
36 * @param feature a user specified feature string
37 * @return the index of the added value in NetComm
38 */
39int64_t HAL_Report(int32_t resource, int32_t instanceNumber, int32_t context,
40 const char* feature);
41#endif
42
43#ifdef __cplusplus
44}
45#endif
46
47/*
48 * Autogenerated file! Do not manually edit this file.
49 */
50
51#ifdef __cplusplus
53 enum tResourceType : int32_t {
170 };
171 enum tInstances : int32_t {
226 };
227}
228#endif
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.
Definition: FRCUsageReporting.h:52
tResourceType
Definition: FRCUsageReporting.h:53
@ kResourceType_HiTechnicCompass
Definition: FRCUsageReporting.h:101
@ kResourceType_CTRE_future12
Definition: FRCUsageReporting.h:153
@ kResourceType_Servo
Definition: FRCUsageReporting.h:87
@ kResourceType_DigilentDMC60
Definition: FRCUsageReporting.h:134
@ kResourceType_Preferences
Definition: FRCUsageReporting.h:82
@ kResourceType_DigitalGlitchFilter
Definition: FRCUsageReporting.h:111
@ kResourceType_CTRE_future11
Definition: FRCUsageReporting.h:152
@ kResourceType_GearTooth
Definition: FRCUsageReporting.h:73
@ kResourceType_HiTechnicColorSensor
Definition: FRCUsageReporting.h:99
@ kResourceType_PhotonPoseEstimator
Definition: FRCUsageReporting.h:159
@ kResourceType_PS4Controller
Definition: FRCUsageReporting.h:157
@ kResourceType_Controller
Definition: FRCUsageReporting.h:54
@ kResourceType_Accelerometer
Definition: FRCUsageReporting.h:58
@ kResourceType_PathPlannerPath
Definition: FRCUsageReporting.h:160
@ kResourceType_RevSparkMaxPWM
Definition: FRCUsageReporting.h:136
@ kResourceType_Redux_future4
Definition: FRCUsageReporting.h:166
@ kResourceType_PathFindingCommand
Definition: FRCUsageReporting.h:162
@ kResourceType_SmartDashboard
Definition: FRCUsageReporting.h:97
@ kResourceType_CANTalonSRX
Definition: FRCUsageReporting.h:106
@ kResourceType_PIDController2
Definition: FRCUsageReporting.h:139
@ kResourceType_RevSPARK
Definition: FRCUsageReporting.h:109
@ kResourceType_HiTechnicAccel
Definition: FRCUsageReporting.h:100
@ kResourceType_ADXL345
Definition: FRCUsageReporting.h:59
@ kResourceType_Ultrasonic
Definition: FRCUsageReporting.h:91
@ kResourceType_AxisCamera
Definition: FRCUsageReporting.h:95
@ kResourceType_CANJaguar
Definition: FRCUsageReporting.h:63
@ kResourceType_CTRE_future7
Definition: FRCUsageReporting.h:148
@ kResourceType_CANPlugin
Definition: FRCUsageReporting.h:57
@ kResourceType_PIDController
Definition: FRCUsageReporting.h:81
@ kResourceType_CTRE_future4
Definition: FRCUsageReporting.h:122
@ kResourceType_PigeonIMU
Definition: FRCUsageReporting.h:115
@ kResourceType_SerialPort
Definition: FRCUsageReporting.h:86
@ kResourceType_NidecBrushless
Definition: FRCUsageReporting.h:116
@ kResourceType_Victor
Definition: FRCUsageReporting.h:92
@ kResourceType_PCVideoServer
Definition: FRCUsageReporting.h:96
@ kResourceType_PhotonCamera
Definition: FRCUsageReporting.h:158
@ kResourceType_Counter
Definition: FRCUsageReporting.h:65
@ kResourceType_ExponentialProfile
Definition: FRCUsageReporting.h:156
@ kResourceType_Solenoid
Definition: FRCUsageReporting.h:88
@ kResourceType_Redux_future2
Definition: FRCUsageReporting.h:164
@ kResourceType_Compressor
Definition: FRCUsageReporting.h:64
@ kResourceType_RevSparkFlexCAN
Definition: FRCUsageReporting.h:168
@ kResourceType_Dashboard
Definition: FRCUsageReporting.h:66
@ kResourceType_DriverStationLCD
Definition: FRCUsageReporting.h:71
@ kResourceType_AnalogTrigger
Definition: FRCUsageReporting.h:61
@ kResourceType_CTRE_future6
Definition: FRCUsageReporting.h:124
@ kResourceType_CTRE_future3
Definition: FRCUsageReporting.h:121
@ kResourceType_NavX
Definition: FRCUsageReporting.h:128
@ kResourceType_RevSparkFlexPWM
Definition: FRCUsageReporting.h:169
@ kResourceType_DriverStationEIO
Definition: FRCUsageReporting.h:70
@ kResourceType_AddressableLEDs
Definition: FRCUsageReporting.h:146
@ kResourceType_Kinematics
Definition: FRCUsageReporting.h:141
@ kResourceType_RevSparkMaxCAN
Definition: FRCUsageReporting.h:137
@ kResourceType_PCM
Definition: FRCUsageReporting.h:114
@ kResourceType_Command
Definition: FRCUsageReporting.h:94
@ kResourceType_Redux_future3
Definition: FRCUsageReporting.h:165
@ kResourceType_Redux_future1
Definition: FRCUsageReporting.h:163
@ kResourceType_CTRE_future1
Definition: FRCUsageReporting.h:119
@ kResourceType_ADIS16448
Definition: FRCUsageReporting.h:112
@ kResourceType_Joystick
Definition: FRCUsageReporting.h:78
@ kResourceType_DigitalOutput
Definition: FRCUsageReporting.h:68
@ kResourceType_Encoder
Definition: FRCUsageReporting.h:72
@ kResourceType_ADIS16470
Definition: FRCUsageReporting.h:138
@ kResourceType_CANifier
Definition: FRCUsageReporting.h:117
@ kResourceType_CTRE_future9
Definition: FRCUsageReporting.h:150
@ kResourceType_Shuffleboard
Definition: FRCUsageReporting.h:132
@ kResourceType_AnalogChannel
Definition: FRCUsageReporting.h:60
@ kResourceType_PWM
Definition: FRCUsageReporting.h:83
@ kResourceType_UsbCamera
Definition: FRCUsageReporting.h:127
@ kResourceType_ADXRS450
Definition: FRCUsageReporting.h:108
@ kResourceType_CTRE_future14
Definition: FRCUsageReporting.h:155
@ kResourceType_RobotDrive
Definition: FRCUsageReporting.h:85
@ kResourceType_Language
Definition: FRCUsageReporting.h:56
@ kResourceType_Odometry
Definition: FRCUsageReporting.h:142
@ kResourceType_KinectStick
Definition: FRCUsageReporting.h:80
@ kResourceType_FusionVenom
Definition: FRCUsageReporting.h:147
@ kResourceType_ADXL362
Definition: FRCUsageReporting.h:107
@ kResourceType_CTRE_future2
Definition: FRCUsageReporting.h:120
@ kResourceType_CTRE_future8
Definition: FRCUsageReporting.h:149
@ kResourceType_AnalogOutput
Definition: FRCUsageReporting.h:103
@ kResourceType_TalonFX
Definition: FRCUsageReporting.h:118
@ kResourceType_Gyro
Definition: FRCUsageReporting.h:74
@ kResourceType_TrapezoidProfile
Definition: FRCUsageReporting.h:144
@ kResourceType_CAN
Definition: FRCUsageReporting.h:133
@ kResourceType_MindsensorsSD540
Definition: FRCUsageReporting.h:110
@ kResourceType_SPI
Definition: FRCUsageReporting.h:89
@ kResourceType_I2C
Definition: FRCUsageReporting.h:75
@ kResourceType_AnalogTriggerOutput
Definition: FRCUsageReporting.h:62
@ kResourceType_Module
Definition: FRCUsageReporting.h:55
@ kResourceType_PDP
Definition: FRCUsageReporting.h:113
@ kResourceType_CTRE_future5
Definition: FRCUsageReporting.h:123
@ kResourceType_ProfiledPIDController
Definition: FRCUsageReporting.h:140
@ kResourceType_PathPlannerAuto
Definition: FRCUsageReporting.h:161
@ kResourceType_Redux_future5
Definition: FRCUsageReporting.h:167
@ kResourceType_DriverStationCIO
Definition: FRCUsageReporting.h:69
@ kResourceType_PWMVictorSPX
Definition: FRCUsageReporting.h:135
@ kResourceType_Jaguar
Definition: FRCUsageReporting.h:77
@ kResourceType_CTRE_future10
Definition: FRCUsageReporting.h:151
@ kResourceType_SRF08
Definition: FRCUsageReporting.h:102
@ kResourceType_Relay
Definition: FRCUsageReporting.h:84
@ kResourceType_ScanseSweep
Definition: FRCUsageReporting.h:131
@ kResourceType_VictorSP
Definition: FRCUsageReporting.h:104
@ kResourceType_Units
Definition: FRCUsageReporting.h:143
@ kResourceType_CTRE_future13
Definition: FRCUsageReporting.h:154
@ kResourceType_DigitalInput
Definition: FRCUsageReporting.h:67
@ kResourceType_Kinect
Definition: FRCUsageReporting.h:79
@ kResourceType_Pixy2
Definition: FRCUsageReporting.h:130
@ kResourceType_PWMTalonSRX
Definition: FRCUsageReporting.h:105
@ kResourceType_Framework
Definition: FRCUsageReporting.h:76
@ kResourceType_Pixy
Definition: FRCUsageReporting.h:129
@ kResourceType_XboxController
Definition: FRCUsageReporting.h:126
@ kResourceType_Talon
Definition: FRCUsageReporting.h:98
@ kResourceType_LinearFilter
Definition: FRCUsageReporting.h:125
@ kResourceType_Task
Definition: FRCUsageReporting.h:90
@ kResourceType_DutyCycle
Definition: FRCUsageReporting.h:145
@ kResourceType_Button
Definition: FRCUsageReporting.h:93
tInstances
Definition: FRCUsageReporting.h:171
@ kFramework_RobotBuilder
Definition: FRCUsageReporting.h:185
@ kDriverStationEIO_Acceleration
Definition: FRCUsageReporting.h:203
@ kKinematics_SwerveDrive
Definition: FRCUsageReporting.h:222
@ kFramework_Timed
Definition: FRCUsageReporting.h:183
@ kCommand_Scheduler
Definition: FRCUsageReporting.h:216
@ kDriverStationCIO_Analog
Definition: FRCUsageReporting.h:200
@ kDriverStationEIO_PWM
Definition: FRCUsageReporting.h:211
@ kRobotDrive_ArcadeButtonSpin
Definition: FRCUsageReporting.h:188
@ kDriverStationEIO_FixedDigitalOut
Definition: FRCUsageReporting.h:210
@ kDriverStationCIO_DigitalOut
Definition: FRCUsageReporting.h:202
@ kRobotDrive2_MecanumPolar
Definition: FRCUsageReporting.h:197
@ kSmartDashboard_LiveWindow
Definition: FRCUsageReporting.h:219
@ kKinematics_MecanumDrive
Definition: FRCUsageReporting.h:221
@ kRobotDrive_Tank
Definition: FRCUsageReporting.h:190
@ kLanguage_DotNet
Definition: FRCUsageReporting.h:176
@ kKinematics_DifferentialDrive
Definition: FRCUsageReporting.h:220
@ kLanguage_Java
Definition: FRCUsageReporting.h:174
@ kDriverStationEIO_AnalogOut
Definition: FRCUsageReporting.h:205
@ kDriverStationEIO_AnalogIn
Definition: FRCUsageReporting.h:204
@ kDriverStationEIO_Encoder
Definition: FRCUsageReporting.h:212
@ kLanguage_Kotlin
Definition: FRCUsageReporting.h:177
@ kOdometry_SwerveDrive
Definition: FRCUsageReporting.h:225
@ kRobotDrive2_DifferentialArcade
Definition: FRCUsageReporting.h:193
@ kLanguage_CPlusPlus
Definition: FRCUsageReporting.h:173
@ kDriverStationEIO_Button
Definition: FRCUsageReporting.h:206
@ kRobotDrive2_KilloughPolar
Definition: FRCUsageReporting.h:199
@ kRobotDrive2_MecanumCartesian
Definition: FRCUsageReporting.h:196
@ kOdometry_MecanumDrive
Definition: FRCUsageReporting.h:224
@ kFramework_ROS
Definition: FRCUsageReporting.h:184
@ kRobotDrive_MecanumPolar
Definition: FRCUsageReporting.h:191
@ kRobotDrive2_KilloughCartesian
Definition: FRCUsageReporting.h:198
@ kOdometry_DifferentialDrive
Definition: FRCUsageReporting.h:223
@ kCommand2_Scheduler
Definition: FRCUsageReporting.h:217
@ kADXL345_I2C
Definition: FRCUsageReporting.h:215
@ kRobotDrive2_DifferentialCurvature
Definition: FRCUsageReporting.h:195
@ kFramework_Iterative
Definition: FRCUsageReporting.h:180
@ kRobotDrive_ArcadeRatioCurve
Definition: FRCUsageReporting.h:189
@ kCANPlugin_BlackJagBridge
Definition: FRCUsageReporting.h:178
@ kDriverStationEIO_DigitalOut
Definition: FRCUsageReporting.h:209
@ kRobotDrive2_DifferentialTank
Definition: FRCUsageReporting.h:194
@ kLanguage_Python
Definition: FRCUsageReporting.h:175
@ kDriverStationEIO_LED
Definition: FRCUsageReporting.h:207
@ kRobotDrive_ArcadeStandard
Definition: FRCUsageReporting.h:187
@ kADXL345_SPI
Definition: FRCUsageReporting.h:214
@ kSmartDashboard_Instance
Definition: FRCUsageReporting.h:218
@ kFramework_AdvantageKit
Definition: FRCUsageReporting.h:186
@ kDriverStationCIO_DigitalIn
Definition: FRCUsageReporting.h:201
@ kRobotDrive_MecanumCartesian
Definition: FRCUsageReporting.h:192
@ kDriverStationEIO_DigitalIn
Definition: FRCUsageReporting.h:208
@ kFramework_CommandControl
Definition: FRCUsageReporting.h:182
@ kFramework_Simple
Definition: FRCUsageReporting.h:181
@ kCANPlugin_2CAN
Definition: FRCUsageReporting.h:179
@ kLanguage_LabVIEW
Definition: FRCUsageReporting.h:172
@ kDriverStationEIO_TouchSlider
Definition: FRCUsageReporting.h:213