File tree Expand file tree Collapse file tree 2 files changed +34
-34
lines changed Expand file tree Collapse file tree 2 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 34
34
35
35
#include "platform/Callback.h"
36
36
37
+ /**
38
+ * Option Flags for send(), receive() APIs
39
+ */
40
+ #define MSG_UNCONFIRMED_FLAG 0x01
41
+ #define MSG_CONFIRMED_FLAG 0x02
42
+ #define MSG_MULTICAST_FLAG 0x04
43
+ #define MSG_PROPRIETARY_FLAG 0x08
44
+
45
+ /**
46
+ * Bit mask for message flags
47
+ */
48
+
49
+ #define MSG_FLAG_MASK 0x0F
50
+
51
+ /**
52
+ * Mask for unconfirmed multicast message
53
+ */
54
+ #define MSG_UNCONFIRMED_MULTICAST 0x05
55
+
56
+ /**
57
+ * Mask for confirmed multicast message
58
+ */
59
+ #define MSG_CONFIRMED_MULTICAST 0x06
60
+
61
+ /**
62
+ * Mask for unconfirmed message proprietary message
63
+ */
64
+ #define MSG_UNCONFIRMED_PROPRIETARY 0x09
65
+
66
+ /**
67
+ * Mask for confirmed proprietary message
68
+ */
69
+ #define MSG_CONFIRMED_PROPRIETARY 0x0A
70
+
37
71
/**
38
72
* LoRaWAN device classes definition.
39
73
*
Original file line number Diff line number Diff line change @@ -47,40 +47,6 @@ typedef uint32_t lorawan_time_t;
47
47
// Radio wake-up time from sleep - unit ms.
48
48
#define RADIO_WAKEUP_TIME 1
49
49
50
- /**
51
- * Option Flags for send(), receive() APIs
52
- */
53
- #define MSG_UNCONFIRMED_FLAG 0x01
54
- #define MSG_CONFIRMED_FLAG 0x02
55
- #define MSG_MULTICAST_FLAG 0x04
56
- #define MSG_PROPRIETARY_FLAG 0x08
57
-
58
- /**
59
- * Bit mask for message flags
60
- */
61
-
62
- #define MSG_FLAG_MASK 0x0F
63
-
64
- /**
65
- * Mask for unconfirmed multicast message
66
- */
67
- #define MSG_UNCONFIRMED_MULTICAST 0x05
68
-
69
- /**
70
- * Mask for confirmed multicast message
71
- */
72
- #define MSG_CONFIRMED_MULTICAST 0x06
73
-
74
- /**
75
- * Mask for unconfirmed message proprietary message
76
- */
77
- #define MSG_UNCONFIRMED_PROPRIETARY 0x09
78
-
79
- /**
80
- * Mask for confirmed proprietary message
81
- */
82
- #define MSG_CONFIRMED_PROPRIETARY 0x0A
83
-
84
50
/*!
85
51
* Sets the length of the LoRaMAC footer field.
86
52
* Mainly indicates the MIC field length.
You can’t perform that action at this time.
0 commit comments