YZL_WLE5CB_LoRaWAN/MX_Generated/LoRaWAN/App/lora_app.h
Yilin Sun fad4b8b672 Added initial LoRaWAN package, updated SDK.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-05-10 15:03:47 +08:00

75 lines
2.2 KiB
C

/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file lora_app.h
* @author MCD Application Team
* @brief Header of application of the LRWAN Middleware
******************************************************************************
* @attention
*
* Copyright (c) 2023 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LORA_APP_H__
#define __LORA_APP_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
/* USER CODE END ET */
/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */
/* USER CODE END EC */
/* Exported macros -----------------------------------------------------------*/
/* USER CODE BEGIN EM */
#define ACTIVE_REGION LORAMAC_REGION_CN470
#define LORAWAN_DEFAULT_CLASS CLASS_A
#define LORAWAN_ADR_STATE LORAMAC_HANDLER_ADR_ON
#define LORAWAN_DEFAULT_CONFIRMED_MSG_STATE LORAMAC_HANDLER_UNCONFIRMED_MSG
#define LORAWAN_DEFAULT_DATA_RATE DR_0
#define LORAWAN_DEFAULT_TX_POWER TX_POWER_0
#define LORAWAN_DEFAULT_PING_SLOT_PERIODICITY 4
#define LORAWAN_DEFAULT_CLASS_B_C_RESP_TIMEOUT 8000
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/
/**
* @brief Init Lora Application
*/
void LoRaWAN_Init(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */
#ifdef __cplusplus
}
#endif
#endif /*__LORA_APP_H__*/