-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCanIf.h
2640 lines (2451 loc) · 136 KB
/
CanIf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* CanIf.h
*
* Created on: 31 Jan 2020
* Author: Yahia
*/
#ifndef CANIF_H_
#define CANIF_H_
/* Module Version 1.0.0 */
#define CANIF_SW_MAJOR_VERSION (1U)
#define CANIF_SW_MINOR_VERSION (0U)
#define CANIF_SW_PATCH_VERSION (0U)
/* AUTOSAR Version 4.3.1 */
#define CANIF_AR_RELEASE_MAJOR_VERSION (4U)
#define CANIF_AR_RELEASE_MINOR_VERSION (3U)
#define CANIF_AR_RELEASE_PATCH_VERSION (1U)
#include "CanIf_Types.h"
/* AUTOSAR checking between CanIf and CanIf_Types Modules */
#if ((CANIF_AR_RELEASE_MAJOR_VERSION != CANIF_TYPES_AR_RELEASE_MAJOR_VERSION)\
|| (CANIF_AR_RELEASE_MINOR_VERSION != CANIF_TYPES_AR_RELEASE_MINOR_VERSION)\
|| (CANIF_AR_RELEASE_PATCH_VERSION != CANIF_TYPES_AR_RELEASE_PATCH_VERSION))
#error "The AR version of Std_Types.h does not match the expected version"
#endif
#include "BitHelper.h"
#include "SchM_Can.h"
#include "CanTrcv.h"
#include "CanTrcv.h"
#include "Can.h"
#include "CanIf_PBcfg.h"
#include "CanIf_Cfg.h"
#include "EcuM.h"
/* [SRS_Can_01172]
* CanIf shall include the header file Mirror.h if Bus Mirroring is enabled
*/
#if(STD_ON == CANIF_BusMirroringSupport)
#include "Mirror.h"
#endif
/*****************************************************************************************/
/* Macro Definition */
/*****************************************************************************************/
/* Id for the company in the AUTOSAR
**/
#define CANIF_VENDOR_ID (0x100)
/* CANIF Module Id */
#define CANIF_MODULE_ID (0x03C)
/* CANIF Instance Id */
#define CANIF_INSTANCE_ID (0U)
/* PDU Type */
typedef uint8 Can_TypeType;
#define PDU_STATIC ((Can_TypeType)0x00)
#define PDU_DYNAMIC ((Can_TypeType)0x01)
/* CanIf Users Enum */
typedef uint8 CanIf_UserType;
#define CANIF_USER_CAN_NM ((CanIf_UserType)0x00)
#define CANIF_USER_CAN_TP ((CanIf_UserType)0x01)
#define CANIF_USER_CAN_TSyn ((CanIf_UserType)0x02)
#define CANIF_USER_CDD ((CanIf_UserType)0x03)
#define CANIF_USER_J1939NM ((CanIf_UserType)0x04)
#define CANIF_USER_J1939TP ((CanIf_UserType)0x05)
#define CANIF_USER_PDUR ((CanIf_UserType)0x06)
#define CANIF_USER_XCP ((CanIf_UserType)0x07)
/* software filtering methods */
typedef uint8 CanIf_SwFilterType;
#define CANIF_SW_FILTER_BINARY ((CanIf_SwFilterType)0x00)
#define CANIF_SW_FILTER_INDEX ((CanIf_SwFilterType)0x01)
#define CANIF_SW_FILTER_LINEAR ((CanIf_SwFilterType)0x02)
#define CANIF_SW_FILTER_TABLE ((CanIf_SwFilterType)0x03)
/* CanIf_ModuleStateType ENUM */
/* Type Description : variable define can Module state */
/* Type range : 0->1 */
/* Requirment : SWS */
typedef enum{
/* CanIf_ModuleStateType
* CANIF_UNINIT : After power-up/reset, the Can module shall be in the state CAN_UNINIT.
* CANIF_READY : The function Can_Init shall change the module state to CANIF_READY
*/
CANIF_UNINIT,
CANIF_READY
}CanIf_ModuleStateType;
/* CanIf_DetErrorType ENUM */
typedef enum{
CANIF_E_PARAM_CANID = 10,
CANIF_E_PARAM_HOH = 12,
CANIF_E_PARAM_LPDU,
CANIF_E_PARAM_CONTROLLERID = 15,
CANIF_E_PARAM_WAKEUPSOURCE,
CANIF_E_PARAM_TRCV,
CANIF_E_PARAM_TRCVMODE,
CANIF_E_PARAM_TRCVWAKEUPMODE,
CANIF_E_PARAM_POINTER,
CANIF_E_PARAM_CTRLMODE,
CANIF_E_PARAM_PDU_MODE,
CANIF_E_UNINIT = 30,
CANIF_E_INVALID_TXPDUID = 50,
CANIF_E_INVALID_RXPDUID = 60,
CANIF_E_INVALID_DATA_LENGTH,
CANIF_E_DATA_LENGTH_MISMATCH,
CANIF_E_STOPPED = 70,
CANIF_E_INIT_FAILED = 80,
CANIF_E_TXPDU_LENGTH_EXCEEDED = 90
}CanIf_DetErrorType;
/* CanIf_ServiceId ENUM */
typedef uint8 CanIf_ServiceId;
#define CanIf_Init_API ((CanIf_ServiceId)0x01)
#define CanIf_DeInit_API ((CanIf_ServiceId)0x02)
#define CanIf_SetControllerMode_API ((CanIf_ServiceId)0x03)
#define CanIf_GetControllerMode_API ((CanIf_ServiceId)0x4B)
#define CanIf_Transmit_API ((CanIf_ServiceId)0x49)
#define CanIf_ReadRxPduData_API ((CanIf_ServiceId)0x06)
#define CanIf_ReadTxNotifStatus_API ((CanIf_ServiceId)0x07)
#define CanIf_ReadRxNotifStatus_API ((CanIf_ServiceId)0x08)
#define CanIf_SetPduMode_API ((CanIf_ServiceId)0x09)
#define CanIf_GetPduMode_API ((CanIf_ServiceId)0x0A)
#define CanIf_GetVersionInfo_API ((CanIf_ServiceId)0x0B)
#define CanIf_SetDynamicTxId_API ((CanIf_ServiceId)0x0C)
#define CanIf_SetTrcvMode_API ((CanIf_ServiceId)0x0D)
#define CanIf_GetTrcvMode_API ((CanIf_ServiceId)0x0E)
#define CanIf_GetTrcvWakeupReason_API ((CanIf_ServiceId)0x0F)
#define CanIf_SetTrcvWakeupMode_API ((CanIf_ServiceId)0x10)
#define CanIf_CheckValidation_API ((CanIf_ServiceId)0x12)
#define CanIf_GetTxConfirmationState_API ((CanIf_ServiceId)0x19)
#define CanIf_ClearTrcvWufFlag_API ((CanIf_ServiceId)0x1E)
#define CanIf_CheckTrcvWakeFlag_API ((CanIf_ServiceId)0x1F)
#define CanIf_SetBaudrate_API ((CanIf_ServiceId)0x27)
#define CanIf_SetIcomConfiguration_API ((CanIf_ServiceId)0x25)
#define CanIf_GetControllerRxErrorCounter_API ((CanIf_ServiceId)0x4D)
#define CanIf_GetControllerTxErrorCounter_API ((CanIf_ServiceId)0x4E)
#define CanIf_EnableBusMirroring_API ((CanIf_ServiceId)0x4C)
/* CanIf_ServiceId ENUM for Callback Functions */
#define CanIf_TriggerTransmit_API ((CanIf_ServiceId)0x41)
#define CanIf_TxConfirmation_API ((CanIf_ServiceId)0x13)
#define CanIf_RxIndication_API ((CanIf_ServiceId)0x14)
#define CanIf_ControllerBusOff_API ((CanIf_ServiceId)0x16)
#define CanIf_ConfirmPnAvailability_API ((CanIf_ServiceId)0x1A)
#define CanIf_ClearTrcvWufFlagIndication_API ((CanIf_ServiceId)0x20)
#define CanIf_CheckTrcvWakeFlagIndication_API ((CanIf_ServiceId)0x21)
#define CanIf_ControllerModeIndication_API ((CanIf_ServiceId)0x17)
#define CanIf_TrcvModeIndication_API ((CanIf_ServiceId)0x22)
#define CanIf_CurrentIcomConfiguration_API ((CanIf_ServiceId)0x26)
/*****************************************************************************************/
/* Containers and configuration parameters */
/*****************************************************************************************/
//****************************************************************************************
// CanIfCtrlCfg
// [ECUC_CanIf_00546]
// This container contains the configuration (parameters) of an adressed CAN controller
// by an underlying CAN Driver module. This container is configurable per CAN controller.
//****************************************************************************************
typedef struct{
//************************************************************************************
// CanIfCtrlId [ECUC_CanIf_00647]
//
// This parameter abstracts from the CAN Driver specific parameter Controller. Each
// controller of all connected CAN Driver modules shall be assigned to one specific
// ControllerId of the CanIf. Range: 0..number of configured controllers of all CAN
// Driver modules
//************************************************************************************
uint8 CanIfCtrlId;
//************************************************************************************
// CanIfCtrlWakeupSupport [ECUC_CanIf_00637]
//
// This parameter defines if a respective controller of the referenced CAN Driver
// modules is queriable for wake up events.
//************************************************************************************
boolean CanIfCtrlWakeupSupport;
//************************************************************************************
// CanIfCtrlCanCtrlRef [ECUC_CanIf_00636]
//
// This parameter references to the logical handle of the underlying CAN controller
// from the CAN Driver module to be served by the CAN Interface module. The following
// parameters of CanController config container shall be referenced by this link:
// CanControllerId, CanWakeupSourceRef
// Range: 0..max. number of underlying supported CAN controllers
//************************************************************************************
CanController* CanIfCtrlCanCtrlRef;
}CanIfCtrlCfg;
/*****************************************************************************************/
/* Configurating multiple CANID ranges for a given same HRH. */
/*****************************************************************************************/
//****************************************************************************************
// CanIfHrhRangeCfg
// [ECUC_CanIf_00628]
// Defines the parameters required for configurating multiple CANID ranges for a given
// same HRH.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfHrhRangeBaseId [ECUC_CanIf_00825]
//
// CAN Identifier used as base value in combination with CanIfHrhRangeMask for a masked
// ID range in which all CAN Ids shall pass the software filtering. The size of this
// parameter is limited by CanIfHrhRangeRxPduRangeCanIdType.
uint32 CanIfHrhRangeBaseId;
//************************************************************************************
// CanIfHrhRangeMask [ECUC_CanIf_00826]
//
// Used as mask value in combination with CanIfHrhRangeBaseId for a masked ID range in
// which all CAN Ids shall pass the software filtering. The size of this parameter is
// limited by CanIfHrhRangeRxPduRangeCanIdType.
uint32 CanIfHrhRangeMask;
//************************************************************************************
// CanIfHrhRangeRxPduLowerCanId [ECUC_CanIf_00629]
//
// Lower CAN Identifier of a receive CAN L-PDU for identifier range definition, in
// which all CAN Ids shall pass the software filtering.
uint32 CanIfHrhRangeRxPduLowerCanId;
//************************************************************************************
// CanIfHrhRangeRxPduRangeCanIdType [ECUC_CanIf_00644]
//
// Specifies whether a configured Range of CAN Ids shall only consider standard CAN Ids
// or extended CAN Ids.
CanIdTypeType CanIfHrhRangeRxPduRangeCanIdType;
//************************************************************************************
// CanIfHrhRangeRxPduUpperCanId [ECUC_CanIf_00630]
//
// Upper CAN Identifier of a receive CAN L-PDU for identifier range definition, in
// which all CAN Ids shall pass the software filtering.
uint32 CanIfHrhRangeRxPduUpperCanId;
}CanIfHrhRangeCfg;
/*****************************************************************************************/
/* HRH configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfHrhCfg
// [ECUC_CanIf_00259]
// This container contains configuration parameters for each hardware receive object (HRH).
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfHrhSoftwareFilter [ECUC_CanIf_00630]
//
// Upper CAN Identifier of a receive CAN L-PDU for identifier range definition, in
// which all CAN Ids shall pass the software filtering.
boolean CanIfHrhSoftwareFilter;
//************************************************************************************
// CanIfHrhCanCtrlIdRef [ECUC_CanIf_00632]
//
// Selects the hardware receive objects by using the HRH range/list from CAN Driver
// configuration to define, for which HRH a software filtering has to be performed at
// during receive processing.
CanIfCtrlCfg* CanIfHrhCanCtrlIdRef;
//************************************************************************************
// CanIfHrhIdSymRef [ECUC_CanIf_00631]
//
// Reference to controller Id to which the HRH belongs to. A controller can contain
// one or more HRHs.
CanHardwareObject* CanIfHrhIdSymRef;
//************************************************************************************
// CanIfHrhRangeConfig [ECUC_CanIf_00634]
//
// The parameter refers to a particular HRH object in the CanDrv configuration .
// CanIf receives the following information of the CanDrv module by this reference:
// CanHandleType (see ECUC_Can_00323)
// CanObjectId (see ECUC_Can_00326)
CanIfHrhRangeCfg* CanIfHrhRangeConfig;
}CanIfHrhCfg;
/*****************************************************************************************/
/* HTH configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfHrhCfg
// [ECUC_CanIf_00258]
// This container contains parameters related to each HTH.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfHthCanCtrlIdRef [ECUC_CanIf_00625]
//
// Reference to controller Id to which the HTH belongs to. A controller can contain
// one or more HTHs.
CanIfCtrlCfg* CanIfHthCanCtrlIdRef;
//************************************************************************************
// CanIfHthIdSymRef [ECUC_CanIf_00627]
//
// The parameter refers to a particular HTH object in the CanDrv configuration.
// CanIf receives the following information of the CanDrv module by this reference:
// CanHandleType (see ECUC_Can_00323)
// CanObjectId (see ECUC_Can_00326)
CanHardwareObject* CanIfHthIdSymRef;
}CanIfHthCfg;
/*****************************************************************************************/
/* HOH configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfInitHohCfg
// [ECUC_CanIf_00257]
// This container contains the references to the configuration setup of each underlying
// CAN Driver.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfHrhCfgRef
//
// This container contains configuration parameters for each hardware receive object
// (HRH).
CanIfHrhCfg* CanIfHrhCfgRef;
//************************************************************************************
// CanIfHthCfgRef
//
// This container contains configuration parameters for each hardware transmit object
// (HTH).
CanIfHthCfg* CanIfHthCfgRef;
}CanIfInitHohCfg;
/*****************************************************************************************/
/* Buffer configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfBufferCfg
// [ECUC_CanIf_00832]
// This container contains the Txbuffer configuration. Multiple buffers with different sizes
// could be configured. If CanIfBufferSize (ECUC_CanIf_00834) equals 0, the CanIf Tx L-PDU
// only refers via this CanIfBufferCfg the corresponding CanIfHthCfg.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfBufferSize [ECUC_CanIf_00834]
//
// This parameter defines the number of CanIf Tx L-PDUs which can be buffered in one
// Txbuffer. If this value equals 0, the CanIf does not perform Txbuffering for the
// CanIf Tx L-PDUs which are assigned to this Txbuffer. If CanIfPublicTxBuffering equals
// False, this parameter equals 0 for all TxBuffer. If the CanHandleType of the referred
// HTH equals FULL, this parameter equals 0 for this TxBuffer.
uint8 CanIfBufferSize;
//************************************************************************************
// CanIfBufferHthRef [ECUC_CanIf_00833]
//
// Reference to HTH, that defines the hardware object or the pool of hardware objects
// configured for transmission. All the CanIf Tx L-PDUs refer via the CanIfBufferCfg and
// this parameter to the HTHs if TxBuffering is enabled, or not.
// Each HTH shall not be assigned to more than one buffer.
CanIfHthCfg* CanIfBufferHthRef;
}CanIfBufferCfg;
/*****************************************************************************************/
/* Tx PDU configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfTxPduCfg
// [ECUC_CanIf_00248]
// This container contains the configuration (parameters) of a transmit CAN L-PDU. It has to
// be configured as often as a transmit CAN L-PDU is needed.
// The SHORT-NAME of "CanIfTxPduConfig" container represents the symolic name of Transmit
// L-PDU. This L-SDU consumes a meta data item of type CAN_ID_32.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfTxPduCanId [ECUC_CanIf_00592]
//
// CAN Identifier of transmit CAN L-PDUs used by the CAN Driver for CAN L-PDU transmission.
// Range: 11 Bit For Standard CAN Identifier ... 29 Bit For Extended CAN identifier
// The CAN Identifier may be omitted for dynamic transmit L-PDUs.
uint32 CanIfTxPduCanId;
//************************************************************************************
// CanIfTxPduCanIdMask [ECUC_CanIf_00823]
//
// Identifier mask which denotes relevant bits in the CAN Identifier. This parameter may
// be used to keep parts of the CAN Identifier of dynamic transmit L-PDUs static.
// Range: 11 bits for Standard CAN Identifier, 29 bits for Extended CAN Identifier.
uint32 CanIfTxPduCanIdMask;
//************************************************************************************
// CanIfTxPduCanIdType [ECUC_CanIf_00590]
//
// Type of CAN Identifier of the transmit CAN L-PDU used by the CAN Driver module for
// CAN L-PDU transmission.
Can_IdType CanIfTxPduCanIdType;
//************************************************************************************
// CanIfTxPduId [ECUC_CanIf_00591]
//
// ECU wide unique, symbolic handle for transmit CAN L-SDU.
// Range: 0..max. number of CantTxPduIds
uint32 CanIfTxPduId;
//************************************************************************************
// CanIfTxPduPnFilterPdu [ECUC_CanIf_00773]
//
// If CanIfPublicPnFilterSupport is enabled, by this parameter PDUs could be configured
// which will pass the CanIfPnFilter. If there is no CanIfTxPduPnFilterPdu configured
// per controller, the corresponding controller applies no CanIfPnFilter.
boolean CanIfTxPduPnFilterPdu;
//************************************************************************************
// CanIfTxPduReadNotifyStatus [ECUC_CanIf_00589]
//
// Enables and disables transmit confirmation for each transmit CAN L-SDU for reading
// its notification status.
boolean CanIfTxPduReadNotifyStatus;
//************************************************************************************
// CanIfTxPduTriggerTransmit [ECUC_CanIf_00840]
//
// Determines if or if not CanIf shall use the trigger transmit API for this PDU.
boolean CanIfTxPduTriggerTransmit;
//************************************************************************************
// CanIfTxPduTruncation [ECUC_CanIf_00845]
//
// Enables/disables truncation of PDUs that exceed the configured size.
boolean CanIfTxPduTruncation;
//************************************************************************************
// CanIfTxPduType [ECUC_CanIf_00593]
//
// Defines the type of each transmit CAN L-PDU.
Can_TypeType CanIfTxPduType;
//************************************************************************************
// CanIfTxPduUserTriggerTransmitName [ECUC_CanIf_00842]
//
// This parameter defines the name of the <User_TriggerTransmit>. This parameter depends
// on the parameter CanIfTxPduUserTxConfirmationUL. If CanIfTxPduUserTxConfirmationUL
// equals CAN_TP, CAN_NM, PDUR, XCP, CAN_TSYN, J1939NM or J1939TP, the name of the
// <User_TriggerTransmit> is fixed. If CanIfTxPduUserTxConfirmationUL equals CDD, the
// name of the <User_TxConfirmation> is selectable.
// Please be aware that this parameter depends on the same parameter as
// CanIfTxPduUserTxConfirmationName. It shall be clear which upper layer is responsible
// for that PDU.
Std_ReturnType(*CanIfTxPduUserTriggerTransmitName)(PduIdType, PduInfoType*);
//************************************************************************************
// CanIfTxPduUserTxConfirmationName [ECUC_CanIf_00528]
//
// This parameter defines the name of the <User_TxConfirmation>. This parameter depends
// on the parameter CanIfTxPduUserTxConfirmationUL. If CanIfTxPduUserTxConfirmationUL
// equals CAN_TP, CAN_NM, PDUR, XCP, CAN_TSYN, J1939NM or J1939TP, the name of the
// <User_TxConfirmation> is fixed. If CanIfTxPduUserTxConfirmationUL equals CDD, the
// name of the <User_TxConfirmation> is selectable.
void(*CanIfTxPduUserTxConfirmationName)(PduIdType, Std_ReturnType);
//************************************************************************************
// CanIfTxPduUserTxConfirmationUL [ECUC_CanIf_00527]
//
// This parameter defines the upper layer (UL) module to which the confirmation of the
// successfully transmitted CanTxPduId has to be routed via the <User_TxConfirmation>.
// This <User_TxConfirmation> has to be invoked when the confirmation of the configured
// CanTxPduId will be received by a Tx confirmation event from the CAN Driver module.
// If no upper layer (UL) module is configured, no <User_TxConfirmation> has to be called
// in case of a Tx confirmation event of the CanTxPduId from the CAN Driver module.
CanIf_UserType CanIfTxPduUserTxConfirmationUL;
//************************************************************************************
// CanIfTxPduBufferRef [ECUC_CanIf_00831]
//
// Configurable reference to a CanIf buffer configuration.
CanIfBufferCfg* CanIfTxPduBufferRef;
//************************************************************************************
// CanIfTxPduRef [ECUC_CanIf_00603]
//
// Reference to the "global" Pdu structure to allow harmonization of handle IDs in the
// COM-Stack.
Can_PduType* CanIfTxPduRef;
}CanIfTxPduCfg;
/*****************************************************************************************/
/* Rx PDU configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfTxPduCfg
// [ECUC_CanIf_00249]
// This container contains the configuration (parameters) of each receive CAN L-PDU.
// The SHORT-NAME of "CanIfRxPduConfig" container represents the symolic name of receive
// L-PDU. This L-SDU consumes a meta data item of type CAN_ID_32.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfRxPduCanId [ECUC_CanIf_00598]
//
// CAN Identifier of Receive CAN L-PDUs used by the CAN Interface. Exa: Software Filtering.
// This parameter is used if exactly one Can Identifier is assigned to the Pdu. If a range
// is assigned then the CanIfRxPduCanIdRange parameter shall be used.
// Range: 11 Bit For Standard CAN Identifier ... 29 Bit For Extended CAN identifier
uint32 CanIfRxPduCanId;
//************************************************************************************
// CanIfRxPduCanIdMask [ECUC_CanIf_00522]
//
// Identifier mask which denotes relevant bits in the CAN Identifier. This parameter defines
// a CAN Identifier range in an alternative way to CanIfRxPduCanIdRange. It identifies the
// bits of the configured CAN Identifier that must match the received CAN Identifier.
// Range: 11 bits for Standard CAN Identifier, 29 bits for Extended CAN Identifier.
uint32 CanIfRxPduCanIdMask;
//************************************************************************************
// CanIfRxPduCanIdType [ECUC_CanIf_00596]
//
// CAN Identifier of receive CAN L-PDUs used by the CAN Driver for CAN L-PDU reception.
Can_IdType CanIfRxPduCanIdType;
//************************************************************************************
// CanIfRxPduDataLength [ECUC_CanIf_00599]
//
// Data length of the received CAN L-PDUs used by the CAN Interface. This information is
// used for Data Length Check. Additionally it might specify the valid bits in case of the
// discrete DLC for CAN FD L-PDUs > 8 bytes.
// The data area size of a CAN L-PDU can have a range from 0 to 64 bytes.
uint8 CanIfRxPduDataLength;
//************************************************************************************
// CanIfRxPduDataLengthCheck [ECUC_CanIf_00846]
//
// This parameter switches the message specific data length check. True: Data length check
// will be executed during the reception of this PDU. False: No data length check will be
// executed during the reception of this PDU.
boolean CanIfRxPduDataLengthCheck;
//************************************************************************************
// CanIfRxPduId [ECUC_CanIf_00597]
//
// ECU wide unique, symbolic handle for receive CAN L-SDU. It shall fulfill ANSI/AUTOSAR
// definitions for constant defines.
// Range: 0..max. number of defined CanRxPduIds
uint32 CanIfRxPduId;
//************************************************************************************
// CanIfRxPduReadData [ECUC_CanIf_00600]
//
// Enables and disables the Rx buffering for reading of received L-SDU data.
boolean CanIfRxPduReadData;
//************************************************************************************
// CanIfRxPduReadNotifyStatus [ECUC_CanIf_00595]
//
// Enables and disables receive indication for each receive CAN L-SDU for reading its
// notification status.
boolean CanIfRxPduReadNotifyStatus;
//************************************************************************************
// CanIfRxPduUserRxIndicationName [ECUC_CanIf_00530]
//
// This parameter defines the name of the <User_RxIndication>. This parameter depends on
// the parameter CanIfRxPduUserRxIndicationUL. If CanIfRxPduUserRxIndicationUL equals
// CAN_TP, CAN_NM, PDUR, XCP, CAN_TSYN, J1939NM or J1939TP, the name of the
// <User_RxIndication> is fixed. If CanIfRxPduUserRxIndicationUL equals CDD, the name of
// the <User_RxIndication> is selectable.
void (*CanIfRxPduUserRxIndicationName )(PduIdType, const PduInfoType*);
//************************************************************************************
// CanIfRxPduUserRxIndicationUL [ECUC_CanIf_00829]
//
// This parameter defines the upper layer (UL) module to which the indication of the
// successfully received CANRXPDUID has to be routed via <User_RxIndication>. This
// <User_RxIndication> has to be invoked when the indication of the configured CANRXPDUID
// will be received by an Rx indication event from the CAN Driver module. If no upper
// layer (UL) module is configured, no <User_RxIndication> has to be called in case of an
// Rx indication event of the CANRXPDUID from the CAN Driver module.
CanIf_UserType CanIfRxPduUserRxIndicationUL;
//************************************************************************************
// CanIfRxPduHrhIdRef [ECUC_CanIf_00602]
//
// The HRH to which Rx L-PDU belongs to, is referred through this parameter.
CanIfHrhCfg* CanIfRxPduHrhIdRef;
//************************************************************************************
// CanIfRxPduRef [ECUC_CanIf_00601]
//
// Reference to the "global" Pdu structure to allow harmonization of handle IDs in the
// COM-Stack.
Can_PduType* CanIfRxPduRef;
}CanIfRxPduCfg;
/*****************************************************************************************/
/* CanIf Public Configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfPublicCfg
// [ECUC_CanIf_00246]
// This container contains the public configuration (parameters) of the CAN Interface.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfBusMirroringSupport [ECUC_CanIf_00847]
//
// Enable support for Bus Mirroring.
boolean CanIfBusMirroringSupport;
//************************************************************************************
// CanIfDevErrorDetect [ECUC_CanIf_00614]
//
// Switches the development error detection and notification on or off.
boolean CanIfDevErrorDetect;
//************************************************************************************
// CanIfMetaDataSupport [ECUC_CanIf_00824]
//
// Enable support for dynamic ID handling using L-SDU MetaData.
boolean CanIfMetaDataSupport;
//************************************************************************************
// CanIfPublicCddHeaderFile [ECUC_CanIf_00671]
//
// Defines header files for callback functions which shall be included in case of CDDs.
// Range of characters is 1.. 32.
uint8* CanIfPublicCddHeaderFile;
//************************************************************************************
// CanIfPublicHandleTypeEnum [ECUC_CanIf_00742]
//
// This parameter is used to configure the Can_HwHandleType. The Can_HwHandleType
// represents the hardware object handles of a CAN hardware unit. For CAN hardware units
// with more than 255 HW objects the extended range shall be used (UINT16).
uint8 CanIfPublicHandleTypeEnum;
//************************************************************************************
// CanIfPublicIcomSupport [ECUC_CanIf_00839]
//
// Selects support of Pretended Network features in CanIf.
boolean CanIfPublicIcomSupport;
//************************************************************************************
// CanIfPublicMultipleDrvSupport [ECUC_CanIf_00612]
//
// Selects support for multiple CAN Drivers.
boolean CanIfPublicMultipleDrvSupport;
//************************************************************************************
// CanIfPublicPnSupport [ECUC_CanIf_00772]
//
// Selects support of Partial Network features in CanIf.
boolean CanIfPublicPnSupport;
//************************************************************************************
// CanIfPublicReadRxPduDataApi [ECUC_CanIf_00607]
//
// Enables / Disables the API CanIf_ReadRxPduData() for reading received L-SDU data.
boolean CanIfPublicReadRxPduDataApi;
//************************************************************************************
// CanIfPublicReadRxPduNotifyStatusApi [ECUC_CanIf_00608]
//
// Enables and disables the API for reading the notification status of receive L-PDUs.
boolean CanIfPublicReadRxPduNotifyStatusApi;
//************************************************************************************
// CanIfPublicReadTxPduNotifyStatusApi [ECUC_CanIf_00609]
//
// Enables and disables the API for reading the notification status of transmit L-PDUs.
boolean CanIfPublicReadTxPduNotifyStatusApi;
//************************************************************************************
// CanIfPublicSetDynamicTxIdApi [ECUC_CanIf_00610]
//
// Enables and disables the API for reconfiguration of the CAN Identifier for each
// Transmit L-PDU.
boolean CanIfPublicSetDynamicTxIdApi;
//************************************************************************************
// CanIfPublicTxBuffering [ECUC_CanIf_00618]
//
// Enables and disables the buffering of transmit L-PDUs (rejected by the CanDrv) within
// the CAN Interface module.
boolean CanIfPublicTxBuffering;
//************************************************************************************
// CanIfPublicTxConfirmPollingSupport [ECUC_CanIf_00733]
//
// Configuration parameter to enable/disable the API to poll for Tx Confirmation state.
boolean CanIfPublicTxConfirmPollingSupport;
//************************************************************************************
// CanIfPublicWakeupCheckValidByNM [ECUC_CanIf_00741]
//
// If enabled, only NM messages shall validate a detected wake-up event in CanIf. If
// disabled, all received messages corresponding to a configured Rx PDU shall validate
// such a wake-up event. This parameter depends on CanIfPublicWakeupCheckValidSupport and
// shall only be configurable, if it is enabled.
boolean CanIfPublicWakeupCheckValidByNM;
//************************************************************************************
// CanIfPublicWakeupCheckValidSupport [ECUC_CanIf_00611]
//
// Selects support for wake up validation
boolean CanIfPublicWakeupCheckValidSupport;
//************************************************************************************
// CanIfSetBaudrateApi [ECUC_CanIf_00838]
//
// Configuration parameter to enable/disable the CanIf_SetBaudrate API to change the baud
// rate of a CAN Controller. If this parameter is set to true the CanIf_SetBaudrate API
// shall be supported. Otherwise the API is not supported.
boolean CanIfSetBaudrateApi;
//************************************************************************************
// CanIfTriggerTransmitSupport [ECUC_CanIf_00844]
//
// Enables the CanIf_TriggerTransmit API at Pre-Compile-Time. Therefore, this parameter
// defines if there shall be support for trigger transmit transmissions.
boolean CanIfTriggerTransmitSupport;
//************************************************************************************
// CanIfTxOfflineActiveSupport [ECUC_CanIf_00837]
//
// Determines wether TxOffLineActive feature (see SWS_CANIF_00072) is supported by CanIf.
boolean CanIfTxOfflineActiveSupport;
//************************************************************************************
// CanIfVersionInfoApi [ECUC_CanIf_00613]
//
// Enables and disables the API for reading the version information about the CAN Interface.
boolean CanIfVersionInfoApi;
//************************************************************************************
// CanIfWakeupSupport [ECUC_CanIf_00843]
//
// Enables the CanIf_CheckWakeup API at Pre-Compile-Time. Therefore, this parameter defines
// if there shall be support for wake-up.
boolean CanIfWakeupSupport;
}CanIfPublicCfg;
/*****************************************************************************************/
/* CanIf Private Configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfPrivateCfg
// [ECUC_CanIf_00245]
// This container contains the private configuration (parameters) of the CAN Interface.
//****************************************************************************************
typedef struct
{
//************************************************************************************
// CanIfFixedBuffer [ECUC_CanIf_00827]
//
// This parameter defines if the buffer element length shall be fixed to 8 Bytes for
// buffers to which only PDUs < 8 Bytes are assigned.
// TRUE: Minimum buffer element length is fixed to 8 Bytes. FALSE: Buffer element length
// depends on the size of the referencing PDUs.
boolean CanIfFixedBuffer;
//************************************************************************************
// CanIfPrivateDataLengthCheck [ECUC_CanIf_00617]
//
// Selects whether Data Length Check is supported.
boolean CanIfPrivateDataLengthCheck;
//************************************************************************************
// CanIfPrivateSoftwareFilterType [ECUC_CanIf_00619]
//
// Selects the desired software filter mechanism for reception only. Each implemented
// software filtering method is identified by this enumeration number.
CanIf_SwFilterType CanIfPrivateSoftwareFilterType;
//************************************************************************************
// CanIfSupportTTCAN [ECUC_CanIf_00675]
//
// Defines whether TTCAN is supported.
boolean CanIfSupportTTCAN;
}CanIfPrivateCfg;
/*****************************************************************************************/
/* CanIf Init Container */
/*****************************************************************************************/
//****************************************************************************************
// CanIf_ConfigType
//
// This container contains the configuration parameters of the CAN
// interface module.
//****************************************************************************************
//****************************************************************************************
//
// [SWS_CANIF_00144]
// This type defines a data structure for the post build parameters
// of the CAN interface for all underlying CAN drivers.
// At initialization the CanIf gets a pointer to a structure of this
// type to get access to its configuration data, which is necessary
// for initialization.
//
typedef struct
{
//****************************************************************************************
// CanIfInitCfgSet [ECUC_CanIf_00623]
//
// Selects the CAN Interface specific configuration setup. This
// type of the external data structure shall contain the post
// build initialization data for the CAN Interface for all
// underlying CAN Dirvers.
// constant to CanIf_ConfigType
//
// Length: 1-32
//****************************************************************************************
uint8* CanIfInitCfgSet;
//****************************************************************************************
// CanIfMaxBufferSize [ECUC_CanIf_00828]
//
// Maximum total size of all Tx buffers.
//****************************************************************************************
uint64 CanIfMaxBufferSize;
//****************************************************************************************
// CanIfMaxRxPduCfg [ECUC_CanIf_00830]
//
// Maximum number of Pdus.
//****************************************************************************************
uint64 CanIfMaxRxPduCfg;
//****************************************************************************************
// CanIfMaxTxPduCfg [ECUC_CanIf_00829]
//
// Maximum number of Pdus.
//****************************************************************************************
uint64 CanIfMaxTxPduCfg;
//****************************************************************************************
// CanIfRxPduCfg [ECUC_CanIf_00249]
//
// This container contains the configuration (parameters) of each
// receive CAN L-PDU.
//****************************************************************************************
CanIfRxPduCfg* CanIfRxPduConfig;
//****************************************************************************************
// CanIfTxPduCfg [ECUC_CanIf_00248]
//
// This container contains the configuration (parameters) of each
// transmit receive CAN L-PDU.
//****************************************************************************************
CanIfTxPduCfg* CanIfTxPduConfig;
//****************************************************************************************
// CanIfBufferCfg [ECUC_CanIf_00832]
//
// This container contains the Tx buffer configuration. Multiple
// buffers with different sizes could be configured
//****************************************************************************************
CanIfBufferCfg* CanIfBufferConfig;
//****************************************************************************************
// CanIfInitHohCfg [ECUC_CanIf_00257]
//
// This container contains the references to the configuration
// setup of each underlying CAN Driver.
//****************************************************************************************
CanIfInitHohCfg* CanIfInitHohConfig;
}CanIfInitCfg;
//************************************************************************
/*****************************************************************************************/
/* Callback Configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfDispatchCfg
// [ECUC_CanIf_00250]
// Callback functions provided by upper layer modules of the CanIf. The callback functions
// defined in this container are common to all configured CAN Driver / CAN Transceiver
// Driver modules.
//****************************************************************************************
typedef struct{
//****************************************************************************************
// CanIfDispatchUserCheckTrcvWakeFlagIndicationName [ECUC_CanIf_00791]
//
// This parameter defines the name of <User_CheckTrcvWakeFlagIndication>. If
// CanIfDispatchUserCheckTrcvWakeFlagIndicationUL equals CAN_SM the name of
// <User_CheckTrcvWakeFlagIndication> is fixed. If it equals CDD, the name is selectable.
// If CanIfPublicPnSupport equals False, this parameter shall not be configurable.
//****************************************************************************************
void (*CanIfDispatchUserCheckTrcvWakeFlagIndicationName)(uint8);
//****************************************************************************************
// CanIfDispatchUserCheckTrcvWakeFlagIndicationUL [ECUC_CanIf_00792]
//
// This parameter defines the upper layer module to which the CheckTrcvWakeFlagIndication
// from the Driver modules have to be routed. If CanIfPublicPnSupport equals False, this
// parameter shall not be configurable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserCheckTrcvWakeFlagIndicationUL;
//****************************************************************************************
// CanIfDispatchUserClearTrcvWufFlagIndicationName [ECUC_CanIf_00789]
//
// This parameter defines the name of <User_ClearTrcvWufFlagIndication>. If
// CanIfDispatchUserClearTrcvWufFlagIndicationUL equals CAN_SM the name of
// <User_ClearTrcvWufFlagIndication> is fixed. If it equals CDD, the name is selectable.
// If CanIfPublicPnSupport equals False, this parameter shall not be configurable.
//****************************************************************************************
void (*CanIfDispatchUserClearTrcvWufFlagIndicationName)(uint8);
//****************************************************************************************
// CanIfDispatchUserClearTrcvWufFlagIndicationUL [ECUC_CanIf_00790]
//
// This parameter defines the upper layer module to which the ClearTrcvWufFlagIndication
// from the Driver modules have to be routed. If CanIfPublicPnSupport equals False, this
// parameter shall not be configurable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserClearTrcvWufFlagIndicationUL;
//****************************************************************************************
// CanIfDispatchUserConfirmPnAvailabilityName [ECUC_CanIf_00819]
//
// This parameter defines the name of <User_ConfirmPnAvailability>. If
// CanIfDispatchUserConfirmPnAvailabilityUL equals CAN_SM the name of
// <User_ConfirmPnAvailability> is fixed. If it equals CDD, the name is selectable. If
// CanIfPublicPnSupport equals False, this parameter shall not be configurable.
//****************************************************************************************
void (*CanIfDispatchUserConfirmPnAvailabilityName)(uint8);
//****************************************************************************************
// CanIfDispatchUserConfirmPnAvailabilityUL [ECUC_CanIf_00820]
//
// This parameter defines the upper layer module to which the ConfirmPnAvailability
// notification from the Driver modules have to be routed. If CanIfPublicPnSupport equals
// False, this parameter shall not be configurable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserConfirmPnAvailabilityUL;
//****************************************************************************************
// CanIfDispatchUserCtrlBusOffName [ECUC_CanIf_00257]
//
// This container contains the references to the configuration
// setup of each underlying CAN Driver.
//****************************************************************************************
void (*CanIfDispatchUserCtrlBusOffName)(uint8);
//****************************************************************************************
// CanIfDispatchUserCtrlBusOffUL [ECUC_CanIf_00525]
//
// This parameter defines the name of <User_ControllerBusOff>. This parameter depends on
// the parameter CanIfDispatchUserCtrlBusOffUL. If CanIfDispatchUserCtrlBusOffUL equals
// CAN_SM the name of <User_ControllerBusOff> is fixed. If CanIfDispatchUserCtrlBusOffUL
// equals CDD, the name of <User_ControllerBusOff> is selectable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserCtrlBusOffUL;
//****************************************************************************************
// CanIfDispatchUserCtrlModeIndicationName [ECUC_CanIf_00547]
//
// This parameter defines the upper layer (UL) module to which the notifications of all
// ControllerBusOff events from the CAN Driver modules have to be routed via
// <User_ControllerBusOff>. There is no possibility to configure no upper layer (UL) module
// as the provider of <User_ControllerBusOff>.
//****************************************************************************************
void (*CanIfDispatchUserCtrlModeIndicationName)(uint8, Can_ControllerStateType);
//****************************************************************************************
// CanIfDispatchUserCtrlModeIndicationUL [ECUC_CanIf_00683]
//
// This parameter defines the name of <User_ControllerModeIndication>. This parameter
// depends on the parameter CanIfDispatchUserCtrlModeIndicationUL. If
// CanIfDispatchUserCtrlModeIndicationUL equals CAN_SM the name of
// <User_ControllerModeIndication> is fixed. If CanIfDispatchUserCtrlModeIndicationUL equals
// CDD, the name of <User_ControllerModeIndication> is selectable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserCtrlModeIndicationUL;
//****************************************************************************************
// CanIfDispatchUserTrcvModeIndicationName [ECUC_CanIf_00684]
//
// This parameter defines the upper layer (UL) module to which the notifications of all
// ControllerTransition events from the CAN Driver modules have to be routed via
// <User_ControllerModeIndication>.
//****************************************************************************************
void (*CanIfDispatchUserTrcvModeIndicationName)(uint8, CanTrcv_TrcvModeType);
//****************************************************************************************
// CanIfDispatchUserTrcvModeIndicationUL [ECUC_CanIf_00685]
//
// This parameter defines the name of <User_TrcvModeIndication>. This parameter depends on
// the parameter CanIfDispatchUserTrcvModeIndicationUL. If CanIfDispatchUserTrcvModeIndicationUL
// equals CAN_SM the name of <User_TrcvModeIndication> is fixed. If
// CanIfDispatchUserTrcvModeIndicationUL equals CDD, the name of <User_TrcvModeIndication>
// is selectable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserTrcvModeIndicationUL;
//****************************************************************************************
// CanIfDispatchUserValidateWakeupEventName [ECUC_CanIf_00686]
//
// This parameter defines the upper layer (UL) module to which the notifications of all
// TransceiverTransition events from the CAN Transceiver Driver modules have to be routed
// via <User_TrcvModeIndication>. If no UL module is configured, no upper layer callback
// function will be called.
//****************************************************************************************
void (*CanIfDispatchUserValidateWakeupEventName )(EcuM_WakeupSourceType);
//****************************************************************************************
// CanIfDispatchUserValidateWakeupEventUL [ECUC_CanIf_00531]
//
// This parameter defines the name of <User_ValidateWakeupEvent>. This parameter depends on
// the parameter CanIfDispatchUserValidateWakeupEventUL. If CanIfDispatchUserValidateWakeupEventUL
// equals ECUM, the name of <User_ValidateWakeupEvent> is fixed. If
// CanIfDispatchUserValidateWakeupEventUL equals CDD, the name of <User_ValidateWakeupEvent>
// is selectable.
//****************************************************************************************
CanIf_UserType CanIfDispatchUserValidateWakeupEventUL;
}CanIfDispatchCfg;
/*****************************************************************************************/
/* Can Driver Configuration */
/*****************************************************************************************/
//****************************************************************************************
// CanIfCtrlDrvCfg
// [ECUC_CanIf_00253]
// Configuration parameters for all the underlying CAN Driver modules are aggregated under
// this container. For each CAN Driver module a seperate instance of this container has to
// be provided.
//****************************************************************************************
typedef struct{
//****************************************************************************************
// CanIfCtrlDrvInitHohConfigRef [ECUC_CanIf_00642]
//
// Reference to the Init Hoh Configuration
//****************************************************************************************
CanIfInitHohCfg* CanIfCtrlDrvInitHohConfigRef;
//****************************************************************************************
// CanIfCtrlDrvNameRef [ECUC_CanIf_00638]
//
// CAN Interface Driver Reference.
// This reference can be used to get any information (Ex. Driver Name, Vendor ID)
// from the CAN driver. The CAN Driver name can be derived from the ShortName of the CAN