CurrMeasArbn_MDD

Module Design Document

For

Current Measurement Arbitration

Mar 18, 2016

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

SEPG,

Nexteer Automotive,

Saginaw, MI, USAChange History

DescriptionAuthorVersionDate
Initial VersionSelva1.014- Apr-2015
Updated for Anomoly EA4#1589 . Combined MDD for both sources filesSelva2.017 -Sep 2015
Updated for Anomoly EA4#2989Selva3.018 -Mar 2016

Table of Contents

1 Introduction 5

1.1 Purpose 5

1.2 Scope 5

2 Current Measurement Arbitration & High-Level Description 6

3 Design details of software module 7

3.1 Graphical representation of Current Measurement Arbitration 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: CurrMeasArbnInit1 9

5.1.1.1 Design Rationale 9

5.1.1.2 Module Outputs 9

5.1.1.3 Per: 9

5.1.1.4 CurrMeasARBNPer1 9

5.1.1.5 Design Rationale 9

5.1.1.6 Store Module Inputs to Local copies 9

5.1.1.7 (Processing of function)……… 9

5.1.1.8 Store Local copy of outputs into Module Outputs 9

5.2 Server Runables 9

5.3 Interrupt Functions 9

5.4 Module Internal (Local) Functions 9

5.5 Local Function/Macro Definitions 9

5.5.1 Local Function #1 SigAvlCheck 9

5.5.1.1 Description 10

5.5.2 Local Function #2 ParkTransformation 10

5.5.2.1 Description 10

5.6 GLOBAL Function/Macro Definitions 10

6 Known Limitations with Design 11

7 UNIT TEST CONSIDERATION 12

Appendix A Abbreviations and Acronyms 13

Appendix B Glossary 14

Appendix C References 16

Introduction

Purpose

None

Scope

  • None

Current Measurement Arbitration & High-Level Description

The component contains two source files, both described in this MDD: CDD_ CurrMeasArbn.c contains the RTE init runnable; CDD_CurrMeasArbn_MotCtrl.c contains the motor control runnable.

Refer the Design for high level Description

Design details of software module

None

Graphical representation of Current Measurement Arbitration

Data Flow Diagram

Component level DFD

None

Function level DFD

None

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Constant NameResolutionUnitsValue
MAXVALSIGSTALL_CNT_U081Cnt255
Refer DataDict.m file for other local constantsRefer DataDict.m file for other local constantsRefer DataDict.m file for other local constantsRefer DataDict.m file for other local constants

Software Component Implementation

Sub-Module Functions

Init: CurrMeasArbnInit1

Design Rationale

Init1 function is created so that it will allow a RTE model to be created in the AUTOSAR tools which allows Per-Instance Memory and calibration definition needs. The initialization function is doing nothing

Module Outputs

None

Per:

CurrMeasARBNPer1

Design Rationale

Inputs and outputs are globals since its non RTE (MotorControl ISR) function.

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

None

Interrupt Functions

None

Module Internal (Local) Functions

Local Function/Macro Definitions

Local Function #1 SigAvlCheck

Function NameSigAvlCheckTypeMinMax
Arguments PassedCurrMeasSigQlfr_T_enumSigQlfr1SIGQLFR_NORESSIGQLFR_FAILD
CurrMeasSigRollgCntr_Cnt_T_u08uint80255
CurrMeasSigCorrlnChk_Cnt_T_u08uint80255
*PrevCurrMeasSigRollgCntr_Cnt_T_u08uint80255
*CurrMeasSigStall_Cnt_T_u08uint80255
Return ValueSignalAvailable_Cnt_T_loglbooleanFALSETRUE

Description

Refer FDD.

Local Function #2 ParkTransformation

Function NameCurrMeasCorrlnChkTypeMinMax
Arguments PassedPhaseAMotCurrCorrd_Ampr_T_f32float32-200200
PhaseBMotCurrCorrd_Ampr_T_f32float32-200200
PhaseCMotCurrCorrd_Ampr_T_f32float32-200200
MotCtrlCurrMeasMotAgCorrd_Rad_T_f32float32-6.2826.282
MotCtrlMotElecMeclPolarity_Uls_T_s08*sint8-11
Return ValueMotCurrDax_Ampr_T_f32float32-200200
MotCurrQax_Ampr_T_f32float32-200200

Description

Refer FDD.

MotCtrlMotElecMeclPolarity_Cnt_T_s08* takes two values (-1 and 1)

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

None

UNIT TEST CONSIDERATION

None

Abbreviations and Acronyms

Abbreviation or AcronymDescription

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.01
3Software Naming Conventions.doc1.0
4Software Design and Coding Standards.doc2.1
5FDD - ES208A Current Measurement ArbitrationSee synergy subversion
Last modified October 12, 2025: Initial commit (1fadfc4)