Ftm_Icu_Ip.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : Ftm Lpit Lptmr Port_Ci LpCmp
  5. * Dependencies : none
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. #ifndef FTM_ICU_IP_H
  25. #define FTM_ICU_IP_H
  26. /**
  27. * @file Ftm_Icu_Ip.h
  28. * @brief Header file of Flextimer module.
  29. * @details This file contains signatures for all the functions which are related to FTM
  30. * module.
  31. * @addtogroup ftm_icu_ip FTM IPL
  32. * @{
  33. */
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif
  37. /*==================================================================================================
  38. * INCLUDE FILES
  39. * 1) system and project includes
  40. * 2) needed interfaces from external units
  41. * 3) internal and external interfaces from this unit
  42. ==================================================================================================*/
  43. #include "Ftm_Icu_Ip_Types.h"
  44. #include "Ftm_Icu_Ip_Cfg.h"
  45. #if (FTM_ICU_ENABLE_USER_MODE_SUPPORT == STD_ON)
  46. #include "Reg_eSys.h"
  47. #endif
  48. /*==================================================================================================
  49. * SOURCE FILE VERSION INFORMATION
  50. ==================================================================================================*/
  51. #define FTM_ICU_IP_VENDOR_ID 43
  52. #define FTM_ICU_IP_AR_RELEASE_MAJOR_VERSION 4
  53. #define FTM_ICU_IP_AR_RELEASE_MINOR_VERSION 4
  54. #define FTM_ICU_IP_AR_RELEASE_REVISION_VERSION 0
  55. #define FTM_ICU_IP_SW_MAJOR_VERSION 1
  56. #define FTM_ICU_IP_SW_MINOR_VERSION 0
  57. #define FTM_ICU_IP_SW_PATCH_VERSION 0
  58. /*==================================================================================================
  59. * FILE VERSION CHECKS
  60. ==================================================================================================*/
  61. /* Check if source file and ICU header file are of the same vendor */
  62. #if (FTM_ICU_IP_VENDOR_ID != FTM_ICU_IP_TYPES_VENDOR_ID)
  63. #error "Ftm_Icu_Ip.h and Ftm_Icu_Ip_Types.h have different vendor IDs"
  64. #endif
  65. /* Check if source file and ICU header file are of the same AutoSar version */
  66. #if ((FTM_ICU_IP_AR_RELEASE_MAJOR_VERSION != FTM_ICU_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \
  67. (FTM_ICU_IP_AR_RELEASE_MINOR_VERSION != FTM_ICU_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \
  68. (FTM_ICU_IP_AR_RELEASE_REVISION_VERSION != FTM_ICU_IP_TYPES_AR_RELEASE_REVISION_VERSION))
  69. #error "AutoSar Version Numbers of Ftm_Icu_Ip.h and Ftm_Icu_Ip_Types.h are different"
  70. #endif
  71. /* Check if source file and ICU header file are of the same Software version */
  72. #if ((FTM_ICU_IP_SW_MAJOR_VERSION != FTM_ICU_IP_TYPES_SW_MAJOR_VERSION) || \
  73. (FTM_ICU_IP_SW_MINOR_VERSION != FTM_ICU_IP_TYPES_SW_MINOR_VERSION) || \
  74. (FTM_ICU_IP_SW_PATCH_VERSION != FTM_ICU_IP_TYPES_SW_PATCH_VERSION))
  75. #error "Software Version Numbers of Ftm_Icu_Ip.h and Ftm_Icu_Ip_Types.h are different"
  76. #endif
  77. /* Check if source file and ICU header file are of the same vendor */
  78. #if (FTM_ICU_IP_VENDOR_ID != FTM_ICU_IP_CFG_VENDOR_ID)
  79. #error "Ftm_Icu_Ip.h and Ftm_Icu_Ip_Cfg.h have different vendor IDs"
  80. #endif
  81. /* Check if source file and ICU header file are of the same AutoSar version */
  82. #if ((FTM_ICU_IP_AR_RELEASE_MAJOR_VERSION != FTM_ICU_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \
  83. (FTM_ICU_IP_AR_RELEASE_MINOR_VERSION != FTM_ICU_IP_CFG_AR_RELEASE_MINOR_VERSION) || \
  84. (FTM_ICU_IP_AR_RELEASE_REVISION_VERSION != FTM_ICU_IP_CFG_AR_RELEASE_REVISION_VERSION))
  85. #error "AutoSar Version Numbers of Ftm_Icu_Ip.h and Ftm_Icu_Ip_Cfg.h are different"
  86. #endif
  87. /* Check if source file and ICU header file are of the same Software version */
  88. #if ((FTM_ICU_IP_SW_MAJOR_VERSION != FTM_ICU_IP_CFG_SW_MAJOR_VERSION) || \
  89. (FTM_ICU_IP_SW_MINOR_VERSION != FTM_ICU_IP_CFG_SW_MINOR_VERSION) || \
  90. (FTM_ICU_IP_SW_PATCH_VERSION != FTM_ICU_IP_CFG_SW_PATCH_VERSION))
  91. #error "Software Version Numbers of Ftm_Icu_Ip.h and Ftm_Icu_Ip_Cfg.h are different"
  92. #endif
  93. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  94. #if (FTM_ICU_ENABLE_USER_MODE_SUPPORT == STD_ON)
  95. /* Check if header file and Reg_eSys.h file are of the same Autosar version */
  96. #if ((FTM_ICU_IP_AR_RELEASE_MAJOR_VERSION != REG_ESYS_AR_RELEASE_MAJOR_VERSION) || \
  97. (FTM_ICU_IP_AR_RELEASE_MINOR_VERSION != REG_ESYS_AR_RELEASE_MINOR_VERSION))
  98. #error "AutoSar Version Numbers of Ftm_Icu_Ip.h and Reg_eSys.h are different"
  99. #endif
  100. #endif
  101. #endif
  102. /*===============================================================================================
  103. * DEFINES AND MACROS
  104. ===============================================================================================*/
  105. /*==================================================================================================
  106. * GLOBAL VARIABLES
  107. ==================================================================================================*/
  108. #define ICU_START_SEC_CONST_UNSPECIFIED
  109. #include "Icu_MemMap.h"
  110. /* Array with FTM modules base addresses. */
  111. extern Ftm_Icu_Ip_BaseType * const ftmIcuBase[];
  112. #define ICU_STOP_SEC_CONST_UNSPECIFIED
  113. #include "Icu_MemMap.h"
  114. #if (defined FTM_ICU_CONFIG_EXT)
  115. #define ICU_START_SEC_CONFIG_DATA_UNSPECIFIED
  116. #include "Icu_MemMap.h"
  117. /* Macro used to import FTM generated configurations. */
  118. FTM_ICU_CONFIG_EXT
  119. #define ICU_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  120. #include "Icu_MemMap.h"
  121. #endif
  122. /*==================================================================================================
  123. * FUNCTION PROTOTYPES
  124. ==================================================================================================*/
  125. #define ICU_START_SEC_CODE
  126. #include "Icu_MemMap.h"
  127. /**
  128. * @details This function configures the channel in the Input Capture mode for either getting
  129. * time-stamps on edge detection or on signal measurement. When the edge specified in the captureMode
  130. * argument occurs on the channel and then the FTM counter is captured into the CnV register.
  131. * The user have to read the CnV register separately to get this value. The filter
  132. * function is disabled if the filterVal argument passed as 0. The filter feature.
  133. * is available only on channels 0,1,2,3.
  134. *
  135. * @param[in] instance Hardware instance of FTM used.
  136. * @param[in] userConfig Configuration of the input capture channel.
  137. * @return Ftm_Icu_Ip_StatusType
  138. * - FTM_IP_STATUS_SUCCESS : Completed successfully.
  139. * - FTM_IP_STATUS_ERROR : Error occurred.
  140. */
  141. Ftm_Icu_Ip_StatusType Ftm_Icu_Ip_Init (uint8 instance, const Ftm_Icu_Ip_ConfigType *userConfig);
  142. #if (STD_ON == FTM_ICU_DEINIT_API)
  143. /**
  144. * @brief Disables input capture mode and clears FTM timer configuration
  145. *
  146. * @param[in] instance Hardware instance of FTM used.
  147. */
  148. Ftm_Icu_Ip_StatusType Ftm_Icu_Ip_DeInit (uint8 instance);
  149. #endif /* STD_ON == FTM_ICU_DEINIT_API */
  150. #if (STD_ON == FTM_ICU_SET_MODE_API)
  151. /**
  152. * @brief Driver function sets FTM hardware channel into SLEEP mode.
  153. *
  154. * @param[in] instance Hardware instance of FTM used.
  155. * @param[in] hwChannel Hardware channel of FTM used.
  156. * @return void
  157. */
  158. void Ftm_Icu_Ip_SetSleepMode(uint8 instance, uint8 hwChannel);
  159. /**
  160. * @brief Driver function sets FTM hardware channel into NORMAL mode.
  161. *
  162. * @param[in] instance Hardware instance of FTM used.
  163. * @param[in] hwChannel Hardware channel of FTM used.
  164. * @return void
  165. */
  166. void Ftm_Icu_Ip_SetNormalMode(uint8 instance, uint8 hwChannel);
  167. #endif /* STD_ON == FTM_ICU_SET_MODE_API */
  168. #if (FTM_ICU_CAPTURERGISTER_API == STD_ON)
  169. /**
  170. * @brief Capture the value of counter register for a specified channel.
  171. *
  172. * @details The API shall return the value stored in capture register.
  173. * The API is the equivalent of AUTOSAR API GetCaptureRegisterValue.
  174. *
  175. * @param[in] instance Hardware instance of FTM used.
  176. * @param[in] hwChannel Hardware channel of FTM used.
  177. * @return uint32 Value of the register captured.
  178. */
  179. uint32 Ftm_Icu_Ip_GetCaptureRegisterValue(uint8 instance, uint8 hwChannel);
  180. #endif
  181. /**
  182. * @details This function enables the requested activation condition(rising, falling or both
  183. * edges) for corresponding FTM channels.
  184. *
  185. * @param[in] instance Hardware instance of FTM used.
  186. * @param[in] hwChannel Hardware channel of FTM used.
  187. * @param[in] activation Edge activation type used.
  188. * @return void
  189. */
  190. void Ftm_Icu_Ip_SetActivationCondition (uint8 instance, uint8 hwChannel, Ftm_Icu_Ip_EdgeType activation);
  191. #if (STD_ON == FTM_ICU_TIMESTAMP_API)
  192. /**
  193. * @brief FTM IP layer function which starts timestamp measure mode.
  194. *
  195. * @param[in] instance Hardware instance of FTM used.
  196. * @param[in] hwChannel Hardware channel of FTM used.
  197. * @param[in] bufferPtr buffer pointer for results
  198. * @param[in] bufferSize size of buffer results
  199. * @param[in] notifyInterval interval for calling notification
  200. * @return void
  201. */
  202. void Ftm_Icu_Ip_StartTimestamp
  203. (
  204. uint8 instance,
  205. uint8 hwChannel,
  206. uint16 * bufferPtr,
  207. uint16 bufferSize,
  208. uint16 notifyInterval
  209. );
  210. /**
  211. * @brief FTM IP layer function which stops timestamp measure mode for a given instance and channel.
  212. *
  213. * @param[in] instance Hardware instance of FTM used.
  214. * @param[in] hwChannel Hardware channel of FTM used.
  215. * @return void
  216. */
  217. void Ftm_Icu_Ip_StopTimestamp(uint8 instance, uint8 hwChannel);
  218. /**
  219. * @brief This function reads the timestamp index of the given channel.
  220. * @details The API shall return the index to be used for next timestamp measurement to be stored.
  221. *
  222. * @param[in] instance Hardware instance of FTM used.
  223. * @param[in] channel Hardware channel of FTM used.
  224. *
  225. * @return uint16 - Timestamp index of the given channel, next index to be used for storring timestamps.
  226. * @pre Ftm_Icu_Ip_Init must be called before. Icu_StartTimestamp must be called before.
  227. */
  228. uint16 Ftm_Icu_Ip_GetTimestampIndex(uint8 instance, uint8 hwChannel);
  229. #if (STD_ON == FTM_ICU_TIMESTAMP_USES_DMA)
  230. /**
  231. * @brief FTM IP layer function which get address of CVn register.
  232. *
  233. * @param[in] instance Hardware instance of FTM used.
  234. * @param[in] hwChannel Hardware channel of FTM used.
  235. * @return void
  236. */
  237. uint32 Ftm_Icu_Ip_GetStartAddress(uint8 instance, uint8 hwChannel);
  238. #endif
  239. #endif /* STD_ON == FTM_ICU_TIMESTAMP_API */
  240. #if (STD_ON == FTM_ICU_EDGE_DETECT_API)
  241. /**
  242. * @brief FTM IP layer function which enable edge detection measure mode for a given instance and channel.
  243. *
  244. * @param[in] instance Hardware instance of FTM used.
  245. * @param[in] hwChannel Hardware channel of FTM used.
  246. * @return Ftm_Icu_Ip_StatusType
  247. */
  248. Ftm_Icu_Ip_StatusType Ftm_Icu_Ip_EnableEdgeDetection(uint8 instance, uint8 hwChannel);
  249. #endif /* STD_ON == ICU_EDGE_DETECT_API */
  250. #if (STD_ON == FTM_ICU_EDGE_DETECT_API)
  251. /**
  252. * @brief FTM IP layer function which disable edge detection measure mode for a given instance and channel.
  253. *
  254. * @param[in] instance Hardware instance of FTM used.
  255. * @param[in] hwChannel Hardware channel of FTM used.
  256. * @return Ftm_Icu_Ip_StatusType
  257. */
  258. Ftm_Icu_Ip_StatusType Ftm_Icu_Ip_DisableEdgeDetection(uint8 instance, uint8 hwChannel);
  259. #endif /* STD_ON == ICU_EDGE_DETECT_API */
  260. #if (STD_ON == FTM_ICU_EDGE_COUNT_API)
  261. /**
  262. * @brief FTM IP layer function which reset edge count measure mode for a given instance and channel.
  263. *
  264. * @param[in] instance Hardware instance of FTM used.
  265. * @param[in] hwChannel Hardware channel of FTM used.
  266. * @return void
  267. */
  268. void Ftm_Icu_Ip_ResetEdgeCount(uint8 instance, uint8 hwChannel);
  269. /**
  270. * @brief FTM IP layer function which enable edge count measure mode for a given instance and channel.
  271. *
  272. * @param[in] instance module instance number
  273. * @param[in] hwChannel Hardware channel of FTM used.
  274. * @return Ftm_Icu_Ip_StatusType
  275. */
  276. Ftm_Icu_Ip_StatusType Ftm_Icu_Ip_EnableEdgeCount(uint8 instance, uint8 hwChannel);
  277. /**
  278. * @brief FTM IP layer function which disable edge count measure mode for a given instance and channel.
  279. *
  280. * @param[in] instance Hardware instance of FTM used.
  281. * @param[in] hwChannel Hardware channel of FTM used.
  282. * @return Ftm_Icu_Ip_StatusType
  283. */
  284. Ftm_Icu_Ip_StatusType Ftm_Icu_Ip_DisableEdgeCount(uint8 instance, uint8 hwChannel);
  285. /**
  286. * @brief FTM IP layer function which gets the number of edges for a given instance and channel.
  287. *
  288. * @param[in] instance Hardware instance of FTM used.
  289. * @param[in] hwChannel Hardware channel of FTM used.
  290. * @return uint16 Number of edges counted.
  291. */
  292. uint16 Ftm_Icu_Ip_GetEdgeNumbers(uint8 instance, uint8 hwChannel);
  293. #endif /* STD_ON == FTM_ICU_EDGE_COUNT_API */
  294. #if (STD_ON == FTM_ICU_SIGNAL_MEASUREMENT_API)
  295. /**
  296. * @brief FTM IP layer function which starts signal measurement mode for a given instance and channel.
  297. *
  298. * @param[in] instance Hardware instance of FTM used.
  299. * @param[in] hwChannel Hardware channel of FTM used.
  300. * @return void
  301. */
  302. void Ftm_Icu_Ip_StartSignalMeasurement(uint8 instance, uint8 hwChannel);
  303. /**
  304. * @brief FTM IP layer function which stops signal measurement mode for a given instance and channel.
  305. *
  306. * @param[in] instance Hardware instance of FTM used.
  307. * @param[in] hwChannel Hardware channel of FTM used.
  308. * @return void
  309. */
  310. void Ftm_Icu_Ip_StopSignalMeasurement(uint8 instance,uint8 hwChannel);
  311. /**
  312. * @brief This function reads the elapsed Signal Low, High or Period Time for the given channel.
  313. * @details This service is reentrant and reads the elapsed Signal Low Time for the given channel
  314. * that is configured in Measurement Mode Signal Measurement, Signal Low Time.
  315. * The elapsed time is measured between a falling edge and the consecutive rising edge of
  316. * the channel.
  317. * This service reads the elapsed Signal High Time for the given channel that is configured
  318. * in Measurement Mode Signal Measurement,Signal High Time.The elapsed time is measured
  319. * between a rising edge and the consecutive falling edge of the channel.
  320. * This service reads the elapsed Signal Period Time for the given channel that is
  321. * configured in Measurement Mode Signal Measurement, Signal Period Time.The elapsed time
  322. * is measured between consecutive rising (or falling) edges of the channel. The period
  323. * start edge is
  324. *
  325. * configurable.
  326. *
  327. * @param[in] instance Hardware instance of FTM used.
  328. * @param[in] hwChannel Hardware channel of FTM used.
  329. *
  330. * @return uint16 - the elapsed Signal Low Time for the given channel that is configured in
  331. * Measurement Mode Signal Measurement, Signal Low Time
  332. * @pre Ftm_Icu_Ip_Init must be called before. The channel must be configured in Measurement Mode Signal
  333. * Measurement.
  334. */
  335. uint16 Ftm_Icu_Ip_GetTimeElapsed(uint8 instance, uint8 hwChannel);
  336. /**
  337. * @brief This function reads the coherent active time and period time for the given ICU Channel.
  338. * @details The function is reentrant and reads the coherent active time and period time for
  339. * the given ICU Channel, if it is configured in Measurement Mode Signal Measurement, Duty
  340. * Cycle Values.
  341. *
  342. * @param[in] instance Hardware instance of FTM used.
  343. * @param[in] hwChannel Hardware channel of FTM used.
  344. * @param[out] dutyCycleValues structure where duty cycle values are stored
  345. *
  346. * @return void
  347. * @pre Ftm_Icu_Ip_Init must be called before. The given channel must be configured in Measurement Mode
  348. * Signal Measurement, Duty Cycle Values.
  349. */
  350. void Ftm_Icu_Ip_GetDutyCycleValues(uint8 instance,
  351. uint8 hwChannel,
  352. Ftm_Icu_Ip_DutyCycleType* dutyCycleValues);
  353. /**
  354. * @brief Ftm_Icu_Ip_GetPWandPeriod
  355. *
  356. * @param instance
  357. * @param hwChannel
  358. * @param activePulseWidth
  359. * @param period
  360. */
  361. void Ftm_Icu_Ip_GetPWandPeriod(uint8 instance,
  362. uint8 hwChannel,
  363. uint16* activePulseWidth,
  364. uint16* period);
  365. #endif /* STD_ON == FTM_ICU_SIGNAL_MEASUREMENT_API */
  366. #if (STD_ON == FTM_ICU_DUAL_CLOCK_MODE_API)
  367. /**
  368. * @brief FTM IP layer that sets the prescaler value for a given instance.
  369. *
  370. * @param[in] instance Hardware instance of FTM used.
  371. * @param[in] prescaler Value of the prescaler.
  372. */
  373. void Ftm_Icu_Ip_SetPrescaler(uint8 instance, Ftm_Icu_Ip_ClockModeType selectPrescaler);
  374. #endif /* STD_ON == FTM_ICU_DUAL_CLOCK_MODE_API */
  375. #if ((FTM_ICU_OVERFLOW_NOTIFICATION_API == STD_OFF) && (FTM_ICU_IP_DEV_ERROR_DETECT == STD_ON))
  376. #if ((FTM_ICU_EDGE_COUNT_API == STD_ON) || (FTM_ICU_TIMESTAMP_API == STD_ON) || \
  377. (FTM_ICU_GET_TIME_ELAPSED_API == STD_ON) || (FTM_ICU_GET_DUTY_CYCLE_VALUES_API == STD_ON))
  378. /**
  379. * @brief FTM IP function that get the state of the overflow flag
  380. *
  381. * @param[in] instance Hardware instance of FTM used.
  382. * @return boolean State of the overflow flag.
  383. * @retval TRUE The overflow flag is set.
  384. * @retval FALSE The overflow flag is not set.
  385. */
  386. boolean Ftm_Icu_Ip_GetOverflow(uint8 instance);
  387. #endif
  388. #endif /* (FTM_ICU_OVERFLOW_NOTIFICATION_API == STD_OFF) && (FTM_ICU_IP_DEV_ERROR_DETECT == STD_ON) */
  389. #if (STD_ON == FTM_ICU_GET_INPUT_LEVEL_API)
  390. /**
  391. * @brief The API shall return the input read value for the selected pin, if hardware support the functionality.
  392. *
  393. * @param[in] instance Hardware instance of FTM used.
  394. * @param[in] hwChannel Hardware channel of FTM used.
  395. * @return Ftm_Icu_Ip_LevelType - Level detected at this time on the input pin
  396. */
  397. Ftm_Icu_Ip_LevelType Ftm_Icu_Ip_GetInputLevel(uint8 instance, uint8 hwChannel);
  398. #endif
  399. #if (STD_ON == FTM_ICU_GET_INPUT_STATE_API)
  400. /**
  401. * @brief Return input state of the channel.
  402. *
  403. * @param[in] instance Hardware instance of FTM used.
  404. * @param[in] hwChannel Hardware channel of FTM used.
  405. * @return boolean Channel level type.
  406. */
  407. boolean Ftm_Icu_Ip_GetInputState(uint8 instance, uint8 hwChannel);
  408. #endif
  409. /**
  410. * @brief Enable channel interrupt.
  411. *
  412. * @param[in] instance Hardware instance of FTM used.
  413. * @param[in] hwChannel Hardware channel of FTM used.
  414. * @return void.
  415. */
  416. void Ftm_Icu_Ip_EnableInterrupt(uint8 instance, uint8 hwChannel);
  417. /**
  418. * @brief Disable channel interrupt.
  419. *
  420. * @param[in] instance Hardware instance of FTM used.
  421. * @param[in] hwChannel Hardware channel of FTM used.
  422. * @return void.
  423. */
  424. void Ftm_Icu_Ip_DisableInterrupt(uint8 instance, uint8 hwChannel);
  425. /**
  426. * @brief Driver function Enable Notification for timestamp.
  427. *
  428. * @param[in] instance Hardware instance of FTM used.
  429. * @param[in] hwChannel Hardware channel of FTM used.
  430. * @return void
  431. */
  432. void Ftm_Icu_Ip_EnableNotification(uint8 instance, uint8 hwChannel);
  433. /**
  434. * @brief Driver function Disable Notification for timestamp.
  435. *
  436. * @param[in] instance Hardware instance of FTM used.
  437. * @param[in] hwChannel Hardware channel of FTM used.
  438. * @return void
  439. */
  440. void Ftm_Icu_Ip_DisableNotification(uint8 instance, uint8 hwChannel);
  441. #define ICU_STOP_SEC_CODE
  442. #include "Icu_MemMap.h"
  443. #if defined(__cplusplus)
  444. }
  445. #endif
  446. /** @} */
  447. #endif /* FTM_ICU_IP_H */