HT32SX Monarch Scan
Monarch Scan application for HT32SX
main.h
Go to the documentation of this file.
1
/* USER CODE BEGIN Header */
20
/* USER CODE END Header */
21
22
/* Define to prevent recursive inclusion -------------------------------------*/
23
#ifndef __MAIN_H
24
#define __MAIN_H
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
/* Includes ------------------------------------------------------------------*/
31
#include "stm32l0xx_hal.h"
32
#include "stm32l0xx_hal.h"
33
34
/* Private includes ----------------------------------------------------------*/
35
/* USER CODE BEGIN Includes */
36
#include "assert.h"
37
#include "stddef.h"
38
#include <stdio.h>
39
#include <string.h>
40
#include "stdarg.h"
41
#include <stdint.h>
42
#include <stdlib.h>
43
#include <math.h>
44
45
#include "
ST_Sigfox_Init.h
"
46
47
#include "
sigfox_types.h
"
48
#include "
sigfox_api.h
"
49
#include "
sigfox_monarch_api.h
"
50
#include "
monarch_api.h
"
51
#include "
retriever_api.h
"
52
#include "
mcu_api.h
"
53
#include "
st_mcu_api.h
"
54
#include "
st_rf_api.h
"
55
#include "
addon_sigfox_rf_protocol_api.h
"
56
#include "
nvm_api.h
"
57
58
/* USER CODE END Includes */
59
60
/* Exported types ------------------------------------------------------------*/
61
/* USER CODE BEGIN ET */
62
63
typedef
enum
64
{
65
RCZ1 = 1,
66
RCZ2,
67
RCZ3,
68
RCZ4,
69
RCZ5,
70
RCZ6
71
} rc_mask;
72
73
/* USER CODE END ET */
74
75
/* Exported constants --------------------------------------------------------*/
76
/* USER CODE BEGIN EC */
77
78
/* USER CODE END EC */
79
80
/* Exported macro ------------------------------------------------------------*/
81
/* USER CODE BEGIN EM */
82
83
/* USER CODE END EM */
84
85
/* Exported functions prototypes ---------------------------------------------*/
86
void
Error_Handler
(
void
);
87
88
/* USER CODE BEGIN EFP */
89
90
/*!******************************************************************
91
* \fn void MCU_Config(void)
92
* \brief Starts the MCU peripherals configuration and get credentials from Flash memory
93
*
94
* \param[in] none
95
* \param[out] none
96
*******************************************************************/
97
98
void
mcuConfig(
void
);
99
100
/*!******************************************************************
101
* \fn void ST_Init(void)
102
* \brief Configure the MCU peripherals needed for the transceiver operation.
103
*
104
* \param[in] none
105
* \param[out] none
106
*******************************************************************/
107
108
void
ST_Init
(
void
);
109
110
/* USER CODE END EFP */
111
112
/* Private defines -----------------------------------------------------------*/
113
#define S2LP_SPI_CS_PIN_Pin GPIO_PIN_15
114
#define S2LP_SPI_CS_PIN_GPIO_Port GPIOA
115
#define S2LP_SPI_MISO_PIN_Pin GPIO_PIN_4
116
#define S2LP_SPI_MISO_PIN_GPIO_Port GPIOB
117
#define S2LP_SPI_SCLK_PIN_Pin GPIO_PIN_3
118
#define S2LP_SPI_SCLK_PIN_GPIO_Port GPIOB
119
#define S2LP_SPI_MOSI_PIN_Pin GPIO_PIN_7
120
#define S2LP_SPI_MOSI_PIN_GPIO_Port GPIOA
121
/* USER CODE BEGIN Private defines */
122
123
#define ALL_REGIONS 63
124
125
#define RCZ1_OUTPUT_POWER 2
126
#define RCZ2_OUTPUT_POWER -27
127
#define RCZ3_OUTPUT_POWER 18
128
#define RCZ4_OUTPUT_POWER -30
129
#define RCZ5_OUTPUT_POWER 18
130
#define RCZ6_OUTPUT_POWER -2
131
132
/* USER CODE END Private defines */
133
134
#ifdef __cplusplus
135
}
136
#endif
137
138
#endif
/* __MAIN_H */
139
140
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
mcu_api.h
Sigfox manufacturer functions.
sigfox_api.h
Sigfox user functions.
addon_sigfox_rf_protocol_api.h
Sigfox RF and Protocol test application functions.
sigfox_monarch_api.h
Sigfox user functions.
ST_Init
void ST_Init(void)
Configure the MCU peripherals needed for the transceiver operation.
Definition:
main.c:220
retriever_api.h
This is used to retrieve the SigFox data as ID, PAC and AES-KEY. The AES-KEY is a private variable an...
st_mcu_api.h
Sigfox manufacturer functions.
ST_Sigfox_Init.h
Sigfox MCU functions.
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition:
main.c:268
st_rf_api.h
Sigfox manufacturer functions.
sigfox_types.h
Sigfox types definition.
monarch_api.h
Sigfox manufacturer functions.
nvm_api.h
NVM handler.
Inc
main.h
Generated by
1.8.16