Skip to content

Commit cc09e44

Browse files
author
Hasnain Virk
committed
Moving msg flags to lorawan_types.h
Message flags are used in the application so the logical place for them is in lorawan_types.h and not in lorawan_data_structures.h
1 parent 1a0d905 commit cc09e44

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

features/lorawan/lorawan_types.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,40 @@
3434

3535
#include "platform/Callback.h"
3636

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+
3771
/**
3872
* LoRaWAN device classes definition.
3973
*

features/lorawan/system/lorawan_data_structures.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -47,40 +47,6 @@ typedef uint32_t lorawan_time_t;
4747
// Radio wake-up time from sleep - unit ms.
4848
#define RADIO_WAKEUP_TIME 1
4949

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-
8450
/*!
8551
* Sets the length of the LoRaMAC footer field.
8652
* Mainly indicates the MIC field length.

0 commit comments

Comments
 (0)