mirror of https://github.com/ARMmbed/mbed-os.git
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.hpull/6808/head
parent
1a0d90555e
commit
cc09e44cfb
|
@ -34,6 +34,40 @@
|
||||||
|
|
||||||
#include "platform/Callback.h"
|
#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.
|
* LoRaWAN device classes definition.
|
||||||
*
|
*
|
||||||
|
|
|
@ -47,40 +47,6 @@ typedef uint32_t lorawan_time_t;
|
||||||
// Radio wake-up time from sleep - unit ms.
|
// Radio wake-up time from sleep - unit ms.
|
||||||
#define RADIO_WAKEUP_TIME 1
|
#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.
|
* Sets the length of the LoRaMAC footer field.
|
||||||
* Mainly indicates the MIC field length.
|
* Mainly indicates the MIC field length.
|
||||||
|
|
Loading…
Reference in New Issue