PwrDiscnct_MDD

Module Design Document

For

PwrDiscnct

JulAug 204, 2017

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

Krishna Anne

Software Group,

Nexteer Automotive,

Saginaw, MI, USAChange History

DescriptionAuthorVersionDate
Initial VersionKrishna Anne1.020-Jul-2017
Range of NTC042ParmByte_Cnt_T_u08 is changed in local functionsKrishna Anne2.004-Aug-2017

Table of Contents

1 Introduction 5

1.1 Purpose 5

2 HwTq0Meas & High-Level Description 6

3 Design details of software module 7

3.1 Graphical representation of HwTq0Meas 7

3.2 Data Flow Diagram 7

3.2.1 Component level DFD 7

3.2.2 Function level DFD 7

4 Constant Data Dictionary 8

4.1 Program (fixed) Constants 8

4.1.1 Embedded Constants 8

5 Software Component Implementation 9

5.1 Sub-Module Functions 9

5.1.1 Init: HwTq0MeasInit1 9

5.1.1.1 Design Rationale 9

5.1.1.2 Module Outputs 9

5.1.2 Per: HwTq0MeasPer1 9

5.1.2.1 Design Rationale 9

5.1.2.2 Store Module Inputs to Local copies 9

5.1.2.3 (Processing of function)……… 9

5.1.2.4 Store Local copy of outputs into Module Outputs 9

5.1.3 Per: HwTq0MeasPer2 9

5.1.3.1 Design Rationale 9

5.1.3.2 Store Module Inputs to Local copies 10

5.1.3.3 (Processing of function)……… 10

5.1.3.4 Store Local copy of outputs into Module Outputs 10

5.2 Server Runables 10

5.2.1 HwTq0MeasHwTq0AutTrim_oper 10

5.2.1.1 Design Rationale 10

5.2.1.2 (Processing of function)……… 10

5.2.2 HwTq0MeasHwTq0ClrTrim_Oper 10

5.2.2.1 Design Rationale 10

5.2.2.2 (Processing of function)……… 10

5.2.3 HwTq0MeasHwTq0ReadTrim_Oper 10

5.2.3.1 Design Rationale 10

5.2.3.2 (Processing of function)……… 10

5.2.4 HwTq0MeasHwTq0TrimPrfmdSts_Oper 11

5.2.4.1 Design Rationale 11

5.2.4.2 (Processing of function)……… 11

5.2.5 HwTq0MeasHwTq0WrTrim_Oper 11

5.2.5.1 Design Rationale 11

5.2.5.2 (Processing of function)……… 11

5.2.6 HwTq0MeasTrigStrt_Oper 11

5.2.6.1 Design Rationale 11

5.2.6.2 (Processing of function)……… 11

5.3 Interrupt Functions 11

5.4 Module Internal (Local) Functions 11

5.4.1 Local Function #1 11

5.4.1.1 Design Rationale 11

5.4.2 Local Function #2 12

5.4.2.1 Design Rationale 12

5.5 GLOBAL Function/Macro Definitions 12

6 Known Limitations with Design 13

7 UNIT TEST CONSIDERATION 14

Appendix A Abbreviations and Acronyms 15

Appendix B Glossary 16

Appendix C References 18

Introduction

Purpose

Module design document for PwrDiscnct.

HwTq0Meas & High-Level Description

Design details of software module

Graphical representation of HwTq0Meas

Data Flow Diagram

Component level DFD

N/A

Function level DFD

N/A

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Constant NameResolutionUnitsValue
TESTNORES_CNT_U081Cnt0U
TESTPASSD_CNT_U081Cnt1U
TESTFAILD_CNT_U081Cnt2U

Note : These local constants are used in place of SIGQLFR_NORES (0U), SIGQLFR_PASSD (1U) and SIGQLFR_FAILD (2U) that are used by FDD because the datatype SigQlfr1 is not necessary for this purpose as well as it not possible to get them defined from RTE when no client call that uses this datatype as one of its arguments is defined by current design.

Software Component Implementation

Sub-Module Functions

Init: HwTq0MeasInit1

Design Rationale

Module Outputs

Refer to FDD

Per: HwTq0MeasPer1

Design Rationale

None

Store Module Inputs to Local copies

Refer to FDD

(Processing of function)………

Refer to FDD

Store Local copy of outputs into Module Outputs

Refer to FDD

Server Runables

Interrupt Functions

None

Module Internal (Local) Functions

