Diagnostics_Manager_DemIf_MDD

Module -- Diagnostics Manager DEM Interface

High-Level Description

Figures

Component Diagram

Variable Data Dictionary

Module InputsModule Outputs
IgnCnt_Cnt_u16
MtrTrq_MtrNm_f32
VehSpd_Kph_f32
HwTrq_HwNm_f32
SystemState_Mode

Module Internal Variables

Variable NameDatatypeResolution

Legal Range

(min)

Legal Range

(max)

Software Segment

{Data Type}

DEMEventActive_Cnt_M_lgc[D_NUMOFDEMEVENTS_CNT_U08+1]Refer to Diagnostics_Manager_Core_MDD.docx
ResetNTCFlag_Cnt_M_u08Diagnostics_Manager_GeneratedCfg_MDD.docx
LatchCounter_Cnt_u16uint161065535DIAGMGRDEMIF_START_SEC_VAR_16
NTCStrgArray_Cnt_strRefer to Diagnostics_Manager_Core_MDD.docx
NTCBlackBoxData_Cnt_strRefer to Diagnostics_Manager_Core_MDD.docx

User defined typedef definition/declaration

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

Typedef struct {} NTCLatch_StrNTCNTCNumber0511
DiagSettings_Str.ThresholdUint16065535
DiagSettings_Str.PStepUint16065535
DiagSettings_Str.NStepUint16065535

Constant Data Dictionary

Calibration Constants

Constant Name
t_SortedNTCs_Cnt_enum[]
k_FltRspTbl_Cnt_str[]
t_BlkBoxGrp_Ptr_u32[][]
t_LatchFaults_Cnt_str[]

Program(fixed) Constants

Embedded Constants

Local

Constant NameResolutionUnitsValue
D_EVTNOTPASSBITS_CNT_B8N/ACounts(D_TESTFAILEDBIT_CNT_B8 | D_TESTNOTCOMPLETETHISOPCYCLEBIT_CNT_B8)
D_AGINGCOUNTERTHRESH_CNT_U08N/ACounts0x40

Global

Constant Name
D_NUMOFDEMEVENTS_CNT_U08
D_TESTFAILEDBIT_CNT_B8
D_TESTNOTCOMPLETETHISOPCYCLEBIT_CNT_B8
D_NTCACTIVEBITS_CNT_B8
D_MAXLATCHACTIVENTCS_CNT_U08

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
T_DiagMgrNtcAppInfoMap_Cnt_Str[SIZE]Refer *AP_DIAGMGR_CONST
T_DiagMgrNtcInfoPtr_Cnt_Str[SIZE]Refer *AP_DIAGMGR_CONST

Note: “ Refer *” - Refer to Diagnostics_Manager_GeneratedCfg_MDD

Note Size and elements of Table constants varies across projects. Check project configuration files Under UTP/ Contract folder for data.


Functions/Macros used by the Sub-Modules

Library Functions / Macros

The library and functions / Macros that are called by the various sub modules are identified below,

  1. TableSize_m()

Data Hiding Functions

  1. <None>

Global Functions/Macros Defined by this Module

Diagnostic Manager Init 1

Function NameDiagMgr_Init1TypeMinMax
Arguments Passednone
Return Valuenone

Description

Diagnostic Manager Transition 1

Function NameDiagMgr_Trns1TypeMinMax
Arguments Passednone
Return Valuenone

Description

Rte_Call_DemIf_RestartDem()

Rte_Call_DemIf_SetOperationCycleState(NxtrDefaultOpCycle, NXTR_CYCLE_STATE_START)

Diagnostic Manager StaCtrl Shutdown

Function NameDiagMgr_StaCtrl_ShutdownTypeMinMax
Arguments Passednone
Return Valuenone

Description

Rte_Call_DemIf_SetOperationCycleState(NxtrDefaultOpCycle, NXTR_CYCLE_STATE_END)

