34#ifndef LORAWAN_SYSTEM_LORAWAN_DATA_STRUCTURES_H_
35#define LORAWAN_SYSTEM_LORAWAN_DATA_STRUCTURES_H_
51#define LORAMAC_MFR_LEN 4
58#define LORA_MAC_FRMPAYLOAD_OVERHEAD 13
63#define LORA_MAX_NB_CHANNELS 16
68#define LORAMAC_PHY_MAXPAYLOAD 255
70#define LORAWAN_DEFAULT_QOS 1
77#if MBED_CONF_LORA_TX_MAX_SIZE > 255
78#warning "Cannot set TX Max size more than MTU=255"
79#define MBED_CONF_LORA_TX_MAX_SIZE 255
838 DEVICE_STATE_NOT_INITIALIZED,
839 DEVICE_STATE_JOINING,
841 DEVICE_STATE_CONNECTING,
842 DEVICE_STATE_AWAITING_JOIN_ACCEPT,
843 DEVICE_STATE_RECEIVING,
844 DEVICE_STATE_CONNECTED,
845 DEVICE_STATE_SCHEDULING,
846 DEVICE_STATE_SENDING,
847 DEVICE_STATE_AWAITING_ACK,
848 DEVICE_STATE_STATUS_CHECK,
849 DEVICE_STATE_SHUTDOWN
920 uint8_t f_buffer[MBED_CONF_LORA_TX_MAX_SIZE];
963 uint16_t pending_size;
964 uint16_t prev_read_size;
1082 uint8_t nwk_skey[16];
1088 uint8_t app_skey[16];
1288 uint32_t rx_window2_delay;
Callback class based on template specialization.
mlme_type_t
LoRaMAC management services.
enum device_states device_states_t
End-device states.
#define LORAMAC_PHY_MAXPAYLOAD
Maximum PHY layer payload size for reception.
rx_msg_type
lora_mac_rx_message_type_t
@ 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
device_states
End-device states.
@ FRAME_TYPE_DATA_UNCONFIRMED_DOWN
@ FRAME_TYPE_DATA_UNCONFIRMED_UP
@ FRAME_TYPE_DATA_CONFIRMED_UP
@ FRAME_TYPE_DATA_CONFIRMED_DOWN
struct multicast_params_s multicast_params_t
mcps_type_t
LoRaMAC data services.
@ MOTE_MAC_LINK_CHECK_REQ
@ MOTE_MAC_RX_PARAM_SETUP_ANS
@ MOTE_MAC_DUTY_CYCLE_ANS
@ MOTE_MAC_TX_PARAM_SETUP_ANS
@ MOTE_MAC_DL_CHANNEL_ANS
@ MOTE_MAC_NEW_CHANNEL_ANS
@ MOTE_MAC_RX_TIMING_SETUP_ANS
@ MOTE_MAC_DEV_STATUS_ANS
struct lorawan_session lorawan_session_t
LoRaWAN session.
@ SRV_MAC_NEW_CHANNEL_REQ
@ SRV_MAC_RX_PARAM_SETUP_REQ
@ SRV_MAC_TX_PARAM_SETUP_REQ
@ SRV_MAC_RX_TIMING_SETUP_REQ
uint32_t lorawan_time_t
Timer time variable definition.
loramac_event_info_status_t
@ LORAMAC_EVENT_INFO_STATUS_TX_TIMEOUT
@ LORAMAC_EVENT_INFO_STATUS_MIC_FAIL
@ LORAMAC_EVENT_INFO_STATUS_ERROR
@ LORAMAC_EVENT_INFO_STATUS_TX_DR_PAYLOAD_SIZE_ERROR
@ LORAMAC_EVENT_INFO_STATUS_RX2_TIMEOUT
@ LORAMAC_EVENT_INFO_STATUS_CRYPTO_FAIL
@ LORAMAC_EVENT_INFO_STATUS_RX1_ERROR
@ LORAMAC_EVENT_INFO_STATUS_OK
@ LORAMAC_EVENT_INFO_STATUS_DOWNLINK_REPEATED
@ LORAMAC_EVENT_INFO_STATUS_DOWNLINK_TOO_MANY_FRAMES_LOST
@ LORAMAC_EVENT_INFO_STATUS_RX1_TIMEOUT
@ LORAMAC_EVENT_INFO_STATUS_ADDRESS_FAIL
@ LORAMAC_EVENT_INFO_STATUS_JOIN_FAIL
@ LORAMAC_EVENT_INFO_STATUS_RX2_ERROR
Contains data structures required by LoRaWANBase class.
Default user application maximum data size for transmission.
lorawan_time_t last_tx_time
uint32_t higher_band_freq
lorawan_time_t last_join_tx_time
uint32_t join_accept_delay2
uint32_t join_accept_delay1
uint16_t aggregated_duty_cycle
uint8_t downlink_dwell_time
uint8_t uplink_dwell_time
rx2_channel_params rx2_channel
uint32_t ul_frame_counter
loramac_event_info_status_t status
uint32_t dl_frame_counter
loramac_event_info_status_t status
loramac_event_info_status_t status
mlme_type_t indication_type
uint8_t max_join_request_trials
lora_mac_system_params_t sys_params
uint32_t ul_frame_counter
uint8_t ul_nb_rep_counter
multicast_params_t * multicast_channels
rx_config_params_t rx_window1_config
uint8_t max_ack_timeout_retries
bool is_srv_ack_requested
bool is_ack_retry_timeout_expired
uint8_t join_request_trial_counter
uint32_t dl_frame_counter
uint8_t ack_timeout_retry_counter
bool is_rx_window_enabled
bool is_repeater_supported
bool is_last_tx_join_request
bool is_node_ack_requested
uint32_t rx_window1_delay
Stack level TX message structure.
uint16_t pending_size
Pending data size.
uint16_t f_buffer_size
Payload size.
uint8_t port
Application Port Number.
mcps_type_t type
Message type.
bool tx_ongoing
TX Ongoing flag.
bool active
True if the session is active.
uint32_t downlink_counter
LoRaWAN downlink counter.
uint32_t uplink_counter
LoRaWAN uplink counter.
timer_event_t rx_window1_timer
timer_event_t ack_timeout_timer
lorawan_time_t aggregated_last_tx_time
lorawan_time_t mac_init_time
timer_event_t backoff_timer
struct multicast_params_s * next
uint32_t dl_frame_counter
uint32_t window_timeout_ms
bool is_repeater_supported
Timer object description.
lora_mac_rx_message_by_type_t union