L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
utilities_def.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file utilities_def.h
5 * @author MCD Application Team
6 * @brief Definitions for modules requiring utilities
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/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __UTILITIES_DEF_H__
23#define __UTILITIES_DEF_H__
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include <stddef.h>
31/* USER CODE BEGIN Includes */
32
33/* USER CODE END Includes */
34
35/* Exported types ------------------------------------------------------------*/
36/******************************************************************************
37 * LOW POWER MANAGER
38 ******************************************************************************/
39/**
40 * @brief Low Power Manager requester IDs.
41 * Each bit in this enum identifies a subsystem that can prevent the
42 * MCU from entering a low-power state. A low-power mode is only
43 * entered when no requester has asserted its inhibit bit.
44 * Can be extended up to 32 entries.
45 */
46typedef enum
47{
48 /* USER CODE BEGIN CFG_LPM_Id_t_0 */
49
50 /* USER CODE END CFG_LPM_Id_t_0 */
51 CFG_LPM_APPLI_Id, /**< Application-level inhibit (e.g. active user interaction) */
52 CFG_LPM_UART_TX_Id, /**< UART transmit in progress; prevent sleep until TX FIFO is empty */
53 /* USER CODE BEGIN CFG_LPM_Id_t */
54
55 /* USER CODE END CFG_LPM_Id_t */
57
58/*---------------------------------------------------------------------------*/
59/* sequencer definitions */
60/*---------------------------------------------------------------------------*/
61
62/**
63 * @brief Task priority levels for the sequencer.
64 * Lower numeric values indicate higher priority.
65 * Each value shall be in the range 0..31.
66 */
67typedef enum
68{
69 CFG_SEQ_Prio_0, /**< Default priority level (highest priority in this application) */
70 /* USER CODE BEGIN CFG_SEQ_Prio_Id_t */
71
72 /* USER CODE END CFG_SEQ_Prio_Id_t */
73 CFG_SEQ_Prio_NBR, /**< Total number of priority levels (must be last) */
75
76/**
77 * This is the list of task id required by the application
78 * Each Id shall be in the range 0..31
79 */
80typedef enum
81{
82 CFG_SEQ_Task_LmHandlerProcess, /**< LoRaWAN MAC layer process task */
83 CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent, /**< Triggered when TX timer fires or button is pressed */
84 CFG_SEQ_Task_LoRaStoreContextEvent, /**< Persist LoRaWAN context to non-volatile storage */
85 CFG_SEQ_Task_LoRaStopJoinEvent, /**< Abort an ongoing join procedure */
86 /* USER CODE BEGIN CFG_SEQ_Task_Id_t */
87 CFG_SEQ_Task_Sensors, /**< Sensor reading state machine – started by RTC wakeup (MT 13.1.2026) */
88 CFG_SEQ_Task_Uart_RX, /**< UART receive data ready – process incoming command bytes (MT 14.1.2026) */
89 CFG_SEQ_Task_NFC_INT, /**< NFC GPO interrupt – new Mailbox message or field-change event */
90 CFG_SEQ_Task_MyLoraSend, /**< Initiate a LoRaWAN uplink with current sensor data (MT 22.1.2026) */
91 CFG_SEQ_Task_MyLoraReconect = CFG_SEQ_Task_MyLoraSend + 1, /**< Attempt to re-join the LoRaWAN network after connection loss (MT 5.2.2026) */
92 CFG_SEQ_Task_MyLoraResend = CFG_SEQ_Task_MyLoraSend + 2, /**< Retransmit the last uplink packet (MT 7.2.2026) */
93 /* USER CODE END CFG_SEQ_Task_Id_t */
94 CFG_SEQ_Task_NBR /**< Total number of registered tasks (must be last) */
96
97/* USER CODE BEGIN ET */
98
99/* USER CODE END ET */
100
101/* Exported constants --------------------------------------------------------*/
102/* USER CODE BEGIN EC */
103
104/* USER CODE END EC */
105
106/* External variables --------------------------------------------------------*/
107/* USER CODE BEGIN EV */
108
109/* USER CODE END EV */
110
111/* Exported macro ------------------------------------------------------------*/
112/* USER CODE BEGIN EM */
113
114/* USER CODE END EM */
115
116/* Exported functions prototypes ---------------------------------------------*/
117/* USER CODE BEGIN EFP */
118
119/* USER CODE END EFP */
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif /* __UTILITIES_DEF_H__ */
CFG_SEQ_Prio_Id_t
Task priority levels for the sequencer. Lower numeric values indicate higher priority....
@ CFG_SEQ_Prio_0
@ CFG_SEQ_Prio_NBR
CFG_SEQ_Task_Id_t
@ CFG_SEQ_Task_NFC_INT
@ CFG_SEQ_Task_MyLoraSend
@ CFG_SEQ_Task_NBR
@ CFG_SEQ_Task_Uart_RX
@ CFG_SEQ_Task_Sensors
@ CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent
@ CFG_SEQ_Task_LoRaStopJoinEvent
@ CFG_SEQ_Task_LoRaStoreContextEvent
@ CFG_SEQ_Task_MyLoraReconect
@ CFG_SEQ_Task_MyLoraResend
@ CFG_SEQ_Task_LmHandlerProcess
CFG_LPM_Id_t
Low Power Manager requester IDs. Each bit in this enum identifies a subsystem that can prevent the MC...
@ CFG_LPM_APPLI_Id
@ CFG_LPM_UART_TX_Id