Go to the documentation of this file.
31 #define LOCAL_ASSERT assert
35 #define MEGA ((int64_t)KILO * KILO)
38 #define CAN_REDUNDANCY_FACTOR 1
39 #define CAN_TX_QUEUE_CAPACITY 100
40 #define CAN_MAX_IFACE 1
41 #define CAN_RX_QUEUE_CAPACITY 100
42 #define IFACE_CAN_IDX 0
43 #define CAN_DELAY_US_SEND 0
44 #define MAX_SUBSCRIPTION 10
45 #define HEAP_ARENA_SIZE (1024 * 16)
48 #define CAN_BIT_RATE 1000000ul
49 #define CAN_MTU_BASE 8
52 #define CANARD_REGISTERLIST_TRANSFER_ID_TIMEOUT_USEC 3500000UL
53 #define CANARD_READFILE_TRANSFER_ID_TIMEOUT_USEC 2500000UL
54 #define CANARD_RMAPDATA_TRANSFER_ID_TIMEOUT_USEC 2500000UL
57 #define NODE_YAKUT_ID 127
58 #define NODE_MASTER_ID 100
60 #define PORT_RMAP_TH 50
61 #define PORT_RMAP_RAIN 51
62 #define PORT_RMAP_WIND 52
63 #define PORT_RMAP_RADIATION 53
64 #define PORT_RMAP_MPPT 54
65 #define PORT_RMAP_VWC 55
66 #define PORT_RMAP_MASTER 100
69 #define NODE_VALUE_UNSET 255
70 #define NODE_SLAVE_ID 61
71 #define PORT_SERVICE_RMAP (PORT_RMAP_RAIN)
72 #define SUBJECTID_PUBLISH_RMAP (PORT_RMAP_RAIN)
75 #define HASH_SERNUMB_MASK 0x0000FFFFFFFFFF00u
76 #define HASH_EXCLUDING_BIT 16u
79 #if (FIXED_CONFIGURATION)
80 #define USE_NODE_MASTER_ID_FIXED
81 #define USE_NODE_SLAVE_ID_FIXED
82 #define USE_PORT_SERVICE_RMAP_FIXED
83 #define USE_SUBJECTID_PUBLISH_RMAP_FIXED
87 #define SENSOR_METADATA_TBR 0
88 #define SENSOR_METADATA_TPR 1
89 #define SENSOR_METADATA_COUNT 2
91 #define SENSOR_METADATA_LEVEL_1 65535
92 #define SENSOR_METADATA_LEVEL_2 65535
93 #define SENSOR_METADATA_LEVELTYPE_1 1
94 #define SENSOR_METADATA_LEVELTYPE_2 65535
95 #define SENSOR_METADATA_LEVEL_P1 0
96 #define SENSOR_METADATA_LEVEL_P_IND_TBR 1
97 #define SENSOR_METADATA_LEVEL_P_IND_TPR 2
100 #define GENERIC_STATE_UNDEFINED 0x0Fu
101 #define GENERIC_BVAL_UNDEFINED 0xFFu
104 #define DEFAULT_PUBLISH_PORT_LIST true
105 #define DEFAULT_PUBLISH_MODULE_DATA false
108 #define TIME_PUBLISH_MODULE_DATA 0.333
109 #define TIME_PUBLISH_PNP_REQUEST 4
110 #define TIME_PUBLISH_HEARTBEAT 1
111 #define TIME_PUBLISH_PORT_LIST 20
114 #define MASTER_OFFLINE_TIMEOUT_US 6000000
115 #define MASTER_MAXSYNCRO_VALID_US 1250000
116 #define NODE_GETFILE_TIMEOUT_US 1750000
117 #define NODE_GETFILE_MAX_RETRY 3
120 #define CAN_FILE_NAME_SIZE_MAX 50