Can_Ipw_Irq.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. /*==================================================================================================
  25. ==================================================================================================*/
  26. #ifndef CAN_IPW_IRQ_H
  27. #define CAN_IPW_IRQ_H
  28. /**
  29. * @file Can_Ipw_Irq.h
  30. * @version 1.0.0
  31. *
  32. * @brief AUTOSAR Can - module interface.
  33. * @details API header for CAN driver.
  34. *
  35. * @addtogroup CAN_DRIVER
  36. * @{
  37. */
  38. #ifdef __cplusplus
  39. extern "C"{
  40. #endif
  41. /*
  42. * @page misra_violations MISRA-C:2012 violations
  43. *
  44. * @section [global]
  45. * Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
  46. * The used compilers use more than 31 chars for identifiers.
  47. *
  48. * @section [global]
  49. * Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
  50. * The used compilers use more than 31 chars for identifiers.
  51. *
  52. * @section [global]
  53. * Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
  54. * The used compilers use more than 31 chars for identifiers.
  55. *
  56. * @section [global]
  57. * Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
  58. * The used compilers use more than 31 chars for identifiers.
  59. *
  60. * @section Can_Ipw_Irq_h_REF_1
  61. * Violates MISRA 2012 Advisory Rule 4.9, A function should be used in preference to a function-like macro where they are interchangeable.
  62. * Function like macro are used to reduce code complexity.
  63. *
  64. * @section Can_Ipw_Irq_h_REF_2
  65. * Violates MISRA 2012 Advisory Rule 2.5, A project should not contain unused macro declarations.
  66. * The macro is used as depending on configuration.
  67. */
  68. /*==================================================================================================
  69. * INCLUDE FILES
  70. * 1) system and project includes
  71. * 2) needed interfaces from external units
  72. * 3) internal and external interfaces from this unit
  73. ==================================================================================================*/
  74. #include "Can_Irq.h"
  75. /*==================================================================================================
  76. * SOURCE FILE VERSION INFORMATION
  77. ==================================================================================================*/
  78. #define CAN_IPW_IRQ_VENDOR_ID 43
  79. #define CAN_IPW_IRQ_AR_RELEASE_MAJOR_VERSION 4
  80. #define CAN_IPW_IRQ_AR_RELEASE_MINOR_VERSION 4
  81. #define CAN_IPW_IRQ_AR_RELEASE_REVISION_VERSION 0
  82. #define CAN_IPW_IRQ_SW_MAJOR_VERSION 1
  83. #define CAN_IPW_IRQ_SW_MINOR_VERSION 0
  84. #define CAN_IPW_IRQ_SW_PATCH_VERSION 0
  85. /*==================================================================================================
  86. * FILE VERSION CHECKS
  87. ==================================================================================================*/
  88. /* Check if current file and Can_Irq.h are of the same vendor */
  89. #if (CAN_IPW_IRQ_VENDOR_ID != CAN_IRQ_VENDOR_ID)
  90. #error "Can_IPW_Irq.h and Can_Irq.h have different vendor ids"
  91. #endif
  92. /* Check if current file and Can_Irq.h are of the same Autosar version */
  93. #if ((CAN_IPW_IRQ_AR_RELEASE_MAJOR_VERSION != CAN_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  94. (CAN_IPW_IRQ_AR_RELEASE_MINOR_VERSION != CAN_IRQ_AR_RELEASE_MINOR_VERSION) || \
  95. (CAN_IPW_IRQ_AR_RELEASE_REVISION_VERSION != CAN_IRQ_AR_RELEASE_REVISION_VERSION) \
  96. )
  97. #error "AutoSar Version Numbers of Can_IPW_Irq.h and Can_Irq.h are different"
  98. #endif
  99. /* Check if current file and Can_Irq.h are of the same software version */
  100. #if ((CAN_IPW_IRQ_SW_MAJOR_VERSION != CAN_IRQ_SW_MAJOR_VERSION) || \
  101. (CAN_IPW_IRQ_SW_MINOR_VERSION != CAN_IRQ_SW_MINOR_VERSION) || \
  102. (CAN_IPW_IRQ_SW_PATCH_VERSION != CAN_IRQ_SW_PATCH_VERSION) \
  103. )
  104. #error "Software Version Numbers of Can_IPW_Irq.h and Can_Irq.h are different"
  105. #endif
  106. /*==================================================================================================
  107. * FUNCTION PROTOTYPES
  108. ==================================================================================================*/
  109. /* @violates @ref Can_Ipw_Irq_h_REF_1 MISRA 2012 Advisory Rule 4.9 */
  110. /* @violates @ref Can_Ipw_Irq_h_REF_2 MISRA 2012 Advisory Rule 2.5 */
  111. #define Can_Ipw_ProcessMesgBufferCommonInterrupt(u8CtrlOffset, u8FirstMbIdx, u8LastMbIdx) Can_ProcessMesgBufferCommonInterrupt((u8CtrlOffset), (u8FirstMbIdx), (u8LastMbIdx))
  112. /* @violates @ref Can_Ipw_Irq_h_REF_1 MISRA 2012 Advisory Rule 4.9 */
  113. /* @violates @ref Can_Ipw_Irq_h_REF_2 MISRA 2012 Advisory Rule 2.5 */
  114. #define Can_Ipw_ProcessBusOffInterrupt(u8CtrlOffset) Can_ProcessBusOffInterrupt(u8CtrlOffset)
  115. /* @violates @ref Can_Ipw_Irq_h_REF_1 MISRA 2012 Advisory Rule 4.9 */
  116. /* @violates @ref Can_Ipw_Irq_h_REF_2 MISRA 2012 Advisory Rule 2.5 */
  117. #define Can_Ipw_ProcessErrorInterrupt(u8CtrlOffset, bIsErrFast) Can_ProcessErrorInterrupt(u8CtrlOffset, bIsErrFast)
  118. /* @violates @ref Can_Ipw_Irq_h_REF_1 MISRA 2012 Advisory Rule 4.9 */
  119. /* @violates @ref Can_Ipw_Irq_h_REF_2 MISRA 2012 Advisory Rule 2.5 */
  120. #define Can_Ipw_ProcessEnhancedFiFoInterrupt(u8CtrlOffset) Can_ProcessEnhancedFiFoInterrupt(u8CtrlOffset)
  121. #ifdef __cplusplus
  122. }
  123. #endif
  124. /** @} */
  125. #endif /* CAN_IPW_IRQ_H */