HT32SX Monarch Scan
Monarch Scan application for HT32SX
gpio.h
Go to the documentation of this file.
1
20
/* Define to prevent recursive inclusion -------------------------------------*/
21
#ifndef __gpio_H
22
#define __gpio_H
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/* Includes ------------------------------------------------------------------*/
28
#include "
main.h
"
29
30
/* USER CODE BEGIN Includes */
31
#include "
usart.h
"
32
#include "
st_rf_api.h
"
33
#include "
st_mcu_api.h
"
34
/* USER CODE END Includes */
35
36
/* USER CODE BEGIN Private defines */
37
38
/* USER CODE END Private defines */
39
40
void
MX_GPIO_Init
(
void
);
41
42
/* USER CODE BEGIN Prototypes */
43
49
extern
void
S2LPShutdownInit
(
void
);
50
56
extern
void
S2LPShutdownEnter
(
void
);
57
63
extern
void
S2LPShutdownExit
(
void
);
64
70
extern
uint8_t
S2LPShutdownCheck
(
void
);
71
77
extern
void
S2LPIRQInit
(
void
);
78
91
extern
void
S2LPIRQEnable
(uint8_t state, uint8_t edge_direction);
92
93
/*!******************************************************************
94
* \fn uint8_t getLowPowerFlag(void)
95
* \brief Get low power flag to check the S2LP state.
96
*
97
* \param[in] none
98
* \param[out] none
99
*
100
* \retval low_power 1 if it's low power, else 0
101
*******************************************************************/
102
extern
uint8_t
getLowPowerFlag
(
void
);
103
104
/*!******************************************************************
105
* \fn void setS2lpIrqRaisedFlag(uint8_t s2lpIrqRaised)
106
* \brief Get low power flag to check the S2LP state.
107
*
108
* \param[in] s2lpIrqRaised 1 if it's raised, else 0
109
* \param[out] none
110
*
111
* \retval none
112
*******************************************************************/
113
extern
void
setS2lpIrqRaisedFlag
(uint8_t s2lpIrqRaised);
114
115
/*!******************************************************************
116
* \fn uint8_t getS2lpIrqRaisedFlag(void)
117
* \brief Get S2LP IRQ raised flag.
118
*
119
* \param[in] none
120
* \param[out] none
121
*
122
* \retval s2lp_irq_raised 1 if it's raised, else 0
123
*******************************************************************/
124
extern
uint8_t
getS2lpIrqRaisedFlag
(
void
);
125
126
/* USER CODE END Prototypes */
127
128
#ifdef __cplusplus
129
}
130
#endif
131
#endif
/*__ pinoutConfig_H */
132
141
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
S2LPShutdownCheck
uint8_t S2LPShutdownCheck(void)
check the logic (0 or 1) at the SDN pin.
Definition:
gpio.c:181
S2LPIRQEnable
void S2LPIRQEnable(uint8_t state, uint8_t edge_direction)
Enables or disables the interrupt on GPIO .
Definition:
gpio.c:223
S2LPShutdownEnter
void S2LPShutdownEnter(void)
Puts at logic 1 the SDN pin.
Definition:
gpio.c:149
S2LPShutdownInit
void S2LPShutdownInit(void)
Init shutdown pin on the uC and set it to 1 (Shutdown active).
Definition:
gpio.c:155
S2LPIRQInit
void S2LPIRQInit(void)
Configures MCU GPIO and EXTI Line for GPIOs.
Definition:
gpio.c:199
usart.h
: This file provides code for the configuration of the USART instances.
getLowPowerFlag
uint8_t getLowPowerFlag(void)
Get low power flag to check the S2LP state.
Definition:
gpio.c:266
setS2lpIrqRaisedFlag
void setS2lpIrqRaisedFlag(uint8_t s2lpIrqRaised)
Get low power flag to check the S2LP state.
Definition:
gpio.c:285
st_mcu_api.h
Sigfox manufacturer functions.
main.h
: Header for main.c file. This file contains the common defines of the application.
st_rf_api.h
Sigfox manufacturer functions.
S2LPShutdownExit
void S2LPShutdownExit(void)
Put at logic 0 the SDN pin.
Definition:
gpio.c:173
getS2lpIrqRaisedFlag
uint8_t getS2lpIrqRaisedFlag(void)
Get S2LP IRQ raised flag.
Definition:
gpio.c:289
MX_GPIO_Init
void MX_GPIO_Init(void)
Definition:
gpio.c:43
Inc
gpio.h
Generated by
1.8.16