blob: 34330c8c99a29b4f6de3ffd8ed3d4f1abb861abb [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001#pragma once
2
3#include <stdint.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9// ifdef's definition is to allow for default parameters in C++.
10#ifdef __cplusplus
11/**
12 * Reports a hardware usage to the HAL.
13 *
14 * @param resource the used resource
15 * @param instanceNumber the instance of the resource
16 * @param context a user specified context index
17 * @param feature a user specified feature string
18 * @return the index of the added value in NetComm
19 */
20int64_t HAL_Report(int32_t resource, int32_t instanceNumber,
21 int32_t context = 0, const char* feature = nullptr);
22#else
23
24/**
25 * Reports a hardware usage to the HAL.
26 *
27 * @param resource the used resource
28 * @param instanceNumber the instance of the resource
29 * @param context a user specified context index
30 * @param feature a user specified feature string
31 * @return the index of the added value in NetComm
32 */
33int64_t HAL_Report(int32_t resource, int32_t instanceNumber, int32_t context,
34 const char* feature);
35#endif
36
37#ifdef __cplusplus
38}
39#endif
40
41/*
42 * Autogenerated file! Do not manually edit this file.
43 */
44
45#ifdef __cplusplus
46namespace HALUsageReporting {
47 enum tResourceType : int32_t {
48${usage_reporting_types_cpp}
49 };
50 enum tInstances : int32_t {
51${usage_reporting_instances_cpp}
52 };
53}
54#endif