32 #ifndef MBED_LORAWAN_TYPES_H_ 33 #define MBED_LORAWAN_TYPES_H_ 35 #include "platform/Callback.h" 40 #define LORAWAN_NETWORK_ID_MASK (uint32_t) 0xFE000000 49 #define MSG_UNCONFIRMED_FLAG 0x01 50 #define MSG_CONFIRMED_FLAG 0x02 51 #define MSG_MULTICAST_FLAG 0x04 52 #define MSG_PROPRIETARY_FLAG 0x08 217 TX_CRYPTO_ERROR = CRYPTO_ERROR,
224 AUTOMATIC_UPLINK_ERROR,
The lorawan_connect_abp structure.
enum lora_events lorawan_event_t
Events needed to announce stack operation results.
Services not started - No active session.
dr_range_t dr_range
The data rate definition.
Service not started - payload lenght error.
uint8_t * nwk_skey
Network session key.
The device has already joined a network.
uint8_t connect_type
Select the connection type, either LORAWAN_CONNECTION_OTAA or LORAWAN_CONNECTION_ABP.
enum lorawan_connect_type lorawan_connect_type_t
Enumeration for LoRaWAN connection type.
device_class_t
LoRaWAN device classes definition.
Service not started - LoRaMAC is busy.
struct lorawan_connect lorawan_connect_t
lorawan_connect_t structure
uint8_t * app_key
AES-128 application key.
None of the channels is enabled at the moment.
lorawan_status
lorawan_status_t contains status codes in response to stack operations
DO NOT MODIFY, WILL BREAK THE API!
Cannot perform requested operation.
uint32_t dev_addr
End-device address.
The lorawan_connect_otaa structure.
mbed::Callback< void(lorawan_event_t)> events
Mandatory.
Service not started - invalid frequency and datarate.
uint8_t value
Byte-access to the bits.
Stack level callback functions.
uint8_t * app_skey
Application session key.
enum lorawan_status lorawan_status_t
lorawan_status_t contains status codes in response to stack operations
lorawan_connect_t structure
Activation By Personalization.
Transmission will continue after duty cycle backoff.
lorawan_connect_abp_t abp
Authentication by personalization.
DO NOT MODIFY, WILL BREAK THE API!
Service not started - invalid parameter.
Services started - Idle at the moment.
DO NOT MODIFY, WILL BREAK THE API!
struct lora_channelplan lorawan_channelplan_t
DO NOT MODIFY, WILL BREAK THE API!
mbed::Callback< void(uint8_t, uint8_t)> link_check_resp
This callback is optional.
Service not started - the device is switched off.
lora_events
Events needed to announce stack operation results.
uint8_t * dev_eui
End-device identifier.
uint32_t nwk_id
Network identifier.
uint8_t band
The band index.
Service not started - invalid frequency.
Service not started - the device is not in a LoRaWAN.
Service not started - crypto failure.
uint32_t frequency
The frequency in Hz.
uint32_t rx1_frequency
The alternative frequency for RX window 1.
The structure to store the minimum and the maximum datarate.
Service not started - stack not initialized.
lorawan_connect_type
Enumeration for LoRaWAN connection type.
struct lora_channels_s loramac_channel_t
DO NOT MODIFY, WILL BREAK THE API!
None of the enabled channels is ready for another TX (duty cycle limited)
uint8_t nb_trials
Join request trials.
Services started - Connection in progress.
DO NOT MODIFY, WILL BREAK THE API!
Service not started - invalid datarate.
Meta-data after an RX or TX is stale.
lorawan_connect_otaa_t otaa
Join the network using OTA.
uint8_t * app_eui
Application identifier.
mbed::Callback< uint8_t(void)> battery_level
This callback is optional.
Service started successfully.
LoRaMAC cannot send at the moment or have nothing to read.