FlexCAN_Ip_Wrapper.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : FLEXCAN
  5. * Dependencies :
  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 FLEXCAN_IP_WRAPPER_H_
  25. #define FLEXCAN_IP_WRAPPER_H_
  26. /*==================================================================================================
  27. * INCLUDE FILES
  28. * 1) system and project includes
  29. * 2) needed interfaces from external units
  30. * 3) internal and external interfaces from this unit
  31. ==================================================================================================*/
  32. /*==================================================================================================
  33. * SOURCE FILE VERSION INFORMATION
  34. ==================================================================================================*/
  35. #define FLEXCAN_IP_WRAPPER_VENDOR_ID_H 43
  36. #define FLEXCAN_IP_WRAPPER_AR_RELEASE_MAJOR_VERSION_H 4
  37. #define FLEXCAN_IP_WRAPPER_AR_RELEASE_MINOR_VERSION_H 4
  38. #define FLEXCAN_IP_WRAPPER_AR_RELEASE_REVISION_VERSION_H 0
  39. #define FLEXCAN_IP_WRAPPER_SW_MAJOR_VERSION_H 1
  40. #define FLEXCAN_IP_WRAPPER_SW_MINOR_VERSION_H 0
  41. #define FLEXCAN_IP_WRAPPER_SW_PATCH_VERSION_H 0
  42. /*==================================================================================================
  43. * FILE VERSION CHECKS
  44. ==================================================================================================*/
  45. /*==================================================================================================
  46. * CONSTANTS
  47. ==================================================================================================*/
  48. /*==================================================================================================
  49. * DEFINES AND MACROS
  50. ==================================================================================================*/
  51. #if (FLEXCAN_IP_ENABLE_USER_MODE_SUPPORT == STD_ON)
  52. #define Call_FlexCAN_Ip_Init(Flexcan_Ip_u8Instance, Flexcan_Ip_pState, Flexcan_Ip_pData) \
  53. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_Init_Privileged, Flexcan_Ip_u8Instance, Flexcan_Ip_pState, Flexcan_Ip_pData))
  54. #define Call_FlexCAN_Ip_ConfigRxFifo(instance, id_format, id_filter_table) \
  55. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_ConfigRxFifo_Privileged, instance, id_format, id_filter_table))
  56. #if (FLEXCAN_IP_FEATURE_HAS_ENHANCED_RX_FIFO == STD_ON)
  57. #define Call_FlexCAN_Ip_ConfigEnhancedRxFifo(instance, id_filter_table) \
  58. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_ConfigEnhancedRxFifo_Privileged, instance, id_filter_table))
  59. #endif
  60. #define Call_FlexCAN_Ip_MainFunctionBusOff(instance) \
  61. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_MainFunctionBusOff_Privileged, instance))
  62. #define Call_FlexCAN_Ip_GetStopMode(instance) \
  63. ((boolean)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_GetStopMode_Privileged, instance))
  64. #define Call_FlexCAN_Ip_GetStartMode(instance) \
  65. ((boolean)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_GetStartMode_Privileged, instance))
  66. #define Call_FlexCAN_Ip_EnterFreezeMode(instance) \
  67. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_EnterFreezeMode_Privileged, instance))
  68. #define Call_FlexCAN_Ip_ExitFreezeMode(instance) \
  69. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_ExitFreezeMode_Privileged, instance))
  70. #define Call_FlexCAN_Ip_SetRxFifoGlobalMask(instance, mask) \
  71. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetRxFifoGlobalMask_Privileged, instance, mask))
  72. #define Call_FlexCAN_Ip_Deinit(instance) \
  73. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_Deinit_Privileged, instance))
  74. #define Call_FlexCAN_Ip_SetStartMode(instance) \
  75. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_SetStartMode_Privileged, instance))
  76. #define Call_FlexCAN_Ip_SetStopMode(instance) \
  77. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_SetStopMode_Privileged, instance))
  78. #define Call_FlexCAN_Ip_SetRxMaskType(instance, type) \
  79. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetRxMaskType_Privileged, instance, type))
  80. #define Call_FlexCAN_Ip_SetRxMb14Mask(instance, mask) \
  81. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetRxMb14Mask_Privileged, instance, mask))
  82. #define Call_FlexCAN_Ip_SetRxMb15Mask(instance, mask) \
  83. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetRxMb15Mask_Privileged, instance, mask))
  84. #define Call_FlexCAN_Ip_SetRxMbGlobalMask(instance, mask) \
  85. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetRxMbGlobalMask_Privileged, instance, mask))
  86. #define Call_FlexCAN_Ip_SetRxIndividualMask(instance, mb_idx, mask) \
  87. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_SetRxIndividualMask_Privileged, instance, mb_idx, mask))
  88. #define Call_FlexCAN_Ip_SetBitrateCbt(instance, bitrate, bitRateSwitch) \
  89. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_SetBitrateCbt_Privileged, instance, bitrate, bitRateSwitch))
  90. #define Call_FlexCAN_Ip_SetBitrate(instance, bitrate, enhExt) \
  91. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_SetBitrate_Privileged, instance, bitrate, enhExt))
  92. #define Call_FlexCAN_Ip_SetTxArbitrationStartDelay(instance, value) \
  93. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetTxArbitrationStartDelay_Privileged, instance, value))
  94. #define Call_FlexCAN_Ip_SetTDCOffset(instance, enable, offset) \
  95. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_SetTDCOffset_Privileged, instance, enable, offset))
  96. #define Call_FlexCAN_Ip_EnableInterrupts(u8Instance) \
  97. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_EnableInterrupts_Privileged, u8Instance))
  98. #define Call_FlexCAN_Ip_DisableInterrupts(u8Instance) \
  99. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return1param((uint32)FlexCAN_Ip_DisableInterrupts_Privileged, u8Instance))
  100. #define Call_FlexCAN_Ip_SetErrorInt(u8Instance, type, enable) \
  101. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_SetErrorInt_Privileged, u8Instance, type, enable))
  102. #define Call_FlexCAN_Ip_SetListenOnlyMode(instance, value) \
  103. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_SetListenOnlyMode_Privileged, instance, value))
  104. #if (FLEXCAN_IP_FEATURE_HAS_TS_ENABLE == STD_ON)
  105. #define Call_FlexCAN_Ip_ConfigTimeStamp(instance, time_stamp) \
  106. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return2param((uint32)FlexCAN_Ip_ConfigTimeStamp_Privileged, instance, time_stamp))
  107. #endif
  108. #if (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON)
  109. #define Call_FlexCAN_Ip_ConfigPN(u8Instance, bEnable, pPnConfig) \
  110. ((Flexcan_Ip_StatusType)OsIf_Trusted_Call_Return3param((uint32)FlexCAN_Ip_ConfigPN_Privileged, u8Instance, bEnable, pPnConfig))
  111. #endif /* (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON) */
  112. #else
  113. #define Call_FlexCAN_Ip_Init(Flexcan_Ip_u8Instance, Flexcan_Ip_pState, Flexcan_Ip_pData) \
  114. FlexCAN_Ip_Init_Privileged(Flexcan_Ip_u8Instance, Flexcan_Ip_pState, Flexcan_Ip_pData)
  115. #define Call_FlexCAN_Ip_ConfigRxFifo(instance, id_format, id_filter_table) \
  116. FlexCAN_Ip_ConfigRxFifo_Privileged(instance, id_format, id_filter_table)
  117. #if (FLEXCAN_IP_FEATURE_HAS_ENHANCED_RX_FIFO == STD_ON)
  118. #define Call_FlexCAN_Ip_ConfigEnhancedRxFifo(instance, id_filter_table) \
  119. FlexCAN_Ip_ConfigEnhancedRxFifo_Privileged(instance, id_filter_table)
  120. #endif
  121. #define Call_FlexCAN_Ip_MainFunctionBusOff(instance) \
  122. FlexCAN_Ip_MainFunctionBusOff_Privileged(instance)
  123. #define Call_FlexCAN_Ip_GetStopMode(instance) \
  124. FlexCAN_Ip_GetStopMode_Privileged(instance)
  125. #define Call_FlexCAN_Ip_GetStartMode(instance) \
  126. FlexCAN_Ip_GetStartMode_Privileged(instance)
  127. #define Call_FlexCAN_Ip_EnterFreezeMode(instance) \
  128. FlexCAN_Ip_EnterFreezeMode_Privileged(instance)
  129. #define Call_FlexCAN_Ip_ExitFreezeMode(instance) \
  130. FlexCAN_Ip_ExitFreezeMode_Privileged(instance)
  131. #define Call_FlexCAN_Ip_SetRxFifoGlobalMask(instance, mask) \
  132. FlexCAN_Ip_SetRxFifoGlobalMask_Privileged(instance, mask)
  133. #define Call_FlexCAN_Ip_Deinit(instance) \
  134. FlexCAN_Ip_Deinit_Privileged(instance)
  135. #define Call_FlexCAN_Ip_SetStartMode(instance) \
  136. FlexCAN_Ip_SetStartMode_Privileged(instance)
  137. #define Call_FlexCAN_Ip_SetStopMode(instance) \
  138. FlexCAN_Ip_SetStopMode_Privileged(instance)
  139. #define Call_FlexCAN_Ip_SetRxMaskType(instance, type) \
  140. FlexCAN_Ip_SetRxMaskType_Privileged(instance, type)
  141. #define Call_FlexCAN_Ip_SetRxMb14Mask(instance, mask) \
  142. FlexCAN_Ip_SetRxMb14Mask_Privileged(instance, mask)
  143. #define Call_FlexCAN_Ip_SetRxMb15Mask(instance, mask) \
  144. FlexCAN_Ip_SetRxMb15Mask_Privileged(instance, mask)
  145. #define Call_FlexCAN_Ip_SetRxIndividualMask(instance, mb_idx, mask) \
  146. FlexCAN_Ip_SetRxIndividualMask_Privileged(instance, mb_idx, mask)
  147. #define Call_FlexCAN_Ip_SetRxMbGlobalMask(instance, mask) \
  148. FlexCAN_Ip_SetRxMbGlobalMask_Privileged(instance, mask)
  149. #define Call_FlexCAN_Ip_SetBitrateCbt(instance, bitrate, bitRateSwitch) \
  150. FlexCAN_Ip_SetBitrateCbt_Privileged(instance, bitrate, bitRateSwitch)
  151. #define Call_FlexCAN_Ip_SetBitrate(instance, bitrate, enhExt) \
  152. FlexCAN_Ip_SetBitrate_Privileged(instance, bitrate, enhExt)
  153. #define Call_FlexCAN_Ip_SetTxArbitrationStartDelay(instance, value) \
  154. FlexCAN_Ip_SetTxArbitrationStartDelay_Privileged(instance, value)
  155. #define Call_FlexCAN_Ip_SetTDCOffset(instance, enable, offset) \
  156. FlexCAN_Ip_SetTDCOffset_Privileged(instance, enable, offset)
  157. #define Call_FlexCAN_Ip_EnableInterrupts(u8Instance) \
  158. FlexCAN_Ip_EnableInterrupts_Privileged(u8Instance)
  159. #define Call_FlexCAN_Ip_DisableInterrupts(u8Instance) \
  160. FlexCAN_Ip_DisableInterrupts_Privileged(u8Instance)
  161. #define Call_FlexCAN_Ip_SetErrorInt(u8Instance, type, enable) \
  162. FlexCAN_Ip_SetErrorInt_Privileged(u8Instance, type, enable)
  163. #define Call_FlexCAN_Ip_SetListenOnlyMode(instance, value) \
  164. FlexCAN_Ip_SetListenOnlyMode_Privileged(instance, value)
  165. #if (FLEXCAN_IP_FEATURE_HAS_TS_ENABLE == STD_ON)
  166. #define Call_FlexCAN_Ip_ConfigTimeStamp(instance, time_stamp) \
  167. FlexCAN_Ip_ConfigTimeStamp_Privileged(instance, time_stamp)
  168. #endif
  169. #if (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON)
  170. #define Call_FlexCAN_Ip_ConfigPN(u8Instance, bEnable, pPnConfig) \
  171. FlexCAN_Ip_ConfigPN_Privileged(u8Instance, bEnable, pPnConfig)
  172. #endif /* (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON) */
  173. #endif /* (FLEXCAN_IP_ENABLE_USER_MODE_SUPPORT == STD_ON) */
  174. /*==================================================================================================
  175. * ENUMS
  176. ==================================================================================================*/
  177. /*==================================================================================================
  178. * STRUCTURES AND OTHER TYPEDEFS
  179. ==================================================================================================*/
  180. /*==================================================================================================
  181. * GLOBAL VARIABLE DECLARATIONS
  182. ==================================================================================================*/
  183. /*==================================================================================================
  184. * FUNCTION PROTOTYPES
  185. ==================================================================================================*/
  186. #define CAN_START_SEC_CODE
  187. #include "Can_MemMap.h"
  188. /**
  189. * @brief Initializes the FlexCAN peripheral.
  190. */
  191. Flexcan_Ip_StatusType FlexCAN_Ip_Init_Privileged(uint8 Flexcan_Ip_u8Instance,
  192. Flexcan_Ip_StateType * Flexcan_Ip_pState,
  193. const Flexcan_Ip_ConfigType * Flexcan_Ip_pData);
  194. /**
  195. * @brief FlexCAN Rx Legacy FIFO filter configuration
  196. */
  197. Flexcan_Ip_StatusType FlexCAN_Ip_ConfigRxFifo_Privileged(uint8 instance,
  198. Flexcan_Ip_RxFifoIdElementFormatType id_format,
  199. const Flexcan_Ip_IdTableType * id_filter_table);
  200. #if (FLEXCAN_IP_FEATURE_HAS_ENHANCED_RX_FIFO == STD_ON)
  201. /**
  202. * @brief FlexCAN Enhanced Rx FIFO filter configuration
  203. */
  204. Flexcan_Ip_StatusType FlexCAN_Ip_ConfigEnhancedRxFifo_Privileged(uint8 instance,
  205. const Flexcan_Ip_EnhancedIdTableType * id_filter_table);
  206. #endif /* (FLEXCAN_IP_FEATURE_HAS_ENHANCED_RX_FIFO == STD_ON) */
  207. /**
  208. * @brief Check a bus-off event.
  209. */
  210. Flexcan_Ip_StatusType FlexCAN_Ip_MainFunctionBusOff_Privileged(uint8 instance);
  211. /**
  212. * @brief Check if the FlexCAN instance is STOPPED.
  213. */
  214. boolean FlexCAN_Ip_GetStopMode_Privileged(uint8 instance);
  215. /**
  216. * @brief Check if the FlexCAN instance is STARTED.
  217. */
  218. boolean FlexCAN_Ip_GetStartMode_Privileged(uint8 instance);
  219. /**
  220. * @brief Enter FlexCAN Module in Freeze Mode.
  221. */
  222. Flexcan_Ip_StatusType FlexCAN_Ip_EnterFreezeMode_Privileged(uint8 instance);
  223. /**
  224. * @brief Exit FlexCAN Module from Freeze Mode.
  225. */
  226. Flexcan_Ip_StatusType FlexCAN_Ip_ExitFreezeMode_Privileged(uint8 instance);
  227. /**
  228. * @brief Set RxFifo Global Mask.
  229. */
  230. Flexcan_Ip_StatusType FlexCAN_Ip_SetRxFifoGlobalMask_Privileged(uint8 instance,
  231. uint32 mask);
  232. /**
  233. * @brief DeInitilize the FlexCAN instance driver
  234. */
  235. Flexcan_Ip_StatusType FlexCAN_Ip_Deinit_Privileged(uint8 instance);
  236. /**
  237. * @brief Set the FlexCAN instance in START mode
  238. */
  239. Flexcan_Ip_StatusType FlexCAN_Ip_SetStartMode_Privileged(uint8 instance);
  240. /**
  241. * @brief Set the FlexCAN instance in STOP mode
  242. */
  243. Flexcan_Ip_StatusType FlexCAN_Ip_SetStopMode_Privileged(uint8 instance);
  244. /**
  245. * @brief Set RX masking type
  246. */
  247. Flexcan_Ip_StatusType FlexCAN_Ip_SetRxMaskType_Privileged(uint8 instance,
  248. Flexcan_Ip_RxMaskType type);
  249. /*
  250. * @brief Set Rx14Mask filter for message buffer 14.
  251. */
  252. Flexcan_Ip_StatusType FlexCAN_Ip_SetRxMb14Mask_Privileged(uint8 instance, uint32 mask);
  253. /*
  254. * @brief Set Rx14Mask filter for message buffer 15.
  255. */
  256. Flexcan_Ip_StatusType FlexCAN_Ip_SetRxMb15Mask_Privileged(uint8 instance, uint32 mask);
  257. /*
  258. * @brief Sets the FlexCAN Rx individual mask
  259. */
  260. Flexcan_Ip_StatusType FlexCAN_Ip_SetRxIndividualMask_Privileged(uint8 instance, uint8 mb_idx, uint32 mask);
  261. /*
  262. * @brief Sets the FlexCAN Rx Message Buffer Global mask
  263. */
  264. Flexcan_Ip_StatusType FlexCAN_Ip_SetRxMbGlobalMask_Privileged(uint8 instance, uint32 mask);
  265. /**
  266. * @brief Sets the FlexCAN bit rate for standard frames or the arbitration phase of FD frames.
  267. */
  268. Flexcan_Ip_StatusType FlexCAN_Ip_SetBitrate_Privileged(uint8 instance,
  269. const Flexcan_Ip_TimeSegmentType * bitrate,
  270. boolean enhExt);
  271. #if (FLEXCAN_IP_FEATURE_HAS_FD == STD_ON)
  272. /**
  273. * @brief Sets the FlexCAN bit rate for the data phase of FD frames.
  274. */
  275. Flexcan_Ip_StatusType FlexCAN_Ip_SetBitrateCbt_Privileged(uint8 instance,
  276. const Flexcan_Ip_TimeSegmentType * bitrate,
  277. boolean bitRateSwitch);
  278. /**
  279. * @brief This function will set how many CAN bits the Tx arbitration process start point can
  280. */
  281. Flexcan_Ip_StatusType FlexCAN_Ip_SetTxArbitrationStartDelay_Privileged(uint8 instance, uint8 value);
  282. /**
  283. * @brief Enables/Disables the Transceiver Delay Compensation feature and sets
  284. * the Transceiver Delay Compensation Offset (offset value to be added to the
  285. * measured transceiver's loop delay in order to define the position of the
  286. * delayed comparison point when bit rate switching is active).
  287. */
  288. Flexcan_Ip_StatusType FlexCAN_Ip_SetTDCOffset_Privileged(uint8 instance,
  289. boolean enable,
  290. uint8 offset);
  291. #endif /* FLEXCAN_IP_FEATURE_HAS_FD == STD_ON */
  292. /**
  293. * @brief Enable all mb interrupts configured.
  294. */
  295. Flexcan_Ip_StatusType FlexCAN_Ip_EnableInterrupts_Privileged(uint8 u8Instance);
  296. /**
  297. * @brief Disable all mb interrupts configured.
  298. */
  299. Flexcan_Ip_StatusType FlexCAN_Ip_DisableInterrupts_Privileged(uint8 u8Instance);
  300. /**
  301. * @brief Enable\Disable Error or BusOff Interrupt
  302. */
  303. Flexcan_Ip_StatusType FlexCAN_Ip_SetErrorInt_Privileged(uint8 u8Instance,
  304. Flexcan_Ip_ErrorIntType type,
  305. boolean enable);
  306. /**
  307. * @brief Set FlexCAN Listen Only.
  308. */
  309. Flexcan_Ip_StatusType FlexCAN_Ip_SetListenOnlyMode_Privileged(uint8 instance, const boolean enable);
  310. #if (FLEXCAN_IP_FEATURE_HAS_TS_ENABLE == STD_ON)
  311. /**
  312. * @brief Set FlexCAN Config Timestamp.
  313. */
  314. Flexcan_Ip_StatusType FlexCAN_Ip_ConfigTimeStamp_Privileged(uint8 instance, const Flexcan_Ip_TimeStampConfigType * time_stamp);
  315. #endif
  316. #if (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON)
  317. Flexcan_Ip_StatusType FlexCAN_Ip_ConfigPN_Privileged(uint8 u8Instance,
  318. boolean bEnable,
  319. const Flexcan_Ip_PnConfigType * pPnConfig);
  320. #endif /* (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON) */
  321. #define CAN_STOP_SEC_CODE
  322. #include "Can_MemMap.h"
  323. #endif /* FLEXCAN_IP_WRAPPER_H_ */