L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
lora_info.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file lora_info.h
5 * @author MCD Application Team
6 * @brief To give info to the application about LoRaWAN configuration
7 ******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2026 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20
21#ifndef __LORA_INFO_H__
22#define __LORA_INFO_H__
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/* Includes ------------------------------------------------------------------*/
29#include <stdint.h>
30
31/* USER CODE BEGIN Includes */
32
33/* USER CODE END Includes */
34
35/* Exported constants --------------------------------------------------------*/
36
37/* USER CODE BEGIN EC */
38
39/* USER CODE END EC */
40
41/* Exported types ------------------------------------------------------------*/
42/*!
43 * To give info to the application about LoraWAN capability
44 * it can depend how it has been compiled (e.g. compiled regions ...)
45 * Params should be better uint32_t foe easier alignment with info_table concept
46 */
47typedef struct
48{
49 uint32_t ContextManagement; /*!< 0: not compiled in Mw, 1 : compiled in MW */
50 uint32_t Region; /*!< Combination of regions compiled on MW */
51 uint32_t ClassB; /*!< 0: not compiled in Mw, 1 : compiled in MW */
52 uint32_t Kms; /*!< 0: not compiled in Mw, 1 : compiled in MW */
54
55/* USER CODE BEGIN ET */
56
57/* USER CODE END ET */
58
59/* External variables --------------------------------------------------------*/
60
61/* USER CODE BEGIN EV */
62
63/* USER CODE END EV */
64
65/* Exported macros -----------------------------------------------------------*/
66
67/* USER CODE BEGIN EM */
68
69/* USER CODE END EM */
70
71/* Exported functions ------------------------------------------------------- */
72/**
73 * @brief initialize the LoraInfo table
74 */
75void LoraInfo_Init(void);
76
77/**
78 * @brief returns the pointer to the LoraInfo capabilities table
79 * @retval LoraInfo pointer
80 */
82
83/* USER CODE BEGIN EF */
84
85/* USER CODE END EF */
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* __LORA_INFO_H__ */
LoraInfo_t * LoraInfo_GetPtr(void)
returns the pointer to the LoraInfo capabilities table
Definition lora_info.c:143
void LoraInfo_Init(void)
initialize the LoraInfo table
Definition lora_info.c:69
uint32_t ContextManagement
Definition lora_info.h:49
uint32_t Kms
Definition lora_info.h:52
uint32_t ClassB
Definition lora_info.h:51
uint32_t Region
Definition lora_info.h:50