|
LoRaMAC
4.4.5
Documentation of the API
|
Go to the documentation of this file.
35 #ifndef __LORAMAC_COMMANDS_H__
36 #define __LORAMAC_COMMANDS_H__
51 #define LORAMAC_COMMADS_MAX_NUM_OF_PARAMS 2
71 uint8_t
Payload[LORAMAC_COMMADS_MAX_NUM_OF_PARAMS];
85 typedef enum eLoRaMacCommandsStatus
235 #endif // __LORAMAC_COMMANDS_H__
uint8_t Payload[LORAMAC_COMMADS_MAX_NUM_OF_PARAMS]
Definition: LoRaMacCommands.h:71
LoRaMacCommandStatus_t LoRaMacCommandsRemoveStickyAnsCmds(void)
Remove all sticky answer MAC commands.
uint8_t LoRaMacCommandsGetCmdSize(uint8_t cid)
Get the MAC command size with corresponding CID.
Definition: LoRaMacCommands.h:98
LoRaMacCommandStatus_t LoRaMacCommandsStickyCmdsPending(bool *cmdsPending)
Determines if there are sticky MAC commands pending.
LoRa MAC layer internal types definition. Please do not include in application sources.
MacCommand_t * Next
Definition: LoRaMacCommands.h:63
Definition: LoRaMacCommands.h:58
LoRaMacCommandStatus_t LoRaMacCommandsGetSizeSerializedCmds(size_t *size)
Get size of all MAC commands serialized as buffer.
Definition: LoRaMacCommands.h:102
LoRaMacCommandStatus_t LoRaMacCommandsGetCmd(uint8_t cid, MacCommand_t **macCmd)
Get the MAC command with corresponding CID.
LoRaMacCommandStatus_t LoRaMacCommandsRemoveCmd(MacCommand_t *macCmd)
Remove a MAC command.
LoRaMacCommandStatus_t LoRaMacCommandsInit(LoRaMacCommandsNvmEvent commandsNvmCtxChanged)
Initialization of LoRaMac MAC commands module.
size_t PayloadSize
Definition: LoRaMacCommands.h:75
LoRaMacCommandStatus_t LoRaMacCommandsSerializeCmds(size_t availableSize, size_t *effectiveSize, uint8_t *buffer)
Get as many as possible MAC commands serialized.
uint8_t CID
Definition: LoRaMacCommands.h:67
Definition: LoRaMacCommands.h:94
Definition: LoRaMacCommands.h:106
LoRaMacCommandStatus_t
Definition: LoRaMacCommands.h:85
LoRaMacCommandStatus_t LoRaMacCommandsRemoveNoneStickyCmds(void)
Remove all none sticky MAC commands.
Definition: LoRaMacCommands.h:90
bool IsSticky
Definition: LoRaMacCommands.h:79
void * LoRaMacCommandsGetNvmCtx(size_t *commandsNvmCtxSize)
LoRaMacCommandStatus_t LoRaMacCommandsRestoreNvmCtx(void *commandsNvmCtx)
Definition: LoRaMacCommands.h:110
LoRaMacCommandStatus_t LoRaMacCommandsAddCmd(uint8_t cid, uint8_t *payload, size_t payloadSize)
Adds a new MAC command to be sent.
void(* LoRaMacCommandsNvmEvent)(void)
Definition: LoRaMacCommands.h:117