CanIf_Can.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /**
  2. * @file CanIf_Can.h
  3. * @version 1.0.0
  4. *
  5. * @brief AUTOSAR CanIf - CanIf Cbk module interface
  6. * @details AUTOSAR CanIf Cbk module interface.- Stub Version
  7. * This file contains sample code only. It is not part of the production code deliverables.
  8. *
  9. * @addtogroup CANIF_MODULE
  10. * @{
  11. */
  12. /*==================================================================================================
  13. * Project : RTD AUTOSAR 4.4
  14. * Platform : CORTEXM
  15. * Peripheral : generic
  16. * Dependencies :
  17. *
  18. * Autosar Version : 4.4.0
  19. * Autosar Revision : ASR_REL_4_4_REV_0000
  20. * Autosar Conf.Variant :
  21. * SW Version : 1.0.0
  22. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  23. *
  24. * (c) Copyright 2020-2021 NXP Semiconductors
  25. * All Rights Reserved.
  26. *
  27. * NXP Confidential. This software is owned or controlled by NXP and may only be
  28. * used strictly in accordance with the applicable license terms. By expressly
  29. * accepting such terms or by downloading, installing, activating and/or otherwise
  30. * using the software, you are agreeing that you have read, and that you agree to
  31. * comply with and are bound by, such license terms. If you do not agree to be
  32. * bound by the applicable license terms, then you may not retain, install,
  33. * activate or otherwise use the software.
  34. ==================================================================================================*/
  35. /*==================================================================================================
  36. ==================================================================================================*/
  37. #ifndef CANIF_CAN_H
  38. #define CANIF_CAN_H
  39. #ifdef __cplusplus
  40. extern "C"
  41. {
  42. #endif
  43. #include "CanIf_Types.h"
  44. /*==================================================================================================
  45. * SOURCE FILE VERSION INFORMATION
  46. ==================================================================================================*/
  47. #define CANIF_CAN_VENDOR_ID 43
  48. #define CANIF_CAN_MODULE_ID 60
  49. #define CANIF_CAN_AR_RELEASE_MAJOR_VERSION 4
  50. #define CANIF_CAN_AR_RELEASE_MINOR_VERSION 4
  51. #define CANIF_CAN_AR_RELEASE_REVISION_VERSION 0
  52. #define CANIF_CAN_SW_MAJOR_VERSION 1
  53. #define CANIF_CAN_SW_MINOR_VERSION 0
  54. #define CANIF_CAN_SW_PATCH_VERSION 0
  55. /*==================================================================================================
  56. * FILE VERSION CHECKS
  57. ==================================================================================================*/
  58. /* Check if current file and CanIf_Types.h header file are of the same vendor */
  59. #if (CANIF_CAN_VENDOR_ID != CANIF_TYPES_VENDOR_ID)
  60. #error "CanIf_Can.h and CanIf_Types.h have different vendor ids"
  61. #endif
  62. /* Check if current file and CanIf_Types.h header file are of the same Autosar version */
  63. #if ((CANIF_CAN_AR_RELEASE_MAJOR_VERSION != CANIF_TYPES_AR_RELEASE_MAJOR_VERSION) || \
  64. (CANIF_CAN_AR_RELEASE_MINOR_VERSION != CANIF_TYPES_AR_RELEASE_MINOR_VERSION) || \
  65. (CANIF_CAN_AR_RELEASE_REVISION_VERSION != CANIF_TYPES_AR_RELEASE_REVISION_VERSION))
  66. #error "AutoSar Version Numbers of CanIf_Can.h and CanIf_Types.h are different"
  67. #endif
  68. /* Check if current file and CanIf_Types.h header file are of the same software version */
  69. #if ((CANIF_CAN_SW_MAJOR_VERSION != CANIF_TYPES_SW_MAJOR_VERSION) || \
  70. (CANIF_CAN_SW_MINOR_VERSION != CANIF_TYPES_SW_MINOR_VERSION) || \
  71. (CANIF_CAN_SW_PATCH_VERSION != CANIF_TYPES_SW_PATCH_VERSION))
  72. #error "Software Version Numbers of CanIf_Can.h and CanIf_Types.h are different"
  73. #endif
  74. /*==================================================================================================
  75. * CONSTANTS
  76. ==================================================================================================*/
  77. /*==================================================================================================
  78. * DEFINES AND MACROS
  79. ==================================================================================================*/
  80. /*==================================================================================================
  81. * STRUCTURES AND OTHER TYPEDEFS
  82. ==================================================================================================*/
  83. /*==================================================================================================
  84. * FUNCTION PROTOTYPES
  85. ==================================================================================================*/
  86. void CanIf_TxConfirmation(PduIdType CanTxPduId);
  87. void CanIf_RxIndication( const Can_HwType * Mailbox, const PduInfoType * PduInfoPtr );
  88. void CanIf_ControllerBusOff(uint8 ControllerId);
  89. void CanIf_ControllerModeIndication( uint8 ControllerId, Can_ControllerStateType ControllerMode );
  90. void CanIf_CurrentIcomConfiguration( uint8 ControllerId, IcomConfigIdType ConfigurationId, IcomSwitch_ErrorType Error);
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* CANIF_CBK_H */
  95. /** @} */