Rte_Call_DemIf_DemShutdown()

CreateStorageArray(1U)

NvM_SetRamBlockStatus(NVM_BLOCK_DIAGMGR_NTCSTRG, TRUE)

NvM_SetRamBlockStatus(NVM_BLOCK_DIAGMGR_BLACKBOX, TRUE)

Diagnostic Manager Periodic 2

Function NameDiagMgr_Per2TypeMinMax
Arguments Passednone
Return Valuenone

Description

Diagnostic Manager Get NTC Information

Function NameDiagMgr_SCom_GetNTCInfoTypeMinMax
Arguments PassedNTC_Cnt_T_enumNTCNumber0511
Param_Ptr_T_u08const uint8 pointer0FULL
Status_Ptr_T_u08const uint8 pointer0FULL
AgingCounter_Ptr_T_u08const uint8 pointer0FULL
Return Valuenone

Description

Diagnostic Manager Reset NTC Status

Function NameDiagMgr_SCom_ResetNTCStatusTypeMinMax
Arguments PassedNone
Return Valuenone

Description

ResetNTCFlag_Cnt_M_u08 = ~ResetNTCFlag_Cnt_M_u08

Diagnostic Manager Read Storage Array

Function NameDiagMgr_SCom_ReadStrgArrayTypeMinMax
Arguments PassedNone
Return Valuenone

Description

CreateStorageArray(0U)

Diagnostic Manager Clear Black Box

Function NameDiagMgr_SCom_ClearBlackBoxTypeMinMax
Arguments PassedNone
Return Valuenone

Description

Diagnostic Manager Clear Latch Counters

Function NameDiagMgr_SCom_ClearLatchCountersTypeMinMax
Arguments PassedNone
Return Valuenone

Description

Update Black Box

Function NameUpdateBlkBoxTypeMinMax
Arguments PassedNTC_Cnt_T_u08Uint80FULL
Param_Cnt_T_u08Uint80FULL
BlkBoxGrpIdx_Cnt_T_u08Uint806
Return Valuenone

Description

Local Functions/Macros Used by this MDD only

Create Storage Array

Function NameCreateStorageArrayTypeMinMax
Arguments PassedAgingCounterIncrementuint801
Return ValueN/A

Description

Software Module Implementation

Runtime Environment (RTE) Initial Values

DataValue

Initialization Functions

None

Periodic Functions

None

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Execution Requirements

Execution Sequence of the Module

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)


Memory Map Definition Requirements

Sub Modules (Functions)

This table identifies the software segments for functions identified in this module.

Name of Sub ModuleSoftware Segment

Global and Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment
DiagMgr_Trns1RTE_AP_DIAGMGR_APPL_CODE
DiagMgr_Trns2RTE_AP_DIAGMGR_APPL_CODE
DiagMgr_Per2RTE_AP_DIAGMGR_APPL_CODE
DiagMgr_SCom_GetNTCInfoRTE_AP_DIAGMGR_APPL_CODE
DiagMgr_Scom_ResetNTCStatusRTE_AP_DIAGMGR_APPL_CODE
DiagMgr_Scom_ReadStrgArrayRTE_AP_DIAGMGR_APPL_CODE
DiagMgr_Scom_ClearBlackBoxRTE_AP_DIAGMGR_APPL_CODE
UpdateBlkBoxAP_DIAGMGR_CODE
CreateStorageArrayAP_DIAGMGR_CODE


Known Issues / Limitations With Design

  1. The latch active counters will not be stepped/checked on a quick ignition cycle as the Init1 function will not be called.

Revision Control Log

Rev #Change DescriptionDateAuthor Initials
1Initial MDD version26-Mar-13VK
2MDD Catch up to match to SRC Ver 524- June- 13NRAR
3Added init function to support latch active diagnostic addition04-OCT-13Jared
Last modified October 12, 2025: Initial commit (0347a62)