// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. // THIS FILE WAS AUTO-GENERATED BY ./hal/generate_usage_reporting.py. DO NOT MODIFY #pragma once #include #ifdef __cplusplus extern "C" { #endif // ifdef's definition is to allow for default parameters in C++. #ifdef __cplusplus /** * Reports a hardware usage to the HAL. * * @param resource the used resource * @param instanceNumber the instance of the resource * @param context a user specified context index * @param feature a user specified feature string * @return the index of the added value in NetComm */ int64_t HAL_Report(int32_t resource, int32_t instanceNumber, int32_t context = 0, const char* feature = nullptr); #else /** * Reports a hardware usage to the HAL. * * @param resource the used resource * @param instanceNumber the instance of the resource * @param context a user specified context index * @param feature a user specified feature string * @return the index of the added value in NetComm */ int64_t HAL_Report(int32_t resource, int32_t instanceNumber, int32_t context, const char* feature); #endif #ifdef __cplusplus } #endif /* * Autogenerated file! Do not manually edit this file. */ #ifdef __cplusplus namespace HALUsageReporting { enum tResourceType : int32_t { ${usage_reporting_types_cpp} }; enum tInstances : int32_t { ${usage_reporting_instances_cpp} }; } #endif