LoRaMAC header definitions. More...
LoRaMAC header definitions.
Definition in file loramac.h.
Include dependency graph for loramac.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | loramac_channel_t |
| A LoRaMAC network channel. More... | |
Macros | |
| #define | CONFIG_LORAMAC_DEV_EUI_DEFAULT "0000000000000000" |
| Default device EUI. More... | |
| #define | CONFIG_LORAMAC_JOIN_EUI_DEFAULT "0000000000000000" |
| Default join EUI. More... | |
| #define | CONFIG_LORAMAC_APP_EUI_DEFAULT "0000000000000000" |
| Default application EUI. More... | |
| #define | CONFIG_LORAMAC_APP_KEY_DEFAULT "00000000000000000000000000000000" |
| Default application key. More... | |
| #define | CONFIG_LORAMAC_NWK_KEY_DEFAULT "00000000000000000000000000000000" |
| Default network key. More... | |
| #define | CONFIG_LORAMAC_APP_SKEY_DEFAULT "00000000000000000000000000000000" |
| Default application session key. More... | |
| #define | CONFIG_LORAMAC_NWK_SKEY_DEFAULT "00000000000000000000000000000000" |
| Default network session key. More... | |
| #define | CONFIG_LORAMAC_FNWKSINT_KEY_DEFAULT "00000000000000000000000000000000" |
| Default network session integrity key. More... | |
| #define | CONFIG_LORAMAC_SNWKSINT_KEY_DEFAULT "00000000000000000000000000000000" |
| Default serving network session integrity key. More... | |
| #define | CONFIG_LORAMAC_NWKSENC_KEY_DEFAULT "00000000000000000000000000000000" |
| Default network session encryption key. More... | |
| #define | CONFIG_LORAMAC_DEV_ADDR_DEFAULT "00000000" |
| Default device address. | |
| #define | CONFIG_LORAMAC_REGION_EU_868 1 |
| Default LoRaWAN region. | |
| #define | CONFIG_LORAMAC_DEFAULT_DEVICE_CLASS (LORAMAC_CLASS_A) |
| Default device class (A, B or C) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_NETID (1U) |
| Default NetID (only valid with ABP join procedure) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_PRIVATE_NETWORK |
| Toggle network type (public or private) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_DR (LORAMAC_DR_0) |
| Default datarate index. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_TX_POWER (LORAMAC_TX_PWR_1) |
| Default MAC TX power index. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_TX_PORT (2U) |
| Default MAC TX port (from 1 to 223) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_TX_MODE (LORAMAC_TX_CNF) |
| Default MAC TX mode (confirmable or unconfirmable) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_REDUNDANCY (0U) |
| Default redundancy for unconfirmed uplink. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_ADR |
| Enable/disable adaptive datarate state. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_RETX (5U) |
| Default uplink retransmission. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_LINKCHK (0U) |
| Default link check interval (in seconds) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_RX1_DELAY (1000U) |
| Default first RX window delay (in ms) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_JOIN_PROCEDURE (LORAMAC_JOIN_OTAA) |
| Default second RX (RX2) window datarate index. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_JOIN_DELAY1 (5U) |
| Default LoRaMAC join accept delay 1 (in seconds) More... | |
| #define | CONFIG_LORAMAC_DEFAULT_JOIN_DELAY2 (6U) |
| Default LoRaMAC join accept delay 2. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_MAX_FCNT_GAP (16384U) |
| Default max FCNT gap. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR (50) |
| Default maximum system overall timing error. More... | |
| #define | CONFIG_LORAMAC_DEFAULT_MIN_RX_SYMBOLS (12) |
| Default minimum RX symbols to detect a frame. More... | |
| #define | LORAMAC_DEFAULT_ADR_ACK_LIMIT (64U) |
| Default adaptive datarate ACK limit (in s) More... | |
| #define | LORAMAC_DEFAULT_ADR_ACK_DELAY (32U) |
| Default adaptive datarate ACK delay (in s) More... | |
| #define | LORAMAC_DEFAULT_ADR_TIMEOUT (3U) |
| Default adaptive datarate timeout. More... | |
| #define | LORAMAC_DEFAULT_RX2_DELAY (1000U + CONFIG_LORAMAC_DEFAULT_RX1_DELAY) |
| Default second RX window delay (in ms) | |
Functions | |
| static uint32_t | lora_time_on_air (size_t pkt_len, loramac_dr_idx_t dr, uint8_t cr) |
| Compute the time on air of a LoRa packet. More... | |
LoRaMAC constants | |
| #define | LORAMAC_DEVEUI_LEN (8U) |
| Device EUI length in bytes. | |
| #define | LORAMAC_DEVADDR_LEN (4U) |
| Device address length in bytes. | |
| #define | LORAMAC_APPEUI_LEN (8U) |
| Application EUI length in bytes. | |
| #define | LORAMAC_JOINEUI_LEN (8U) |
| Join EUI length in bytes. | |
| #define | LORAMAC_APPKEY_LEN (16U) |
| Application key length in bytes. | |
| #define | LORAMAC_NWKKEY_LEN (16U) |
| Network key length in bytes. | |
| #define | LORAMAC_APPSKEY_LEN (16U) |
| Application session key length in bytes. | |
| #define | LORAMAC_NWKSKEY_LEN (16U) |
| Network session key length in bytes. | |
| #define | LORAMAC_FNWKSINTKEY_LEN (16U) |
| Forwarding Network session integrity key length in bytes. | |
| #define | LORAMAC_SNWKSINTKEY_LEN (16U) |
| Serving Network session integrity key length in bytes. | |
| #define | LORAMAC_NWKSENCKEY_LEN (16U) |
| Network session encryption key length in bytes. | |
| #define | LORAMAC_JSINTKEY_LEN (16U) |
| Join session integrity key length in bytes. More... | |
| #define | LORAMAC_JSENCKEY_LEN (16U) |
| Join session encryption key length in bytes. | |
| #define | LORAMAC_JSINTKEY_LEN (16U) |
| Join session integrity key length in bytes. More... | |
| #define | LORAMAC_PORT_MIN (1U) |
| Minimum port value. | |
| #define | LORAMAC_PORT_MAX (223U) |
| Maximum port value. | |
| #define | LORAMAC_APP_NONCE_LEN (3U) |
| Application Nonce length in bytes. | |
| #define | LORAMAC_JOIN_NONCE_LEN (3U) |
| Join nonce length in bytes. | |
| #define | LORAMAC_NETWORK_ID_LEN (3U) |
| Network ID length in bytes. | |
| #define | LORAMAC_CHANNELS_MASK_LEN (1U) |
| Channel mask length. More... | |