LoRaMAC  4.5.1
Documentation of the API
LoRaMacParser.h File Reference

LoRa MAC layer message parser functionality implementation. More...

#include <stdint.h>
#include "LoRaMacMessageTypes.h"

Go to the source code of this file.

enum  LoRaMacParserStatus_t { LORAMAC_PARSER_SUCCESS = 0, LORAMAC_PARSER_FAIL, LORAMAC_PARSER_ERROR_NPE, LORAMAC_PARSER_ERROR }
 
LoRaMacParserStatus_t LoRaMacParserJoinAccept (LoRaMacMessageJoinAccept_t *macMsg)
 
LoRaMacParserStatus_t LoRaMacParserData (LoRaMacMessageData_t *macMsg)
 

Detailed Description

LoRa MAC layer message parser functionality implementation.

______ _
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
___ _____ _ ___ _ _____ ___ ___ ___ ___
/ __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
\__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
|___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
embedded.connectivity.solutions===============
Author
Miguel Luis ( Semtech )
Gregory Cristian ( Semtech )
Daniel Jaeckle ( STACKFORCE )
Johannes Bruder ( STACKFORCE )

addtogroup LORAMAC

Enumeration Type Documentation

◆ LoRaMacParserStatus_t

LoRaMac Parser Status

Enumerator
LORAMAC_PARSER_SUCCESS 

No error occurred

LORAMAC_PARSER_FAIL 

Failure during parsing occurred

LORAMAC_PARSER_ERROR_NPE 

Null pointer exception

LORAMAC_PARSER_ERROR 

Undefined Error occurred

Function Documentation

◆ LoRaMacParserJoinAccept()

LoRaMacParserStatus_t LoRaMacParserJoinAccept ( LoRaMacMessageJoinAccept_t macMsg)

Parse a serialized join-accept message and fills the structured object.

Parameters
[IN/OUT]macMsg - Join-accept message object
Return values
-Status of the operation

◆ LoRaMacParserData()

LoRaMacParserStatus_t LoRaMacParserData ( LoRaMacMessageData_t macMsg)

Parse a serialized data message and fills the structured object.

Parameters
[IN/OUT]macMsg - Data message object
Return values
-Status of the operation