![]() |
SX126x-Arduino
2.0.1
|
This module specifies the API implementation of the LoRaMAC layer. This is a placeholder for a detailed description of the LoRaMac layer and the supported features. More...
Data Structures | |
union | uDrRange |
struct | sBand |
struct | sChannelParams |
struct | sRx2ChannelParams |
struct | sLoRaMacParams |
struct | sMulticastParams |
union | uLoRaMacHeader |
union | uLoRaMacFrameCtrl |
union | eLoRaMacFlags_t |
struct | sMcpsReqUnconfirmed |
struct | sMcpsReqConfirmed |
struct | sMcpsReqProprietary |
struct | sMcpsReq |
struct | sMcpsConfirm |
struct | sMcpsIndication |
struct | sMlmeReqJoin |
struct | sMlmeReqTxCw |
struct | sMlmeReq |
struct | sMlmeConfirm |
union | uMibParam |
struct | eMibRequestConfirm |
struct | sLoRaMacTxInfo |
struct | sLoRaMacPrimitives |
struct | sLoRaMacCallback |
Macros | |
#define | MAC_STATE_CHECK_TIMEOUT 250 |
#define | MAX_ACK_RETRIES 8 |
#define | UP_LINK 0 |
#define | DOWN_LINK 1 |
#define | LORAMAC_MFR_LEN 4 |
#define | LORA_MAC_FRMPAYLOAD_OVERHEAD 13 |
Functions | |
LoRaMacStatus_t | LoRaMacInitialization (LoRaMacPrimitives_t *primitives, LoRaMacCallback_t *callbacks, LoRaMacRegion_t region, eDeviceClass nodeClass=CLASS_A) |
LoRaMAC layer initialization. More... | |
uint32_t | LoRaMacGetOTAADevId (void) |
Returns the Device Address set by the LoRaWan server after OTAA join was successful. More... | |
LoRaMacStatus_t | LoRaMacQueryTxPossible (uint8_t size, LoRaMacTxInfo_t *txInfo) |
Queries the LoRaMAC if it is possible to send the next frame with a given payload size. The LoRaMAC takes scheduled MAC commands into account and reports, when the frame can be send or not. More... | |
LoRaMacStatus_t | LoRaMacChannelAdd (uint8_t id, ChannelParams_t params) |
LoRaMAC channel add service. More... | |
LoRaMacStatus_t | LoRaMacChannelRemove (uint8_t id) |
LoRaMAC channel remove service. More... | |
LoRaMacStatus_t | LoRaMacMulticastChannelLink (MulticastParams_t *channelParam) |
LoRaMAC multicast channel link service. More... | |
LoRaMacStatus_t | LoRaMacMulticastChannelUnlink (MulticastParams_t *channelParam) |
LoRaMAC multicast channel unlink service. More... | |
LoRaMacStatus_t | LoRaMacMibGetRequestConfirm (MibRequestConfirm_t *mibGet) |
LoRaMAC MIB-Get. More... | |
LoRaMacStatus_t | LoRaMacMibSetRequestConfirm (MibRequestConfirm_t *mibSet) |
LoRaMAC MIB-Set. More... | |
LoRaMacStatus_t | LoRaMacMlmeRequest (MlmeReq_t *mlmeRequest) |
LoRaMAC MLME-Request. More... | |
LoRaMacStatus_t | LoRaMacMcpsRequest (McpsReq_t *mcpsRequest) |
LoRaMAC MCPS-Request. More... | |
Variables | |
LoRaMacRegion_t | LoRaMacRegion |
static const uint8_t | LoRaMacMaxEirpTable [] = {8, 10, 12, 13, 14, 16, 18, 20, 21, 24, 26, 27, 29, 30, 33, 36} |
This module specifies the API implementation of the LoRaMAC layer. This is a placeholder for a detailed description of the LoRaMac layer and the supported features.
#define MAC_STATE_CHECK_TIMEOUT 250 |
Check the Mac layer state every MAC_STATE_CHECK_TIMEOUT in ms
#define MAX_ACK_RETRIES 8 |
Maximum number of times the MAC layer tries to get an acknowledge.
#define UP_LINK 0 |
Frame direction definition for up-link communications
#define DOWN_LINK 1 |
Frame direction definition for down-link communications
#define LORAMAC_MFR_LEN 4 |
Sets the length of the LoRaMAC footer field. Mainly indicates the MIC field length
#define LORA_MAC_FRMPAYLOAD_OVERHEAD 13 |
FRMPayload overhead to be used when setting the Radio.SetMaxPayloadLength in RxWindowSetup function. Maximum PHYPayload = MaxPayloadOfDatarate/MaxPayloadOfDatarateRepeater + LORA_MAC_FRMPAYLOAD_OVERHEAD
typedef enum eDeviceClass DeviceClass_t |
LoRaWAN devices classes definition
LoRaWAN Specification V1.0.2, chapter 2.1
typedef struct sChannelParams ChannelParams_t |
LoRaMAC channel definition
typedef struct sRx2ChannelParams Rx2ChannelParams_t |
LoRaMAC receive window 2 channel parameters
typedef struct sLoRaMacParams LoRaMacParams_t |
Global MAC layer parameters
typedef struct sMulticastParams MulticastParams_t |
LoRaMAC multicast channel parameter
typedef enum eLoRaMacFrameType LoRaMacFrameType_t |
LoRaMAC frame types
LoRaWAN Specification V1.0.2, chapter 4.2.1, table 1
typedef enum eLoRaMacMoteCmd LoRaMacMoteCmd_t |
LoRaMAC mote MAC commands
LoRaWAN Specification V1.0.2, chapter 5, table 4
typedef enum eLoRaMacSrvCmd LoRaMacSrvCmd_t |
LoRaMAC server MAC commands
LoRaWAN Specification V1.0.2 chapter 5, table 4
typedef enum eLoRaMacBatteryLevel LoRaMacBatteryLevel_t |
LoRaMAC Battery level indicator
typedef union uLoRaMacHeader LoRaMacHeader_t |
LoRaMAC header field definition (MHDR field)
LoRaWAN Specification V1.0.2, chapter 4.2
typedef union uLoRaMacFrameCtrl LoRaMacFrameCtrl_t |
LoRaMAC frame control field definition (FCtrl)
LoRaWAN Specification V1.0.2, chapter 4.3.1
typedef enum eLoRaMacEventInfoStatus LoRaMacEventInfoStatus_t |
Enumeration containing the status of the operation of a MAC service
typedef union eLoRaMacFlags_t LoRaMacFlags_t |
LoRaMac tx/rx operation state
LoRaMAC data services.
The following table list the primitives which are supported by the specific MAC data service:
Name | Request | Indication | Response | Confirm |
---|---|---|---|---|
MCPS_UNCONFIRMED | YES | YES | NO | YES |
MCPS_CONFIRMED | YES | YES | NO | YES |
MCPS_MULTICAST | NO | YES | NO | NO |
MCPS_PROPRIETARY | YES | YES | NO | YES |
The following table provides links to the function implementations of the related MCPS primitives:
Primitive | Function |
---|---|
MCPS-Request | LoRaMacMlmeRequest |
MCPS-Confirm | MacMcpsConfirm in LoRaMacPrimitives_t |
MCPS-Indication | MacMcpsIndication in LoRaMacPrimitives_t |
typedef struct sMcpsReqUnconfirmed McpsReqUnconfirmed_t |
LoRaMAC MCPS-Request for an unconfirmed frame
typedef struct sMcpsReqConfirmed McpsReqConfirmed_t |
LoRaMAC MCPS-Request for a confirmed frame
typedef struct sMcpsReqProprietary McpsReqProprietary_t |
LoRaMAC MCPS-Request for a proprietary frame
typedef struct sMcpsConfirm McpsConfirm_t |
LoRaMAC MCPS-Confirm
typedef struct sMcpsIndication McpsIndication_t |
LoRaMAC MCPS-Indication primitive
LoRaMAC management services.
The following table list the primitives which are supported by the specific MAC management service:
Name | Request | Indication | Response | Confirm |
---|---|---|---|---|
MLME_JOIN | YES | NO | NO | YES |
MLME_LINK_CHECK | YES | NO | NO | YES |
MLME_TXCW | YES | NO | NO | YES |
The following table provides links to the function implementations of the related MLME primitives.
Primitive | Function |
---|---|
MLME-Request | LoRaMacMlmeRequest |
MLME-Confirm | MacMlmeConfirm in LoRaMacPrimitives_t |
typedef struct sMlmeReqJoin MlmeReqJoin_t |
LoRaMAC MLME-Request for the join service
typedef struct sMlmeReqTxCw MlmeReqTxCw_t |
LoRaMAC MLME-Request for Tx continuous wave mode
typedef struct sMlmeConfirm MlmeConfirm_t |
LoRaMAC MLME-Confirm primitive
LoRa Mac Information Base (MIB)
The following table lists the MIB parameters and the related attributes:
Attribute | Get | Set |
---|---|---|
MIB_DEVICE_CLASS | YES | YES |
MIB_NETWORK_JOINED | YES | YES |
MIB_ADR | YES | YES |
MIB_NET_ID | YES | YES |
MIB_DEV_ADDR | YES | YES |
MIB_NWK_SKEY | YES | YES |
MIB_APP_SKEY | YES | YES |
MIB_PUBLIC_NETWORK | YES | YES |
MIB_REPEATER_SUPPORT | YES | YES |
MIB_CHANNELS | YES | NO |
MIB_RX2_CHANNEL | YES | YES |
MIB_CHANNELS_MASK | YES | YES |
MIB_CHANNELS_DEFAULT_MASK | YES | YES |
MIB_CHANNELS_NB_REP | YES | YES |
MIB_MAX_RX_WINDOW_DURATION | YES | YES |
MIB_RECEIVE_DELAY_1 | YES | YES |
MIB_RECEIVE_DELAY_2 | YES | YES |
MIB_JOIN_ACCEPT_DELAY_1 | YES | YES |
MIB_JOIN_ACCEPT_DELAY_2 | YES | YES |
MIB_CHANNELS_DATARATE | YES | YES |
MIB_CHANNELS_DEFAULT_DATARATE | YES | YES |
MIB_CHANNELS_TX_POWER | YES | YES |
MIB_CHANNELS_DEFAULT_TX_POWER | YES | YES |
MIB_UPLINK_COUNTER | YES | YES |
MIB_DOWNLINK_COUNTER | YES | YES |
MIB_MULTICAST_CHANNEL | YES | NO |
MIB_SYSTEM_MAX_RX_ERROR | YES | YES |
MIB_MIN_RX_SYMBOLS | YES | YES |
MIB_ANTENNA_GAIN | YES | YES |
The following table provides links to the function implementations of the related MIB primitives:
Primitive | Function |
---|---|
MIB-Set | LoRaMacMibSetRequestConfirm |
MIB-Get | LoRaMacMibGetRequestConfirm |
typedef enum eJoinStatus eJoinStatus_t |
Network Joined status
typedef union uMibParam MibParam_t |
LoRaMAC MIB parameters
typedef struct eMibRequestConfirm MibRequestConfirm_t |
LoRaMAC MIB-RequestConfirm structure
typedef struct sLoRaMacTxInfo LoRaMacTxInfo_t |
LoRaMAC tx information
typedef enum eLoRaMacStatus LoRaMacStatus_t |
LoRaMAC Status
typedef enum eLoRaMacRegion_t LoRaMacRegion_t |
LoRaMAC region enumeration
typedef struct sLoRaMacPrimitives LoRaMacPrimitives_t |
LoRaMAC events structure Used to notify upper layers of MAC events
typedef struct sLoRaMacCallback LoRaMacCallback_t |
LoRaMAC callback structure
enum eDeviceClass |
LoRaWAN devices classes definition
LoRaWAN Specification V1.0.2, chapter 2.1
enum eLoRaMacFrameType |
LoRaMAC frame types
LoRaWAN Specification V1.0.2, chapter 4.2.1, table 1
enum eLoRaMacMoteCmd |
LoRaMAC mote MAC commands
LoRaWAN Specification V1.0.2, chapter 5, table 4
enum eLoRaMacSrvCmd |
LoRaMAC server MAC commands
LoRaWAN Specification V1.0.2 chapter 5, table 4
enum eLoRaMacBatteryLevel |
Enumeration containing the status of the operation of a MAC service
enum eMcps |
LoRaMAC data services.
The following table list the primitives which are supported by the specific MAC data service:
Name | Request | Indication | Response | Confirm |
---|---|---|---|---|
MCPS_UNCONFIRMED | YES | YES | NO | YES |
MCPS_CONFIRMED | YES | YES | NO | YES |
MCPS_MULTICAST | NO | YES | NO | NO |
MCPS_PROPRIETARY | YES | YES | NO | YES |
The following table provides links to the function implementations of the related MCPS primitives:
Primitive | Function |
---|---|
MCPS-Request | LoRaMacMlmeRequest |
MCPS-Confirm | MacMcpsConfirm in LoRaMacPrimitives_t |
MCPS-Indication | MacMcpsIndication in LoRaMacPrimitives_t |
Enumerator | |
---|---|
MCPS_UNCONFIRMED | Unconfirmed LoRaMAC frame |
MCPS_CONFIRMED | Confirmed LoRaMAC frame |
MCPS_MULTICAST | Multicast LoRaMAC frame |
MCPS_PROPRIETARY | Proprietary frame |
enum eMlme |
LoRaMAC management services.
The following table list the primitives which are supported by the specific MAC management service:
Name | Request | Indication | Response | Confirm |
---|---|---|---|---|
MLME_JOIN | YES | NO | NO | YES |
MLME_LINK_CHECK | YES | NO | NO | YES |
MLME_TXCW | YES | NO | NO | YES |
The following table provides links to the function implementations of the related MLME primitives.
Primitive | Function |
---|---|
MLME-Request | LoRaMacMlmeRequest |
MLME-Confirm | MacMlmeConfirm in LoRaMacPrimitives_t |
enum eMib |
LoRa Mac Information Base (MIB)
The following table lists the MIB parameters and the related attributes:
Attribute | Get | Set |
---|---|---|
MIB_DEVICE_CLASS | YES | YES |
MIB_NETWORK_JOINED | YES | YES |
MIB_ADR | YES | YES |
MIB_NET_ID | YES | YES |
MIB_DEV_ADDR | YES | YES |
MIB_NWK_SKEY | YES | YES |
MIB_APP_SKEY | YES | YES |
MIB_PUBLIC_NETWORK | YES | YES |
MIB_REPEATER_SUPPORT | YES | YES |
MIB_CHANNELS | YES | NO |
MIB_RX2_CHANNEL | YES | YES |
MIB_CHANNELS_MASK | YES | YES |
MIB_CHANNELS_DEFAULT_MASK | YES | YES |
MIB_CHANNELS_NB_REP | YES | YES |
MIB_MAX_RX_WINDOW_DURATION | YES | YES |
MIB_RECEIVE_DELAY_1 | YES | YES |
MIB_RECEIVE_DELAY_2 | YES | YES |
MIB_JOIN_ACCEPT_DELAY_1 | YES | YES |
MIB_JOIN_ACCEPT_DELAY_2 | YES | YES |
MIB_CHANNELS_DATARATE | YES | YES |
MIB_CHANNELS_DEFAULT_DATARATE | YES | YES |
MIB_CHANNELS_TX_POWER | YES | YES |
MIB_CHANNELS_DEFAULT_TX_POWER | YES | YES |
MIB_UPLINK_COUNTER | YES | YES |
MIB_DOWNLINK_COUNTER | YES | YES |
MIB_MULTICAST_CHANNEL | YES | NO |
MIB_SYSTEM_MAX_RX_ERROR | YES | YES |
MIB_MIN_RX_SYMBOLS | YES | YES |
MIB_ANTENNA_GAIN | YES | YES |
The following table provides links to the function implementations of the related MIB primitives:
Primitive | Function |
---|---|
MIB-Set | LoRaMacMibSetRequestConfirm |
MIB-Get | LoRaMacMibGetRequestConfirm |
Enumerator | |
---|---|
MIB_DEVICE_CLASS | LoRaWAN device class LoRaWAN Specification V1.0.2 |
MIB_NETWORK_JOINED | LoRaWAN Network joined attribute LoRaWAN Specification V1.0.2 |
MIB_ADR | Adaptive data rate LoRaWAN Specification V1.0.2, chapter 4.3.1.1 [true: ADR enabled, false: ADR disabled] |
MIB_NET_ID | Network identifier LoRaWAN Specification V1.0.2, chapter 6.1.1 |
MIB_DEV_ADDR | End-device address LoRaWAN Specification V1.0.2, chapter 6.1.1 |
MIB_NWK_SKEY | Network session key LoRaWAN Specification V1.0.2, chapter 6.1.3 |
MIB_APP_SKEY | Application session key LoRaWAN Specification V1.0.2, chapter 6.1.4 |
MIB_PUBLIC_NETWORK | Set the network type to public or private LoRaWAN Regional Parameters V1.0.2rB [true: public network, false: private network] |
MIB_REPEATER_SUPPORT | Support the operation with repeaters LoRaWAN Regional Parameters V1.0.2rB [true: repeater support enabled, false: repeater support disabled] |
MIB_CHANNELS | Communication channels. A get request will return a pointer which references the first entry of the channel list. The list is of size LORA_MAX_NB_CHANNELS LoRaWAN Regional Parameters V1.0.2rB |
MIB_RX2_CHANNEL | Set receive window 2 channel LoRaWAN Specification V1.0.2, chapter 3.3.1 |
MIB_RX2_DEFAULT_CHANNEL | Set receive window 2 channel LoRaWAN Specification V1.0.2, chapter 3.3.2 |
MIB_CHANNELS_MASK | LoRaWAN channels mask LoRaWAN Regional Parameters V1.0.2rB |
MIB_CHANNELS_DEFAULT_MASK | LoRaWAN default channels mask LoRaWAN Regional Parameters V1.0.2rB |
MIB_CHANNELS_NB_REP | Set the number of repetitions on a channel LoRaWAN Specification V1.0.2, chapter 5.2 |
MIB_MAX_RX_WINDOW_DURATION | Maximum receive window duration in [ms] LoRaWAN Specification V1.0.2, chapter 3.3.3 |
MIB_RECEIVE_DELAY_1 | Receive delay 1 in [ms] LoRaWAN Regional Parameters V1.0.2rB |
MIB_RECEIVE_DELAY_2 | Receive delay 2 in [ms] LoRaWAN Regional Parameters V1.0.2rB |
MIB_JOIN_ACCEPT_DELAY_1 | Join accept delay 1 in [ms] LoRaWAN Regional Parameters V1.0.2rB |
MIB_JOIN_ACCEPT_DELAY_2 | Join accept delay 2 in [ms] LoRaWAN Regional Parameters V1.0.2rB |
MIB_CHANNELS_DEFAULT_DATARATE | Default Data rate of a channel LoRaWAN Regional Parameters V1.0.2rB The allowed ranges are region specific. Please refer to DR_0 to DR_15 for details. |
MIB_CHANNELS_DATARATE | Data rate of a channel LoRaWAN Regional Parameters V1.0.2rB The allowed ranges are region specific. Please refer to DR_0 to DR_15 for details. |
MIB_CHANNELS_TX_POWER | Transmission power of a channel LoRaWAN Regional Parameters V1.0.2rB The allowed ranges are region specific. Please refer to TX_POWER_0 to TX_POWER_15 for details. |
MIB_CHANNELS_DEFAULT_TX_POWER | Transmission power of a channel LoRaWAN Regional Parameters V1.0.2rB The allowed ranges are region specific. Please refer to TX_POWER_0 to TX_POWER_15 for details. |
MIB_UPLINK_COUNTER | LoRaWAN Up-link counter LoRaWAN Specification V1.0.2, chapter 4.3.1.5 |
MIB_DOWNLINK_COUNTER | LoRaWAN Down-link counter LoRaWAN Specification V1.0.2, chapter 4.3.1.5 |
MIB_MULTICAST_CHANNEL | Multicast channels. A get request will return a pointer to the first entry of the multicast channel linked list. If the pointer is equal to NULL, the list is empty. |
MIB_SYSTEM_MAX_RX_ERROR | System overall timing error in milliseconds. [-SystemMaxRxError : +SystemMaxRxError] Default: +/-10 ms |
MIB_MIN_RX_SYMBOLS | Minimum required number of symbols to detect an Rx frame Default: 6 symbols |
MIB_ANTENNA_GAIN | Antenna gain of the node. Default value is region specific. The antenna gain is used to calculate the TX power of the node. The formula is: radioTxPower = ( int8_t )floor( maxEirp - antennaGain ) |
enum eJoinStatus |
enum eLoRaMacStatus |
LoRaMAC Status
enum eLoRaMacRegion_t |
LoRaMAC region enumeration
LoRaMacStatus_t LoRaMacInitialization | ( | LoRaMacPrimitives_t * | primitives, |
LoRaMacCallback_t * | callbacks, | ||
LoRaMacRegion_t | region, | ||
eDeviceClass | nodeClass = CLASS_A |
||
) |
LoRaMAC layer initialization.
In addition to the initialization of the LoRaMAC layer, this function initializes the callback primitives of the MCPS and MLME services. Every data field of LoRaMacPrimitives_t must be set to a valid callback function.
primitives | - Pointer to a structure defining the LoRaMAC event functions. Refer to LoRaMacPrimitives_t. |
callbacks | - Pointer to a structure defining the LoRaMAC callback functions. Refer to LoRaMacCallback_t. |
region | - The region to start. |
nodeClass | - Choose node class CLASS_A, CLASS_B or CLASS_C, default to CLASS_A |
LoRaMacStatus_t | Status of the operation. Possible returns are: returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_PARAMETER_INVALID, LORAMAC_STATUS_REGION_NOT_SUPPORTED. |
uint32_t LoRaMacGetOTAADevId | ( | void | ) |
Returns the Device Address set by the LoRaWan server after OTAA join was successful.
Device | Address given by the LoRaWan server |
LoRaMacStatus_t LoRaMacQueryTxPossible | ( | uint8_t | size, |
LoRaMacTxInfo_t * | txInfo | ||
) |
Queries the LoRaMAC if it is possible to send the next frame with a given payload size. The LoRaMAC takes scheduled MAC commands into account and reports, when the frame can be send or not.
size | - Size of applicative payload to be send next |
txInfo | - The structure LoRaMacTxInfo_t contains information about the actual maximum payload possible ( according to the configured datarate or the next datarate according to ADR ), and the maximum frame size, taking the scheduled MAC commands into account. |
LoRaMacStatus_t | Status of the operation. When the parameters are not valid, the function returns LORAMAC_STATUS_PARAMETER_INVALID. In case of a length error caused by the applicative payload in combination with the MAC commands, the function returns LORAMAC_STATUS_LENGTH_ERROR. Please note that if the size of the MAC commands which are in the queue do not fit into the payload size on the related datarate, the LoRaMAC will omit the MAC commands. In case the query is valid, and the LoRaMAC is able to send the frame, the function returns LORAMAC_STATUS_OK. |
LoRaMacStatus_t LoRaMacChannelAdd | ( | uint8_t | id, |
ChannelParams_t | params | ||
) |
LoRaMAC channel add service.
Adds a new channel to the channel list and activates the id in the channel mask. Please note that this functionality is not available on all regions. Information about allowed ranges are available at the LoRaWAN Regional Parameters V1.0.2rB
id | - Id of the channel. |
params | - Channel parameters to set. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_PARAMETER_INVALID. |
LoRaMacStatus_t LoRaMacChannelRemove | ( | uint8_t | id | ) |
LoRaMAC channel remove service.
Deactivates the id in the channel mask.
id | - Id of the channel. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_PARAMETER_INVALID. |
LoRaMacStatus_t LoRaMacMulticastChannelLink | ( | MulticastParams_t * | channelParam | ) |
LoRaMAC multicast channel link service.
Links a multicast channel into the linked list.
channelParam | - Multicast channel parameters to link. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_PARAMETER_INVALID. |
LoRaMacStatus_t LoRaMacMulticastChannelUnlink | ( | MulticastParams_t * | channelParam | ) |
LoRaMAC multicast channel unlink service.
Unlinks a multicast channel from the linked list.
channelParam | - Multicast channel parameters to unlink. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_PARAMETER_INVALID. |
LoRaMacStatus_t LoRaMacMibGetRequestConfirm | ( | MibRequestConfirm_t * | mibGet | ) |
LoRaMAC MIB-Get.
The mac information base service to get attributes of the LoRaMac layer.
The following code-snippet shows how to use the API to get the parameter AdrEnable, defined by the enumeration type MIB_ADR.
mibGet | - MIB-GET-Request to perform. Refer to MibRequestConfirm_t. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_SERVICE_UNKNOWN, LORAMAC_STATUS_PARAMETER_INVALID. |
LoRaMacStatus_t LoRaMacMibSetRequestConfirm | ( | MibRequestConfirm_t * | mibSet | ) |
LoRaMAC MIB-Set.
The mac information base service to set attributes of the LoRaMac layer.
The following code-snippet shows how to use the API to set the parameter AdrEnable, defined by the enumeration type MIB_ADR.
mibSet | - MIB-SET-Request to perform. Refer to MibRequestConfirm_t. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_SERVICE_UNKNOWN, LORAMAC_STATUS_PARAMETER_INVALID. |
LoRaMacStatus_t LoRaMacMlmeRequest | ( | MlmeReq_t * | mlmeRequest | ) |
LoRaMAC MLME-Request.
The Mac layer management entity handles management services. The following code-snippet shows how to use the API to perform a network join request.
mlmeRequest | - MLME-Request to perform. Refer to MlmeReq_t. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_SERVICE_UNKNOWN, LORAMAC_STATUS_PARAMETER_INVALID, LORAMAC_STATUS_NO_NETWORK_JOINED, LORAMAC_STATUS_LENGTH_ERROR, LORAMAC_STATUS_DEVICE_OFF. |
LoRaMacStatus_t LoRaMacMcpsRequest | ( | McpsReq_t * | mcpsRequest | ) |
LoRaMAC MCPS-Request.
The Mac Common Part Sublayer handles data services. The following code-snippet shows how to use the API to send an unconfirmed LoRaMAC frame.
mcpsRequest | - MCPS-Request to perform. Refer to McpsReq_t. |
LoRaMacStatus_t | Status of the operation. Possible returns are: LORAMAC_STATUS_OK, LORAMAC_STATUS_BUSY, LORAMAC_STATUS_SERVICE_UNKNOWN, LORAMAC_STATUS_PARAMETER_INVALID, LORAMAC_STATUS_NO_NETWORK_JOINED, LORAMAC_STATUS_LENGTH_ERROR, LORAMAC_STATUS_DEVICE_OFF. |
LoRaMacRegion_t LoRaMacRegion |
LoRaMac region.
|
static |
LoRaMAC Max EIRP (dBm) table