Local Function #1

Function NameVerifyDiscOpenTypeMinMax
Arguments PassedBattVltg_Volt_T_f32float320.0F40.0F
BattVltgSwd1_Volt_T_f32float320.0F40.0F
*NTC042ParmByte_Cnt_T_u08uint080U55U
PwrDiscnctSwtDiag_Volt_T_f32float320.0F40.0F
ChrgPmpDiag_Volt_T_f32float320.0F40.0F
MotVelMrf_MotRadPerSec_T_f32float32-1350.0F1350.0F
*ErrAccOutp_Cnt_T_u16uint160U65535U
Return ValueN/AN/AN/AN/A

Design Rationale

Path in FDD : ES003C_PwrDiscnct/PwrDiscnct/PwrDiscnctPer1/WarmInit/Operate/OPEN&CLOSE/VERIFYDISCOPEN.

Local Function #2

Function NameVerifyCloseTypeMinMax
Arguments PassedBattVltg_Volt_T_f32float320.0F40.0F
BattVltgSwd1_Volt_T_f32float320.0F40.0F
*NTC042ParmByte_Cnt_T_u08uint080U55U
PwrDiscnctSwtDiag_Volt_T_f32float320.0F40.0F
*ErrAccOutp_Cnt_T_u16uint160U65535U
Return ValueN/AN/AN/AN/A

Design Rationale

Path in FDD : ES003C_PwrDiscnct/PwrDiscnct/PwrDiscnctPer1/WarmInit/Operate/OPEN&CLOSE/VERIFYCLOSE.

Local Function #3

Function NameInitialDiagTypeMinMax
Arguments PassedBattVltg_Volt_T_f32float320.0F40.0F
BattVltgSwd1_Volt_T_f32float320.0F40.0F
*NTC042ParmByte_Cnt_T_u08uint080U55U
PwrDiscnctSwtDiag_Volt_T_f32float320.0F40.0F
ChrgPmpDiag_Volt_T_f32float320.0F40.0F
Return ValueN/AN/AN/AN/A

Design Rationale

Path in FDD : ES003C_PwrDiscnct/PwrDiscnct/PwrDiscnctPer1/WarmInit/Operate/OPEN&CLOSE/VERIFYDISCOPEN/InitialDiag.

Local Function #4

Function NamePwrDiscnctDiagTypeMinMax
Arguments PassedBattVltg_Volt_T_f32float320.0F40.0F
ChrgMinDelta_Volt_T_f32float320.0F40.0F
BattVltgAdcFaild_Cnt_T_loglbooleanFALSETRUE
ChrgPmpDiagAdcFaild_Cnt_T_loglbooleanFALSETRUE
ChrgPmpDiag_Volt_T_f32float320.0F40.0F
Return ValueN/AN/AN/AN/A

Design Rationale

Path in FDD : Path in FDD : ES003C_PwrDiscnct/PwrDiscnct/PwrDiscnctPer1/WarmInit/Operate/RUNTIMEDIAG/PwrDiscnctDiagnostic.

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

Please see not in section 4.1.1.1 w.r.t SigQlfr1 enumeration’s non-usage.

UNIT TEST CONSIDERATION

Please see not in section 4.1.1.1 w.r.t SigQlfr1 enumeration’s non-usage.

Abbreviations and Acronyms

Abbreviation or AcronymDescription
DFDDesign functional diagram
MDDModule design Document

Glossary

Note: Terms and definitions from the source “Nexteer Automotive” take precedence over all other definitions of the same term. Terms and definitions from the source “Nexteer Automotive” are formulated from multiple sources, including the following:

  • ISO 9000

  • ISO/IEC 12207

  • ISO/IEC 15504

  • Automotive SPICE® Process Reference Model (PRM)

  • Automotive SPICE® Process Assessment Model (PAM)

  • ISO/IEC 15288

  • ISO 26262

  • IEEE Standards

  • SWEBOK

  • PMBOK

  • Existing Nexteer Automotive documentation

TermDefinitionSource
MDDModule Design Document
DFDData Flow Diagram

References

Ref. #TitleVersion
1AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf)v1.3.0 R4.0 Rev 2
2MDD GuidelineEA4 01.00.00
3Software Naming Conventions.doc1.0
4Software Design and Coding Standards.doc2.1
5FDD – ES003C PwrDiscnctSee Synergy subproject version
Last modified October 12, 2025: Initial commit (ddf2e20)