123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- #ifndef CAN_IRQ_H
- #define CAN_IRQ_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Can_Ipw_Cfg.h"
- #define CAN_IRQ_VENDOR_ID 43
- #define CAN_IRQ_AR_RELEASE_MAJOR_VERSION 4
- #define CAN_IRQ_AR_RELEASE_MINOR_VERSION 4
- #define CAN_IRQ_AR_RELEASE_REVISION_VERSION 0
- #define CAN_IRQ_SW_MAJOR_VERSION 1
- #define CAN_IRQ_SW_MINOR_VERSION 0
- #define CAN_IRQ_SW_PATCH_VERSION 0
- #if (CAN_IRQ_VENDOR_ID != CAN_IPW_CFG_VENDOR_ID)
- #error "Can_Irq.h and Can_Ipw_Cfg.h have different vendor ids"
- #endif
- #if ((CAN_IRQ_AR_RELEASE_MAJOR_VERSION != CAN_IPW_CFG_AR_RELEASE_MAJOR_VERSION) || \
- (CAN_IRQ_AR_RELEASE_MINOR_VERSION != CAN_IPW_CFG_AR_RELEASE_MINOR_VERSION) || \
- (CAN_IRQ_AR_RELEASE_REVISION_VERSION != CAN_IPW_CFG_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Can_Irq.h and Can_Ipw_Cfg.h are different"
- #endif
- #if ((CAN_IRQ_SW_MAJOR_VERSION != CAN_IPW_CFG_SW_MAJOR_VERSION) || \
- (CAN_IRQ_SW_MINOR_VERSION != CAN_IPW_CFG_SW_MINOR_VERSION) || \
- (CAN_IRQ_SW_PATCH_VERSION != CAN_IPW_CFG_SW_PATCH_VERSION))
- #error "Software Version Numbers of Can_Irq.h and Can_Ipw_Cfg.h are different"
- #endif
- #define CAN_START_SEC_CODE
- #include "Can_MemMap.h"
- #if (CAN_MB_INTERRUPT_SUPPORT == STD_ON)
- void Can_ProcessMesgBufferCommonInterrupt
- (
- uint8 u8CtrlOffset,
- uint8 u8MbIdx,
- Can_MbType mbType
- );
- #endif
- void Can_ProcessBusOffInterrupt
- (
- uint8 u8CtrlOffset
- );
- #if (CAN_ERROR_INTERRUPT_SUPPORT == STD_ON)
- void Can_ProcessErrorInterrupt
- (
- uint8 u8CtrlOffset,
- boolean bIsErrFast
- );
- #endif
- #if (CAN_PUBLIC_ICOM_SUPPORT == STD_ON)
- void Can_ProcessPNInterrupt(uint8 u8CtrlOffset);
- #endif
- #define CAN_STOP_SEC_CODE
- #include "Can_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|