LoRaMAC  4.6.0
Documentation of the API
LoRaMacConfirmQueue.h
Go to the documentation of this file.
1 
39 #ifndef __LORAMAC_CONFIRMQUEUE_H__
40 #define __LORAMAC_CONFIRMQUEUE_H__
41 
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 #include <stdbool.h>
48 #include <stdint.h>
49 
50 #include "LoRaMac.h"
51 
55 #define LORA_MAC_MLME_CONFIRM_QUEUE_LEN 5
56 
60 typedef struct sMlmeConfirmQueue
61 {
80 
87 
95 bool LoRaMacConfirmQueueAdd( MlmeConfirmQueue_t* mlmeConfirm );
96 
102 bool LoRaMacConfirmQueueRemoveLast( void );
103 
109 bool LoRaMacConfirmQueueRemoveFirst( void );
110 
119 
128 
135 
142 
150 bool LoRaMacConfirmQueueIsCmdActive( Mlme_t request );
151 
157 void LoRaMacConfirmQueueHandleCb( MlmeConfirm_t* mlmeConfirm );
158 
164 uint8_t LoRaMacConfirmQueueGetCnt( void );
165 
171 bool LoRaMacConfirmQueueIsFull( void );
172 
173 #ifdef __cplusplus
174 }
175 #endif
176 
177 #endif // __LORAMAC_CONFIRMQUEUE_H__
LoRaMacConfirmQueueRemoveFirst
bool LoRaMacConfirmQueueRemoveFirst(void)
Removes the first element which was added to the confirm queue.
LoRaMacPrimitives_t
Definition: LoRaMac.h:2461
LoRaMacConfirmQueueIsCmdActive
bool LoRaMacConfirmQueueIsCmdActive(Mlme_t request)
Verifies if a request is in the queue and active.
LoRaMacConfirmQueueInit
void LoRaMacConfirmQueueInit(LoRaMacPrimitives_t *primitive)
Initializes the confirm queue.
LoRaMacConfirmQueueGetStatus
LoRaMacEventInfoStatus_t LoRaMacConfirmQueueGetStatus(Mlme_t request)
Gets the status of an element.
MlmeConfirmQueue_t
Definition: LoRaMacConfirmQueue.h:60
LoRaMacConfirmQueueGetStatusCmn
LoRaMacEventInfoStatus_t LoRaMacConfirmQueueGetStatusCmn(void)
Gets the common status of all elements.
LoRaMacConfirmQueueSetStatus
void LoRaMacConfirmQueueSetStatus(LoRaMacEventInfoStatus_t status, Mlme_t request)
Sets the status of an element.
LoRaMacConfirmQueueHandleCb
void LoRaMacConfirmQueueHandleCb(MlmeConfirm_t *mlmeConfirm)
Handles all callbacks of active requests.
MlmeConfirmQueue_t::Status
LoRaMacEventInfoStatus_t Status
Definition: LoRaMacConfirmQueue.h:69
LoRaMacConfirmQueueAdd
bool LoRaMacConfirmQueueAdd(MlmeConfirmQueue_t *mlmeConfirm)
Adds an element to the confirm queue.
LoRaMacConfirmQueueSetStatusCmn
void LoRaMacConfirmQueueSetStatusCmn(LoRaMacEventInfoStatus_t status)
Sets a common status for all elements in the queue.
MlmeConfirm_t
Definition: LoRaMac.h:1294
LoRaMacConfirmQueueRemoveLast
bool LoRaMacConfirmQueueRemoveLast(void)
Removes the last element which was added into the queue.
LoRaMac.h
LoRa MAC layer implementation.
Mlme_t
Mlme_t
LoRaMAC management services.
Definition: LoRaMac.h:1081
MlmeConfirmQueue_t::Request
Mlme_t Request
Definition: LoRaMacConfirmQueue.h:65
MlmeConfirmQueue_t::ReadyToHandle
bool ReadyToHandle
Definition: LoRaMacConfirmQueue.h:73
LoRaMacConfirmQueueIsFull
bool LoRaMacConfirmQueueIsFull(void)
Verify if the confirm queue is full.
MlmeConfirmQueue_t::RestrictCommonReadyToHandle
bool RestrictCommonReadyToHandle
Definition: LoRaMacConfirmQueue.h:78
LoRaMacConfirmQueueGetCnt
uint8_t LoRaMacConfirmQueueGetCnt(void)
Query number of elements in the queue.
LoRaMacEventInfoStatus_t
LoRaMacEventInfoStatus_t
Definition: LoRaMac.h:394