MCUSW
Can_Cfg.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) 2024 Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62  /***************************************************************************
63  Project : CAN_J721E
64  Date : 2024-10-21 23:34:45
65  SW Ver : 10.0.0
66  Module Rele Ver : AUTOSAR 4.3.1 0
67 
68  This file is generated by EB Tresos
69  Do not modify this file, otherwise the software may behave in unexpected way.
70 
71  *****************************************************************************/
72 
90 #ifndef CAN_CFG_H_
91 #define CAN_CFG_H_
92 
93 #include "Dem.h"
94 
95 
96 #ifdef __cplusplus
97 extern "C" {
98 #endif
99 
100 
106 #define CAN_VARIANT_PRE_COMPILE (STD_ON)
107 
115 #define CAN_ISR_VOID (0x00U)
116 
117 #define CAN_ISR_CAT1 (0x01U)
118 
119 #define CAN_ISR_CAT2 (0x02U)
120 /* @} */
121 
128 #define CAN_VERSION_INFO_API (STD_ON)
129 
131 #define CAN_DEV_ERROR_DETECT (STD_ON)
132 
134 #define CAN_SAFETY_DIAGNOSTIC (STD_ON)
135 
137 #define CAN_LOOPBACK_ENABLE (STD_ON)
138 
140 #define CAN_REGISTER_READBACK_API (STD_ON)
141 
143 #define CAN_SET_BAUDRATE_API (STD_ON)
144 
146 #define CAN_WAKEUP_FUNCTIONALITY_API (STD_OFF)
147 
149 #define CAN_MULTIPLEXED_TRANSMISSION_ENABLE (STD_ON)
150 
157 #define CAN_INIT_CONFIG_PC CanConfigSet
158 
159 
160 
161 
162 /*
163  * Design: MCAL-6116
164  */
165 #define CAN_TX_POLLING (STD_OFF)
166 
167 #define CAN_RX_POLLING (STD_OFF)
168 
169 #define CAN_BUSOFF_POLLING (STD_OFF)
170 
171 #define CAN_WAKEUP_POLLING (STD_OFF)
172 
174 /* @} */
175 
176 #define CAN_NUM_CONTROLLER (3U)
177 
179 #define CAN_NUM_MAILBOXES (9U)
180 
182 #define CAN_MAX_CONTROLLER (16U)
183 
185 #define CAN_MAX_MAILBOXES (64U)
186 
188 #define CAN_ISR_TYPE (CAN_ISR_CAT1)
189 
191 #define CLK_CAN_FD_FREQ (80U)
192 
200 #define CanConf_CanController_CanController_0 (0U)
201 #define CanConf_CanController_CanController_1 (1U)
202 #define CanConf_CanController_CanController_2 (2U)
203 /* @} */
204 
205 /* @} */
206 
207 
208 #define CAN_CONTROLLER_MCU_MCAN0
209 
211 #define CAN_CONTROLLER_MCU_MCAN1
212 
214 #define CAN_CONTROLLER_MCAN0
215 
303 #define CanConf_CanHardwareObject_CanHardwareObject_0 (0U)
304 #define CAN_HTRH_0 (CanConf_CanHardwareObject_CanHardwareObject_0)
305 
306 #define CanConf_CanHardwareObject_CanHardwareObject_1 (1U)
307 #define CAN_HTRH_1 (CanConf_CanHardwareObject_CanHardwareObject_1)
308 
309 #define CanConf_CanHardwareObject_CanHardwareObject_2 (2U)
310 #define CAN_HTRH_2 (CanConf_CanHardwareObject_CanHardwareObject_2)
311 
312 #define CanConf_CanHardwareObject_CanHardwareObject_3 (3U)
313 #define CAN_HTRH_3 (CanConf_CanHardwareObject_CanHardwareObject_3)
314 
315 #define CanConf_CanHardwareObject_CanHardwareObject_4 (4U)
316 #define CAN_HTRH_4 (CanConf_CanHardwareObject_CanHardwareObject_4)
317 
318 #define CanConf_CanHardwareObject_CanHardwareObject_5 (5U)
319 #define CAN_HTRH_5 (CanConf_CanHardwareObject_CanHardwareObject_5)
320 
321 #define CanConf_CanHardwareObject_CanHardwareObject_6 (6U)
322 #define CAN_HTRH_6 (CanConf_CanHardwareObject_CanHardwareObject_6)
323 
324 #define CanConf_CanHardwareObject_CanHardwareObject_7 (7U)
325 #define CAN_HTRH_7 (CanConf_CanHardwareObject_CanHardwareObject_7)
326 
327 #define CanConf_CanHardwareObject_CanHardwareObject_8 (8U)
328 #define CAN_HTRH_8 (CanConf_CanHardwareObject_CanHardwareObject_8)
329 
330 /* @} */
331 
332 /* @} */
333 
335 #define CAN_OS_COUNTER_ID ((CounterType)OsCounter_0)
336 
342 #define CAN_TIMEOUT_DURATION (10000U)
343 
351 #ifndef CAN_E_HARDWARE_ERROR
352 
353 #define CAN_E_HARDWARE_ERROR (DemConf_DemEventParameter_CAN_E_HARDWARE_ERROR)
354 #endif
355 
356 /* @} */
357 
358 /* ========================================================================== */
359 /* Structures and Enums */
360 /* ========================================================================== */
361 
363 extern const struct Can_ConfigType_s CanConfigSet;
364 
365 
367 extern const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_0;
368 
370 extern const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_1;
371 
373 extern const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_2;
374 
375 
377 extern const struct Can_ControllerStruct_PC
379 
381 extern const struct Can_MailboxStruct_PC
383 
384 
385 
386 /* Design :CAN_DesignId_004 */
390 typedef enum
391 {
405 
406 /* ========================================================================== */
407 /* Global Variables */
408 /* ========================================================================== */
410 extern CONST(uint32, CAN_CONST)
411  Can_MsgmemRAMBaseAddr[CAN_MAX_CONTROLLER];
412 
413 extern CONST(uint32, CAN_CONST)
414  Can_MCANSSBaseAddr[CAN_MAX_CONTROLLER];
415 
416 extern CONST(uint32, CAN_CONST)
417  Can_MCANCoreRegBaseAddr[CAN_MAX_CONTROLLER];
418 
419 extern CONST(uint32, CAN_CONST)
420  Can_MCANECCAggrRegBaseAddr[CAN_MAX_CONTROLLER];
421 
422 /* ========================================================================== */
423 /* Function Declarations */
424 /* ========================================================================== */
425 
427 FUNC(void, CAN_CODE) Can_0_Int0ISR(void);
428 
429 
430 
431 
432 
433 
435 FUNC(void, CAN_CODE) Can_1_Int0ISR(void);
436 
437 
438 
439 
440 
441 
443 FUNC(void, CAN_CODE) Can_2_Int0ISR(void);
444 
445 #ifdef __cplusplus
446 }
447 #endif
448 
449 #endif /*CAN_CFG_H__*/
450 
451 /* @} */
452 /**********************************************************************************************************************
453  * END OF FILE: Can_Cfg.h
454  *********************************************************************************************************************/
CONST
CONST(uint32, CAN_CONST) Can_MsgmemRAMBaseAddr[CAN_MAX_CONTROLLER]
Base Address of the can peripherals.
CanConfigSet_CanHardwareObject_List_PC
const struct Can_MailboxStruct_PC * CanConfigSet_CanHardwareObject_List_PC[CAN_NUM_MAILBOXES]
CAN Mailbox Pre Compile Configuration List.
Can_ControllerInstance
Can_ControllerInstance
Can Controller Instances enum.
Definition: Can_Cfg.h:391
CAN_CONTROLLER_INSTANCE_MCAN0
@ CAN_CONTROLLER_INSTANCE_MCAN0
Definition: Can_Cfg.h:401
CAN_NUM_CONTROLLER
#define CAN_NUM_CONTROLLER
Definition: Can_Cfg.h:176
CanConfigSet_CanController_List_PC
const struct Can_ControllerStruct_PC * CanConfigSet_CanController_List_PC[CAN_NUM_CONTROLLER]
CAN Controller Pre Compile Configuration List.
CanConfigSet_PC_CanController_0
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_0
CAN Controller Configuration Pre Compile struct declaration.
CanConfigSet_PC_CanController_2
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_2
CAN Controller Configuration Pre Compile struct declaration.
CAN_CONTROLLER_INSTANCE_MCU_MCAN1
@ CAN_CONTROLLER_INSTANCE_MCU_MCAN1
Definition: Can_Cfg.h:396
CAN_CONTROLLER_INSTANCE_MCU_MCAN0
@ CAN_CONTROLLER_INSTANCE_MCU_MCAN0
Definition: Can_Cfg.h:392
CAN_NUM_MAILBOXES
#define CAN_NUM_MAILBOXES
Definition: Can_Cfg.h:179
FUNC
FUNC(void, CAN_CODE) Can_GetVersionInfo(P2VAR(Std_VersionInfoType
Function returns the version information of this module.
CanConfigSet_PC_CanController_1
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_1
CAN Controller Configuration Pre Compile struct declaration.
CanConfigSet
const struct Can_ConfigType_s CanConfigSet
CAN Configuration struct declaration.
CAN_MAX_CONTROLLER
#define CAN_MAX_CONTROLLER
Definition: Can_Cfg.h:182