Contains common data structures used by Mbed-OS LoRaWAN mplementation. More...
Go to the source code of this file.
Data Structures | |
struct | band_t |
Default user application maximum data size for transmission. More... | |
struct | rx2_channel_params |
struct | lora_mac_system_params_t |
struct | multicast_params_s |
union | loramac_mhdr_t |
struct | loramac_mhdr_t::hdr_bits_s |
union | loramac_frame_ctrl_t |
struct | loramac_frame_ctrl_t::ctrl_bits_s |
struct | loramac_mcps_confirm_t |
struct | loramac_mcps_indication_t |
struct | mlme_join_req_t |
struct | mlme_cw_tx_mode_t |
struct | loramac_mlme_confirm_t |
struct | loramac_mlme_indication_t |
struct | loramac_tx_message_t |
Stack level TX message structure. More... | |
union | rx_message_u |
lora_mac_rx_message_by_type_t union More... | |
struct | loramac_rx_message_t |
loramac_rx_message_t More... | |
struct | lorawan_session |
LoRaWAN session. More... | |
struct | rx_config_params_t |
struct | timer_event_t |
Timer object description. More... | |
struct | loramac_keys |
struct | lorawan_timers |
struct | loramac_protocol_params |
Macros | |
#define | LORAMAC_MFR_LEN 4 |
#define | LORA_MAC_FRMPAYLOAD_OVERHEAD 13 |
#define | LORA_MAX_NB_CHANNELS 16 |
LoRaMac maximum number of channels. More... | |
#define | LORAMAC_PHY_MAXPAYLOAD 255 |
Maximum PHY layer payload size for reception. More... | |
Typedefs | |
typedef uint32_t | lorawan_time_t |
Timer time variable definition. More... | |
typedef struct multicast_params_s | multicast_params_t |
typedef enum device_states | device_states_t |
End-device states. More... | |
typedef struct lorawan_session | lorawan_session_t |
LoRaWAN session. More... | |
Enumerations |
Contains common data structures used by Mbed-OS LoRaWAN mplementation.
Description: LoRa PHY layer
License: Revised BSD License, see LICENSE.TXT file include in the project
Maintainer: Miguel Luis ( Semtech ), Gregory Cristian ( Semtech ) and Daniel Jaeckle ( STACKFORCE )
Copyright (c) 2017, Arm Limited and affiliates. SPDX-License-Identifier: BSD-3-Clause
Definition in file lorawan_data_structures.h.
#define LORA_MAC_FRMPAYLOAD_OVERHEAD 13 |
The FRMPayload overhead to be used when setting the Radio.SetMaxPayloadLength
in the RxWindowSetup
function. The maximum PHYPayload = MaxPayloadOfDatarate/MaxPayloadOfDatarateRepeater + LORA_MAC_FRMPAYLOAD_OVERHEAD
Definition at line 58 of file lorawan_data_structures.h.
#define LORA_MAX_NB_CHANNELS 16 |
LoRaMac maximum number of channels.
Definition at line 63 of file lorawan_data_structures.h.
#define LORAMAC_MFR_LEN 4 |
Sets the length of the LoRaMAC footer field. Mainly indicates the MIC field length.
Definition at line 51 of file lorawan_data_structures.h.
#define LORAMAC_PHY_MAXPAYLOAD 255 |
Maximum PHY layer payload size for reception.
Definition at line 68 of file lorawan_data_structures.h.
typedef enum device_states device_states_t |
End-device states.
typedef struct lorawan_session lorawan_session_t |
LoRaWAN session.
A structure for keeping session details.
typedef uint32_t lorawan_time_t |
Timer time variable definition.
Definition at line 44 of file lorawan_data_structures.h.
typedef struct multicast_params_s multicast_params_t |
LoRaMAC multicast channel parameter.
LoRaMAC battery level indicator.
Enumerator | |
---|---|
BAT_LEVEL_EXT_SRC |
An external power source. |
BAT_LEVEL_EMPTY |
Battery level empty. |
BAT_LEVEL_FULL |
Battery level full. |
BAT_LEVEL_NO_MEASURE |
Battery level - no measurement available. |
Definition at line 391 of file lorawan_data_structures.h.
enum device_states |
End-device states.
Definition at line 837 of file lorawan_data_structures.h.
The enumeration containing the status of the operation of a MAC service.
Definition at line 479 of file lorawan_data_structures.h.
enum mac_frame_type_t |
LoRaMAC frame types.
LoRaWAN Specification V1.0.2, chapter 4.2.1, table 1.
Definition at line 265 of file lorawan_data_structures.h.
enum mcps_type_t |
LoRaMAC data services.
The following table list the primitives supported by a 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 |
Enumerator | |
---|---|
MCPS_UNCONFIRMED |
Unconfirmed LoRaMAC frame. |
MCPS_CONFIRMED |
Confirmed LoRaMAC frame. |
MCPS_MULTICAST |
Multicast LoRaMAC frame. |
MCPS_PROPRIETARY |
Proprietary frame. |
Definition at line 556 of file lorawan_data_structures.h.
enum mlme_type_t |
LoRaMAC management services.
The following table list the primitives supported by a 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 |
MLME_SCHEDULE_UPLINK | NO | YES | NO | NO |
Definition at line 708 of file lorawan_data_structures.h.
enum mote_mac_cmds_t |
LoRaMAC mote MAC commands.
LoRaWAN Specification V1.0.2, chapter 5, table 4.
Definition at line 305 of file lorawan_data_structures.h.
enum rx_msg_type |
lora_mac_rx_message_type_t
An enum representing a structure for RX messages.
Enumerator | |
---|---|
LORAMAC_RX_MLME_CONFIRM |
lora_mac_mlme_confirm_t |
LORAMAC_RX_MCPS_CONFIRM |
lora_mac_mcps_confirm_t |
LORAMAC_RX_MCPS_INDICATION |
lora_mac_mcps_indication_t |
Definition at line 939 of file lorawan_data_structures.h.
enum rx_slot_t |
LoRaMAC receive window enumeration
Definition at line 137 of file lorawan_data_structures.h.
enum server_mac_cmds_t |
LoRaMAC server MAC commands.
LoRaWAN Specification V1.0.2 chapter 5, table 4.
Definition at line 349 of file lorawan_data_structures.h.