nu_acmp.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. /**************************************************************************//**
  2. * @file nu_acmp.h
  3. * @version V0.10
  4. * $Revision: 2 $
  5. * $Date: 18/12/21 10:53a $
  6. * @brief M031 Series ACMP Driver Header File
  7. *
  8. * @note
  9. * SPDX-License-Identifier: Apache-2.0
  10. * Copyright (C) 2018 Nuvoton Technology Corp. All rights reserved.
  11. *****************************************************************************/
  12. #ifndef __NU_ACMP_H__
  13. #define __NU_ACMP_H__
  14. /*---------------------------------------------------------------------------------------------------------*/
  15. /* Include related headers */
  16. /*---------------------------------------------------------------------------------------------------------*/
  17. #include "M031Series.h"
  18. #ifdef __cplusplus
  19. extern "C"
  20. {
  21. #endif
  22. /** @addtogroup Standard_Driver Standard Driver
  23. @{
  24. */
  25. /** @addtogroup ACMP_Driver ACMP Driver
  26. @{
  27. */
  28. /** @addtogroup ACMP_EXPORTED_CONSTANTS ACMP Exported Constants
  29. @{
  30. */
  31. /*---------------------------------------------------------------------------------------------------------*/
  32. /* ACMP_CTL constant definitions */
  33. /*---------------------------------------------------------------------------------------------------------*/
  34. #define ACMP_CTL_FILTSEL_OFF (0UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for filter function disabled. \hideinitializer */
  35. #define ACMP_CTL_FILTSEL_1PCLK (1UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 1 PCLK filter count. \hideinitializer */
  36. #define ACMP_CTL_FILTSEL_2PCLK (2UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 2 PCLK filter count. \hideinitializer */
  37. #define ACMP_CTL_FILTSEL_4PCLK (3UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 4 PCLK filter count. \hideinitializer */
  38. #define ACMP_CTL_FILTSEL_8PCLK (4UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 8 PCLK filter count. \hideinitializer */
  39. #define ACMP_CTL_FILTSEL_16PCLK (5UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 16 PCLK filter count. \hideinitializer */
  40. #define ACMP_CTL_FILTSEL_32PCLK (6UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 32 PCLK filter count. \hideinitializer */
  41. #define ACMP_CTL_FILTSEL_64PCLK (7UL << ACMP_CTL_FILTSEL_Pos) /*!< ACMP_CTL setting for 64 PCLK filter count. \hideinitializer */
  42. #define ACMP_CTL_INTPOL_RF (0UL << ACMP_CTL_INTPOL_Pos) /*!< ACMP_CTL setting for selecting rising edge and falling edge as interrupt condition. \hideinitializer */
  43. #define ACMP_CTL_INTPOL_R (1UL << ACMP_CTL_INTPOL_Pos) /*!< ACMP_CTL setting for selecting rising edge as interrupt condition. \hideinitializer */
  44. #define ACMP_CTL_INTPOL_F (2UL << ACMP_CTL_INTPOL_Pos) /*!< ACMP_CTL setting for selecting falling edge as interrupt condition. \hideinitializer */
  45. #define ACMP_CTL_POSSEL_P0 (0UL << ACMP_CTL_POSSEL_Pos) /*!< ACMP_CTL setting for selecting ACMPx_P0 pin as the source of ACMP V+. \hideinitializer */
  46. #define ACMP_CTL_POSSEL_P1 (1UL << ACMP_CTL_POSSEL_Pos) /*!< ACMP_CTL setting for selecting ACMPx_P1 pin as the source of ACMP V+. \hideinitializer */
  47. #define ACMP_CTL_POSSEL_P2 (2UL << ACMP_CTL_POSSEL_Pos) /*!< ACMP_CTL setting for selecting ACMPx_P2 pin as the source of ACMP V+. \hideinitializer */
  48. #define ACMP_CTL_POSSEL_P3 (3UL << ACMP_CTL_POSSEL_Pos) /*!< ACMP_CTL setting for selecting ACMPx_P3 pin as the source of ACMP V+. \hideinitializer */
  49. #define ACMP_CTL_NEGSEL_PIN (0UL << ACMP_CTL_NEGSEL_Pos) /*!< ACMP_CTL setting for selecting the voltage of ACMP negative input pin as the source of ACMP V-. \hideinitializer */
  50. #define ACMP_CTL_NEGSEL_CRV (1UL << ACMP_CTL_NEGSEL_Pos) /*!< ACMP_CTL setting for selecting internal comparator reference voltage as the source of ACMP V-. \hideinitializer */
  51. #define ACMP_CTL_NEGSEL_VBG (2UL << ACMP_CTL_NEGSEL_Pos) /*!< ACMP_CTL setting for selecting internal Band-gap voltage as the source of ACMP V-. \hideinitializer */
  52. #define ACMP_CTL_HYSTERESIS_ENABLE (1UL << ACMP_CTL_HYSEN_Pos) /*!< ACMP_CTL setting for enabling the hysteresis function. \hideinitializer */
  53. #define ACMP_CTL_HYSTERESIS_DISABLE (0UL << ACMP_CTL_HYSEN_Pos) /*!< ACMP_CTL setting for disabling the hysteresis function. \hideinitializer */
  54. /*---------------------------------------------------------------------------------------------------------*/
  55. /* ACMP_VREF constant definitions */
  56. /*---------------------------------------------------------------------------------------------------------*/
  57. #define ACMP_VREF_CRVSSEL_VDDA (0UL << ACMP_VREF_CRVSSEL_Pos) /*!< ACMP_VREF setting for selecting analog supply voltage VDDA as the CRV source voltage \hideinitializer */
  58. #define ACMP_VREF_CRVSSEL_INTVREF (1UL << ACMP_VREF_CRVSSEL_Pos) /*!< ACMP_VREF setting for selecting internal reference voltage as the CRV source voltage \hideinitializer */
  59. /*@}*/ /* end of group ACMP_EXPORTED_CONSTANTS */
  60. /** @addtogroup ACMP_EXPORTED_FUNCTIONS ACMP Exported Functions
  61. @{
  62. */
  63. /*---------------------------------------------------------------------------------------------------------*/
  64. /* Define Macros and functions */
  65. /*---------------------------------------------------------------------------------------------------------*/
  66. /**
  67. * @brief This macro is used to enable output inverse function
  68. * @param[in] acmp The pointer of the specified ACMP module
  69. * @param[in] u32ChNum The ACMP number
  70. * @return None
  71. * @details This macro will set ACMPOINV bit of ACMP_CTL register to enable output inverse function.
  72. * \hideinitializer
  73. */
  74. #define ACMP_ENABLE_OUTPUT_INVERSE(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_ACMPOINV_Msk)
  75. /**
  76. * @brief This macro is used to disable output inverse function
  77. * @param[in] acmp The pointer of the specified ACMP module
  78. * @param[in] u32ChNum The ACMP number
  79. * @return None
  80. * @details This macro will clear ACMPOINV bit of ACMP_CTL register to disable output inverse function.
  81. * \hideinitializer
  82. */
  83. #define ACMP_DISABLE_OUTPUT_INVERSE(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_ACMPOINV_Msk)
  84. /**
  85. * @brief This macro is used to select ACMP negative input source
  86. * @param[in] acmp The pointer of the specified ACMP module
  87. * @param[in] u32ChNum The ACMP number
  88. * @param[in] u32Src is comparator negative input selection. Including:
  89. * - \ref ACMP_CTL_NEGSEL_PIN
  90. * - \ref ACMP_CTL_NEGSEL_CRV
  91. * - \ref ACMP_CTL_NEGSEL_VBG
  92. * @return None
  93. * @details This macro will set NEGSEL (ACMP_CTL[5:4]) to determine the source of negative input.
  94. * \hideinitializer
  95. */
  96. #define ACMP_SET_NEG_SRC(acmp, u32ChNum, u32Src) ((acmp)->CTL[(u32ChNum)] = ((acmp)->CTL[(u32ChNum)] & ~ACMP_CTL_NEGSEL_Msk) | (u32Src))
  97. /**
  98. * @brief This macro is used to enable hysteresis function
  99. * @param[in] acmp The pointer of the specified ACMP module
  100. * @param[in] u32ChNum The ACMP number
  101. * @return None
  102. * @details This macro will set HYSEN bit of ACMP_CTL register to enable hysteresis function.
  103. * \hideinitializer
  104. */
  105. #define ACMP_ENABLE_HYSTERESIS(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_HYSEN_Msk)
  106. /**
  107. * @brief This macro is used to disable hysteresis function
  108. * @param[in] acmp The pointer of the specified ACMP module
  109. * @param[in] u32ChNum The ACMP number
  110. * @return None
  111. * @details This macro will clear HYSEN bit of ACMP_CTL register to disable hysteresis function.
  112. * \hideinitializer
  113. */
  114. #define ACMP_DISABLE_HYSTERESIS(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_HYSEN_Msk)
  115. /**
  116. * @brief This macro is used to enable interrupt
  117. * @param[in] acmp The pointer of the specified ACMP module
  118. * @param[in] u32ChNum The ACMP number
  119. * @return None
  120. * @details This macro will set ACMPIE bit of ACMP_CTL register to enable interrupt function.
  121. * If wake-up function is enabled, the wake-up interrupt will be enabled as well.
  122. * \hideinitializer
  123. */
  124. #define ACMP_ENABLE_INT(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_ACMPIE_Msk)
  125. /**
  126. * @brief This macro is used to disable interrupt
  127. * @param[in] acmp The pointer of the specified ACMP module
  128. * @param[in] u32ChNum The ACMP number
  129. * @return None
  130. * @details This macro will clear ACMPIE bit of ACMP_CTL register to disable interrupt function.
  131. * \hideinitializer
  132. */
  133. #define ACMP_DISABLE_INT(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_ACMPIE_Msk)
  134. /**
  135. * @brief This macro is used to enable ACMP
  136. * @param[in] acmp The pointer of the specified ACMP module
  137. * @param[in] u32ChNum The ACMP number
  138. * @return None
  139. * @details This macro will set ACMPEN bit of ACMP_CTL register to enable analog comparator.
  140. * \hideinitializer
  141. */
  142. #define ACMP_ENABLE(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_ACMPEN_Msk)
  143. /**
  144. * @brief This macro is used to disable ACMP
  145. * @param[in] acmp The pointer of the specified ACMP module
  146. * @param[in] u32ChNum The ACMP number
  147. * @return None
  148. * @details This macro will clear ACMPEN bit of ACMP_CTL register to disable analog comparator.
  149. * \hideinitializer
  150. */
  151. #define ACMP_DISABLE(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_ACMPEN_Msk)
  152. /**
  153. * @brief This macro is used to get ACMP output value
  154. * @param[in] acmp The pointer of the specified ACMP module
  155. * @param[in] u32ChNum The ACMP number
  156. * @return ACMP output value
  157. * @details This macro will return the ACMP output value.
  158. * \hideinitializer
  159. */
  160. #define ACMP_GET_OUTPUT(acmp, u32ChNum) (((acmp)->STATUS & (ACMP_STATUS_ACMPO0_Msk<<((u32ChNum))))?1:0)
  161. /**
  162. * @brief This macro is used to get ACMP interrupt flag
  163. * @param[in] acmp The pointer of the specified ACMP module
  164. * @param[in] u32ChNum The ACMP number
  165. * @return ACMP interrupt occurred (1) or not (0)
  166. * @details This macro will return the ACMP interrupt flag.
  167. * \hideinitializer
  168. */
  169. #define ACMP_GET_INT_FLAG(acmp, u32ChNum) (((acmp)->STATUS & (ACMP_STATUS_ACMPIF0_Msk<<((u32ChNum))))?1:0)
  170. /**
  171. * @brief This macro is used to clear ACMP interrupt flag
  172. * @param[in] acmp The pointer of the specified ACMP module
  173. * @param[in] u32ChNum The ACMP number
  174. * @return None
  175. * @details This macro will write 1 to ACMPIFn bit of ACMP_STATUS register to clear interrupt flag.
  176. * \hideinitializer
  177. */
  178. #define ACMP_CLR_INT_FLAG(acmp, u32ChNum) ((acmp)->STATUS = (ACMP_STATUS_ACMPIF0_Msk<<((u32ChNum))))
  179. /**
  180. * @brief This macro is used to clear ACMP wake-up interrupt flag
  181. * @param[in] acmp The pointer of the specified ACMP module
  182. * @param[in] u32ChNum The ACMP number
  183. * @return None
  184. * @details This macro will write 1 to WKIFn bit of ACMP_STATUS register to clear interrupt flag.
  185. * \hideinitializer
  186. */
  187. #define ACMP_CLR_WAKEUP_INT_FLAG(acmp, u32ChNum) ((acmp)->STATUS = (ACMP_STATUS_WKIF0_Msk<<((u32ChNum))))
  188. /**
  189. * @brief This macro is used to enable ACMP wake-up function
  190. * @param[in] acmp The pointer of the specified ACMP module
  191. * @param[in] u32ChNum The ACMP number
  192. * @return None
  193. * @details This macro will set WKEN (ACMP_CTL[16]) to enable ACMP wake-up function.
  194. * \hideinitializer
  195. */
  196. #define ACMP_ENABLE_WAKEUP(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_WKEN_Msk)
  197. /**
  198. * @brief This macro is used to disable ACMP wake-up function
  199. * @param[in] acmp The pointer of the specified ACMP module
  200. * @param[in] u32ChNum The ACMP number
  201. * @return None
  202. * @details This macro will clear WKEN (ACMP_CTL[16]) to disable ACMP wake-up function.
  203. * \hideinitializer
  204. */
  205. #define ACMP_DISABLE_WAKEUP(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_WKEN_Msk)
  206. /**
  207. * @brief This macro is used to select ACMP positive input pin
  208. * @param[in] acmp The pointer of the specified ACMP module
  209. * @param[in] u32ChNum The ACMP number
  210. * @param[in] u32Pin Comparator positive pin selection. Including:
  211. * - \ref ACMP_CTL_POSSEL_P0
  212. * - \ref ACMP_CTL_POSSEL_P1
  213. * - \ref ACMP_CTL_POSSEL_P2
  214. * - \ref ACMP_CTL_POSSEL_P3
  215. * @return None
  216. * @details This macro will set POSSEL (ACMP_CTL[7:6]) to determine the comparator positive input pin.
  217. * \hideinitializer
  218. */
  219. #define ACMP_SELECT_P(acmp, u32ChNum, u32Pin) ((acmp)->CTL[(u32ChNum)] = ((acmp)->CTL[(u32ChNum)] & ~ACMP_CTL_POSSEL_Msk) | (u32Pin))
  220. /**
  221. * @brief This macro is used to enable ACMP filter function
  222. * @param[in] acmp The pointer of the specified ACMP module
  223. * @param[in] u32ChNum The ACMP number
  224. * @return None
  225. * @details This macro will set OUTSEL (ACMP_CTL[12]) to enable output filter function.
  226. * \hideinitializer
  227. */
  228. #define ACMP_ENABLE_FILTER(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_OUTSEL_Msk)
  229. /**
  230. * @brief This macro is used to disable ACMP filter function
  231. * @param[in] acmp The pointer of the specified ACMP module
  232. * @param[in] u32ChNum The ACMP number
  233. * @return None
  234. * @details This macro will clear OUTSEL (ACMP_CTL[12]) to disable output filter function.
  235. * \hideinitializer
  236. */
  237. #define ACMP_DISABLE_FILTER(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_OUTSEL_Msk)
  238. /**
  239. * @brief This macro is used to set ACMP filter function
  240. * @param[in] acmp The pointer of the specified ACMP module
  241. * @param[in] u32ChNum The ACMP number
  242. * @param[in] u32Cnt is comparator filter count setting.
  243. * - \ref ACMP_CTL_FILTSEL_OFF
  244. * - \ref ACMP_CTL_FILTSEL_1PCLK
  245. * - \ref ACMP_CTL_FILTSEL_2PCLK
  246. * - \ref ACMP_CTL_FILTSEL_4PCLK
  247. * - \ref ACMP_CTL_FILTSEL_8PCLK
  248. * - \ref ACMP_CTL_FILTSEL_16PCLK
  249. * - \ref ACMP_CTL_FILTSEL_32PCLK
  250. * - \ref ACMP_CTL_FILTSEL_64PCLK
  251. * @return None
  252. * @details When ACMP output filter function is enabled, the output sampling count is determined by FILTSEL (ACMP_CTL[15:13]).
  253. * \hideinitializer
  254. */
  255. #define ACMP_SET_FILTER(acmp, u32ChNum, u32Cnt) ((acmp)->CTL[(u32ChNum)] = ((acmp)->CTL[(u32ChNum)] & ~ACMP_CTL_FILTSEL_Msk) | (u32Cnt))
  256. /**
  257. * @brief This macro is used to select comparator reference voltage
  258. * @param[in] acmp The pointer of the specified ACMP module
  259. * @param[in] u32Level The comparator reference voltage setting.
  260. * The formula is:
  261. * comparator reference voltage = CRV source voltage x (1/6 + u32Level/24)
  262. * The range of u32Level is 0 ~ 15.
  263. * @return None
  264. * @details When CRV is selected as ACMP negative input source, the CRV level is determined by CRVCTL (ACMP_VREF[3:0]).
  265. * \hideinitializer
  266. */
  267. #define ACMP_CRV_SEL(acmp, u32Level) ((acmp)->VREF = ((acmp)->VREF & ~ACMP_VREF_CRVCTL_Msk) | ((u32Level)<<ACMP_VREF_CRVCTL_Pos))
  268. /**
  269. * @brief This macro is used to select the source of CRV
  270. * @param[in] acmp The pointer of the specified ACMP module
  271. * @param[in] u32Src is the source of CRV. Including:
  272. * - \ref ACMP_VREF_CRVSSEL_VDDA
  273. * - \ref ACMP_VREF_CRVSSEL_INTVREF
  274. * @return None
  275. * @details The source of CRV can be VDDA or internal reference voltage. The internal reference voltage level is determined by SYS_VREFCTL register.
  276. * \hideinitializer
  277. */
  278. #define ACMP_SELECT_CRV_SRC(acmp, u32Src) ((acmp)->VREF = ((acmp)->VREF & ~ACMP_VREF_CRVSSEL_Msk) | (u32Src))
  279. /**
  280. * @brief This macro is used to select ACMP interrupt condition
  281. * @param[in] acmp The pointer of the specified ACMP module
  282. * @param[in] u32ChNum The ACMP number
  283. * @param[in] u32Cond Comparator interrupt condition selection. Including:
  284. * - \ref ACMP_CTL_INTPOL_RF
  285. * - \ref ACMP_CTL_INTPOL_R
  286. * - \ref ACMP_CTL_INTPOL_F
  287. * @return None
  288. * @details The ACMP output interrupt condition can be rising edge, falling edge or any edge.
  289. * \hideinitializer
  290. */
  291. #define ACMP_SELECT_INT_COND(acmp, u32ChNum, u32Cond) ((acmp)->CTL[(u32ChNum)] = ((acmp)->CTL[(u32ChNum)] & ~ACMP_CTL_INTPOL_Msk) | (u32Cond))
  292. /**
  293. * @brief This macro is used to enable ACMP window latch mode
  294. * @param[in] acmp The pointer of the specified ACMP module
  295. * @param[in] u32ChNum The ACMP number
  296. * @return None
  297. * @details This macro will set WLATEN (ACMP_CTL[17]) to enable ACMP window latch mode.
  298. * When ACMP0/1_WLAT pin is at high level, ACMPO0/1 passes through window latch
  299. * block; when ACMP0/1_WLAT pin is at low level, the output of window latch block,
  300. * WLATOUT, is frozen.
  301. * \hideinitializer
  302. */
  303. #define ACMP_ENABLE_WINDOW_LATCH(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_WLATEN_Msk)
  304. /**
  305. * @brief This macro is used to disable ACMP window latch mode
  306. * @param[in] acmp The pointer of the specified ACMP module
  307. * @param[in] u32ChNum The ACMP number
  308. * @return None
  309. * @details This macro will clear WLATEN (ACMP_CTL[17]) to disable ACMP window latch mode.
  310. * \hideinitializer
  311. */
  312. #define ACMP_DISABLE_WINDOW_LATCH(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_WLATEN_Msk)
  313. /**
  314. * @brief This macro is used to enable ACMP window compare mode
  315. * @param[in] acmp The pointer of the specified ACMP module
  316. * @param[in] u32ChNum The ACMP number
  317. * @return None
  318. * @details This macro will set WCMPSEL (ACMP_CTL[18]) to enable ACMP window compare mode.
  319. * When window compare mode is enabled, user can connect the specific analog voltage
  320. * source to either the positive inputs of both comparators or the negative inputs of
  321. * both comparators. The upper bound and lower bound of the designated range are
  322. * determined by the voltages applied to the other inputs of both comparators. If the
  323. * output of a comparator is low and the other comparator outputs high, which means two
  324. * comparators implies the upper and lower bound. User can directly monitor a specific
  325. * analog voltage source via ACMPWO (ACMP_STATUS[16]).
  326. * \hideinitializer
  327. */
  328. #define ACMP_ENABLE_WINDOW_COMPARE(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] |= ACMP_CTL_WCMPSEL_Msk)
  329. /**
  330. * @brief This macro is used to disable ACMP window compare mode
  331. * @param[in] acmp The pointer of the specified ACMP module
  332. * @param[in] u32ChNum The ACMP number
  333. * @return None
  334. * @details This macro will clear WCMPSEL (ACMP_CTL[18]) to disable ACMP window compare mode.
  335. * \hideinitializer
  336. */
  337. #define ACMP_DISABLE_WINDOW_COMPARE(acmp, u32ChNum) ((acmp)->CTL[(u32ChNum)] &= ~ACMP_CTL_WCMPSEL_Msk)
  338. /* Function prototype declaration */
  339. void ACMP_Open(ACMP_T *, uint32_t u32ChNum, uint32_t u32NegSrc, uint32_t u32HysteresisEn);
  340. void ACMP_Close(ACMP_T *, uint32_t u32ChNum);
  341. /*@}*/ /* end of group ACMP_EXPORTED_FUNCTIONS */
  342. /*@}*/ /* end of group ACMP_Driver */
  343. /*@}*/ /* end of group Standard_Driver */
  344. #ifdef __cplusplus
  345. }
  346. #endif
  347. #endif //__NU_ACMP_H__
  348. /*** (C) COPYRIGHT 2018 Nuvoton Technology Corp. ***/