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
pull/6808/head
Hasnain Virk 2018-05-08 16:19:55 +03:00
parent 1a0d90555e
commit cc09e44cfb
2 changed files with 34 additions and 34 deletions

View File

@ -34,6 +34,40 @@
#include "platform/Callback.h"
/**
* Option Flags for send(), receive() APIs
*/
#define MSG_UNCONFIRMED_FLAG 0x01
#define MSG_CONFIRMED_FLAG 0x02
#define MSG_MULTICAST_FLAG 0x04
#define MSG_PROPRIETARY_FLAG 0x08
/**
* Bit mask for message flags
*/
#define MSG_FLAG_MASK 0x0F
/**
* Mask for unconfirmed multicast message
*/
#define MSG_UNCONFIRMED_MULTICAST 0x05
/**
* Mask for confirmed multicast message
*/
#define MSG_CONFIRMED_MULTICAST 0x06
/**
* Mask for unconfirmed message proprietary message
*/
#define MSG_UNCONFIRMED_PROPRIETARY 0x09
/**
* Mask for confirmed proprietary message
*/
#define MSG_CONFIRMED_PROPRIETARY 0x0A
/**
* LoRaWAN device classes definition.
*

View File

@ -47,40 +47,6 @@ typedef uint32_t lorawan_time_t;
// Radio wake-up time from sleep - unit ms.
#define RADIO_WAKEUP_TIME 1
/**
* Option Flags for send(), receive() APIs
*/
#define MSG_UNCONFIRMED_FLAG 0x01
#define MSG_CONFIRMED_FLAG 0x02
#define MSG_MULTICAST_FLAG 0x04
#define MSG_PROPRIETARY_FLAG 0x08
/**
* Bit mask for message flags
*/
#define MSG_FLAG_MASK 0x0F
/**
* Mask for unconfirmed multicast message
*/
#define MSG_UNCONFIRMED_MULTICAST 0x05
/**
* Mask for confirmed multicast message
*/
#define MSG_CONFIRMED_MULTICAST 0x06
/**
* Mask for unconfirmed message proprietary message
*/
#define MSG_UNCONFIRMED_PROPRIETARY 0x09
/**
* Mask for confirmed proprietary message
*/
#define MSG_CONFIRMED_PROPRIETARY 0x0A
/*!
* Sets the length of the LoRaMAC footer field.
* Mainly indicates the MIC field length.