SingingCat 0
application
metric_names.h
1#ifndef METRIC_NAMES_H
2#define METRIC_NAMES_H
3#define METRIC_COUNT 16
4// created by scmetrics (singingcat-tools repo)
5
6#define ANNOUNCEMENTS 1
7#define SetMetric_ANNOUNCEMENTS(n) metric_set_by_number(1, n)
8#define IncMetric_ANNOUNCEMENTS metric_inc_by_number(1)
9
10#define COM_QUEUE_ADDED 12
11#define SetMetric_COM_QUEUE_ADDED(n) metric_set_by_number(12, n)
12#define IncMetric_COM_QUEUE_ADDED metric_inc_by_number(12)
13
14#define IRQ_COUNTER 13
15#define SetMetric_IRQ_COUNTER(n) metric_set_by_number(13, n)
16#define IncMetric_IRQ_COUNTER metric_inc_by_number(13)
17
18#define LOOP_COUNTER 14
19#define SetMetric_LOOP_COUNTER(n) metric_set_by_number(14, n)
20#define IncMetric_LOOP_COUNTER metric_inc_by_number(14)
21
22#define PKTS_LORA_CTR_IN 2
23#define SetMetric_PKTS_LORA_CTR_IN(n) metric_set_by_number(2, n)
24#define IncMetric_PKTS_LORA_CTR_IN metric_inc_by_number(2)
25
26#define PKTS_LORA_CTR_OUT 3
27#define SetMetric_PKTS_LORA_CTR_OUT(n) metric_set_by_number(3, n)
28#define IncMetric_PKTS_LORA_CTR_OUT metric_inc_by_number(3)
29
30#define PKTS_LORA_INVALID 4
31#define SetMetric_PKTS_LORA_INVALID(n) metric_set_by_number(4, n)
32#define IncMetric_PKTS_LORA_INVALID metric_inc_by_number(4)
33
34#define PKTS_RADIO_CTR_IN 5
35#define SetMetric_PKTS_RADIO_CTR_IN(n) metric_set_by_number(5, n)
36#define IncMetric_PKTS_RADIO_CTR_IN metric_inc_by_number(5)
37
38#define PKTS_RADIO_CTR_OUT 6
39#define SetMetric_PKTS_RADIO_CTR_OUT(n) metric_set_by_number(6, n)
40#define IncMetric_PKTS_RADIO_CTR_OUT metric_inc_by_number(6)
41
42#define PKTS_RADIO_INVALID 7
43#define SetMetric_PKTS_RADIO_INVALID(n) metric_set_by_number(7, n)
44#define IncMetric_PKTS_RADIO_INVALID metric_inc_by_number(7)
45
46#define PKTS_WIFI_CTR_IN 8
47#define SetMetric_PKTS_WIFI_CTR_IN(n) metric_set_by_number(8, n)
48#define IncMetric_PKTS_WIFI_CTR_IN metric_inc_by_number(8)
49
50#define PKTS_WIFI_CTR_OUT 9
51#define SetMetric_PKTS_WIFI_CTR_OUT(n) metric_set_by_number(9, n)
52#define IncMetric_PKTS_WIFI_CTR_OUT metric_inc_by_number(9)
53
54#define PKTS_WIFI_INVALID 10
55#define SetMetric_PKTS_WIFI_INVALID(n) metric_set_by_number(10, n)
56#define IncMetric_PKTS_WIFI_INVALID metric_inc_by_number(10)
57
58#define WIFI_RESTARTS 11
59#define SetMetric_WIFI_RESTARTS(n) metric_set_by_number(11, n)
60#define IncMetric_WIFI_RESTARTS metric_inc_by_number(11)
61
62#define METRIC_IRQ_SERIAL 15
63#define SetMetric_METRIC_IRQ_SERIAL(n) metric_set_by_number(15, n)
64#define IncMetric_METRIC_IRQ_SERIAL metric_inc_by_number(15)
65
66#define METRIC_IRQ_USB 16
67#define SetMetric_METRIC_IRQ_USB(n) metric_set_by_number(16, n)
68#define IncMetric_METRIC_IRQ_USB metric_inc_by_number(16)
69
70#endif