blob: 34330c8c99a29b4f6de3ffd8ed3d4f1abb861abb [file] [log] [blame]
#pragma once
#include <stdint.h>
#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