MCUSW
Loading...
Searching...
No Matches
Can_Cfg.h File Reference

Introduction

This file contains generated pre compile configuration file for CAN MCAL driver.

Go to the source code of this file.

CAN DEM Error codes to report

Pre-compile switches for enabling/disabling DEM events

#define CAN_E_HARDWARE_ERROR   (DemConf_DemEventParameter_CAN_E_HARDWARE_ERROR)
 Hardware failed.
 
enum  Can_ControllerInstance { CAN_CONTROLLER_INSTANCE_MCU_MCAN0 = 0U , CAN_CONTROLLER_INSTANCE_MCU_MCAN1 = 1U , CAN_CONTROLLER_INSTANCE_MCAN0 = 2U }
 Can Controller Instances enum. More...
 
const struct Can_ConfigType_s CanConfigSet
 CAN Configuration struct declaration.
 
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_0
 CAN Controller Configuration Pre Compile struct declaration.
 
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_1
 CAN Controller Configuration Pre Compile struct declaration.
 
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_2
 CAN Controller Configuration Pre Compile struct declaration.
 
const struct Can_ControllerStruct_PC * CanConfigSet_CanController_List_PC [CAN_NUM_CONTROLLER]
 CAN Controller Pre Compile Configuration List.
 
const struct Can_MailboxStruct_PC * CanConfigSet_CanHardwareObject_List_PC [CAN_NUM_MAILBOXES]
 CAN Mailbox Pre Compile Configuration List.
 
const uint32 Can_MsgmemRAMBaseAddr [CAN_MAX_CONTROLLER]
 Base Address of the can peripherals.
 
const uint32 Can_MCANSSBaseAddr [CAN_MAX_CONTROLLER]
 
const uint32 Can_MCANCoreRegBaseAddr [CAN_MAX_CONTROLLER]
 
const uint32 Can_MCANECCAggrRegBaseAddr [CAN_MAX_CONTROLLER]
 
void Can_0_Int0ISR (void)
 MCU_MCAN0 Controller Instance ISR.
 
void Can_1_Int0ISR (void)
 MCU_MCAN1 Controller Instance ISR.
 
void Can_2_Int0ISR (void)
 MCAN0 Controller Instance ISR.
 

Macros

#define CAN_VARIANT_PRE_COMPILE   (STD_ON)
 CAN Build Variant. Build variants.(i.e Pre Compile,Post Build)
 
CAN Driver ISR category level

Defines for CAN Driver ISR ISR category level

#define CAN_ISR_VOID   (0x00U)
 void ISR type
 
#define CAN_ISR_CAT1   (0x01U)
 Category 1 ISR type.
 
#define CAN_ISR_CAT2   (0x02U)
 Category 2 ISR type.
 
Can Driver Configuration SW Version Info

Pre-compile switches for enabling/disabling CAN MCAL APIs

#define CAN_VERSION_INFO_API   (STD_ON)
 
#define CAN_DEV_ERROR_DETECT   (STD_ON)
 
#define CAN_SAFETY_DIAGNOSTIC   (STD_ON)
 
#define CAN_LOOPBACK_ENABLE   (STD_ON)
 
#define CAN_REGISTER_READBACK_API   (STD_ON)
 
#define CAN_SET_BAUDRATE_API   (STD_ON)
 
#define CAN_WAKEUP_FUNCTIONALITY_API   (STD_OFF)
 
#define CAN_MULTIPLEXED_TRANSMISSION_ENABLE   (STD_ON)
 
#define CAN_INIT_CONFIG_PC   CanConfigSet
 Pre Compile config macro name.
 
#define CAN_TX_POLLING   (STD_OFF)
 
#define CAN_RX_POLLING   (STD_OFF)
 
#define CAN_BUSOFF_POLLING   (STD_OFF)
 
#define CAN_WAKEUP_POLLING   (STD_OFF)
 
#define CAN_NUM_CONTROLLER   (3U)
 
#define CAN_NUM_MAILBOXES   (9U)
 
#define CAN_MAX_CONTROLLER   (16U)
 
#define CAN_MAX_MAILBOXES   (64U)
 
#define CAN_ISR_TYPE   (CAN_ISR_CAT1)
 
#define CLK_CAN_FD_FREQ   (80U)
 
Can Controller Id names

Defines for symbolic names for the CanControllerIds

#define CanConf_CanController_CanController_0   (0U)
 
#define CanConf_CanController_CanController_1   (1U)
 
#define CanConf_CanController_CanController_2   (2U)
 
#define CAN_CONTROLLER_MCU_MCAN0
 
#define CAN_CONTROLLER_MCU_MCAN1
 
#define CAN_CONTROLLER_MCAN0
 
Can HW Object names

Defines for symbolic names for the CanHardwareObjectIds

#define CanConf_CanHardwareObject_CanHardwareObject_0   (0U)
 
#define CAN_HTRH_0   (CanConf_CanHardwareObject_CanHardwareObject_0)
 
#define CanConf_CanHardwareObject_CanHardwareObject_1   (1U)
 
#define CAN_HTRH_1   (CanConf_CanHardwareObject_CanHardwareObject_1)
 
#define CanConf_CanHardwareObject_CanHardwareObject_2   (2U)
 
#define CAN_HTRH_2   (CanConf_CanHardwareObject_CanHardwareObject_2)
 
#define CanConf_CanHardwareObject_CanHardwareObject_3   (3U)
 
#define CAN_HTRH_3   (CanConf_CanHardwareObject_CanHardwareObject_3)
 
#define CanConf_CanHardwareObject_CanHardwareObject_4   (4U)
 
#define CAN_HTRH_4   (CanConf_CanHardwareObject_CanHardwareObject_4)
 
#define CanConf_CanHardwareObject_CanHardwareObject_5   (5U)
 
#define CAN_HTRH_5   (CanConf_CanHardwareObject_CanHardwareObject_5)
 
#define CanConf_CanHardwareObject_CanHardwareObject_6   (6U)
 
#define CAN_HTRH_6   (CanConf_CanHardwareObject_CanHardwareObject_6)
 
#define CanConf_CanHardwareObject_CanHardwareObject_7   (7U)
 
#define CAN_HTRH_7   (CanConf_CanHardwareObject_CanHardwareObject_7)
 
#define CanConf_CanHardwareObject_CanHardwareObject_8   (8U)
 
#define CAN_HTRH_8   (CanConf_CanHardwareObject_CanHardwareObject_8)
 
#define CAN_OS_COUNTER_ID   ((CounterType)OsCounter_0)
 Counter ID for counter used to count wait ticks.
 
#define CAN_TIMEOUT_DURATION   (10000U)
 CAN timeout - used in CAN IFCMD busy wait and Start/Stop busy wait. Specifies the maximum time for blocking function until a timeout is detected. Unit is milli seconds.