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 * Supported requester to the MCU Low Power Manager - can be increased up to 32
41 * It lists a bit mapping of all user of the Low Power Manager
42 */
43typedef enum
44{
45 /* USER CODE BEGIN CFG_LPM_Id_t_0 */
46
47 /* USER CODE END CFG_LPM_Id_t_0 */
50 /* USER CODE BEGIN CFG_LPM_Id_t */
51
52 /* USER CODE END CFG_LPM_Id_t */
54
55/*---------------------------------------------------------------------------*/
56/* sequencer definitions */
57/*---------------------------------------------------------------------------*/
58
59/**
60 * This is the list of priority required by the application
61 * Each Id shall be in the range 0..31
62 */
63typedef enum
64{
66 /* USER CODE BEGIN CFG_SEQ_Prio_Id_t */
67
68 /* USER CODE END CFG_SEQ_Prio_Id_t */
71
72/**
73 * This is the list of task id required by the application
74 * Each Id shall be in the range 0..31
75 */
76typedef enum
77{
82 /* USER CODE BEGIN CFG_SEQ_Task_Id_t */
83 CFG_SEQ_Task_Sensors, /**< Sensor reading state machine – started by RTC wakeup (MT 13.1.2026) bitfield - max 4bits, check in mysensors.c */
84 CFG_SEQ_Task_Uart_RX, /**< UART receive data ready – process incoming command bytes (MT 14.1.2026) */
85 CFG_SEQ_Task_NFC_INT, /**< NFC GPO interrupt – new Mailbox message or field-change event */
86 CFG_SEQ_Task_MyLora, /**< Initiate a LoRaWAN uplink with current sensor data (MT 22.1.2026), bitfield - max 4bites, check in mylora_process.c*/
87 CFG_SEQ_Task_MyLoraReconect = CFG_SEQ_Task_MyLora + 1, /**< Attempt to re-join the LoRaWAN network after connection loss (MT 5.2.2026) */
88 CFG_SEQ_Task_MyLoraResend = CFG_SEQ_Task_MyLora + 2, /**< Retransmit the last uplink packet (MT 7.2.2026) */
89 /* USER CODE END CFG_SEQ_Task_Id_t */
92
93/* USER CODE BEGIN ET */
94
95/* USER CODE END ET */
96
97/* Exported constants --------------------------------------------------------*/
98/* USER CODE BEGIN EC */
99
100/* USER CODE END EC */
101
102/* External variables --------------------------------------------------------*/
103/* USER CODE BEGIN EV */
104
105/* USER CODE END EV */
106
107/* Exported macro ------------------------------------------------------------*/
108/* USER CODE BEGIN EM */
109
110/* USER CODE END EM */
111
112/* Exported functions prototypes ---------------------------------------------*/
113/* USER CODE BEGIN EFP */
114
115/* USER CODE END EFP */
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif /* __UTILITIES_DEF_H__ */
CFG_SEQ_Prio_Id_t
@ CFG_SEQ_Prio_0
@ CFG_SEQ_Prio_NBR
CFG_SEQ_Task_Id_t
@ CFG_SEQ_Task_NFC_INT
@ 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_MyLora
@ CFG_SEQ_Task_MyLoraReconect
@ CFG_SEQ_Task_MyLoraResend
@ CFG_SEQ_Task_LmHandlerProcess
CFG_LPM_Id_t
@ CFG_LPM_APPLI_Id
@ CFG_LPM_UART_TX_Id