BmwHaptcFb_MDD

Module Design Document

For

BmwHaptcFb

May 18, 2018

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

Software Group,

Nexteer Automotive,

Saginaw, MI, USA
Change History

DescriptionAuthorVersionDate
Initial versionKrzysztof Byrski118-May-2018


Table of Contents

1 Introduction 4

1.1 Purpose 4

1.2 Scope 4

2 BmwHaptcFb & High-Level Description 5

3 Design details of software module 6

3.1 Graphical representation of BmwHaptcFb 6

3.2 Data Flow Diagram 6

3.2.1 Component level DFD 6

3.2.2 Function level DFD 6

4 Constant Data Dictionary 7

4.1 Program (fixed) Constants 7

4.1.1 Embedded Constants 7

5 Software Component Implementation 8

5.1 Sub-Module Functions 8

5.1.1 Init: BmwHaptcFbInit1 8

5.1.2 Per: BmwHaptcFbPer1 8

5.2 Server Runables 8

5.3 Interrupt Functions 8

5.4 Module Internal (Local) Functions 9

5.4.1 Local Function CalcBmwHaptcFbPatNr 9

5.4.2 Local Function CalcBmwHaptcFbIntenNr 9

5.4.3 Local Function CalcHwOscnEna 10

5.4.4 Local Function CalcAmpAndFrq 10

5.5 GLOBAL Function/Macro Definitions 11

6 Known Limitations with Design 12

7 UNIT TEST CONSIDERATION 13

Appendix A Abbreviations and Acronyms 14

Appendix B Glossary 15

Appendix C References 16

Introduction

Purpose

Module Design Document for CF020A_BmwHaptcFb_Impl.

Scope

The following definitions are used throughout this document:

  • Shall: indicates a mandatory requirement without exception in compliance.

  • Should: indicates a mandatory requirement; exceptions allowed only with documented justification.

  • May: indicates an optional action.

BmwHaptcFb & High-Level Description

This function will alert the driver through handwheel haptic feedback if a lane departure is detected. This function accepts pulse pattern, amplitude, and frequency inputs from the customer and then provides an enable/disable signal.

Design details of software module

Graphical representation of BmwHaptcFb

Data Flow Diagram

Component level DFD

Refer FDD

Function level DFD

Refer FDD

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Constant NameResolutionUnitsValue
-

*Refer FDD for local constants

Software Component Implementation

Sub-Module Functions

The sub-module functions are grouped based on similar functionality that needs to be executed in a given “State” of the system (refer States and Modes). For a given module, the MDD will identify the type and number of sub-modules required. The sub-module types are described below.

Init: Init1

Design Rationale

Refer FDD

Module Outputs

Refer FDD

Per: Per1

Design Rationale

Refer FDD

Store Module Inputs to Local copies

Refer FDD

(Processing of function)………

Refer FDD

Store Local copy of outputs into Module Outputs

Refer FDD

Server Runables

None

Interrupt Functions

None

Module Internal (Local) Functions

Local Function CalcBmwHaptcFbPatNr

Function NameCalcBmwHaptcFbPatNrTypeMinMax
Arguments PassedBmwHaptcFbPatNr_Cnt_T_enumenum015
BmwHaptcFbPatNrVld_Cnt_T_loglbooleanFALSETRUE
HwOscnActv_Cnt_T_loglbooleanFALSETRUE
Return ValueBmwHaptcFbPatNr_Cnt_T_enumenum015
BmwHaptcFbPatNrLgc_Cnt_T_loglbooleanFALSETRUE

Design Rationale

Implementation of "CalcBmwHaptcFbPatNr" and "BmwHaptcFbPatNrLgc" Simulink block

Processing

Refer FDD

Local Function CalcBmwHaptcFbIntenNr

Function NameCalcBmwHaptcFbIntenNrTypeMinMax
Arguments PassedBmwHaptcFbIntenNr_Cnt_T_enumenum015
BmwHaptcFbIntenNrVld_Cnt_T_loglbooleanFALSETRUE
HwOscnActv_Cnt_T_loglbooleanFALSETRUE
Return ValueBmwHaptcFbIntenNr_Cnt_T_enumenum015
BmwHaptcFbIntenNrLgc_Cnt_T_loglbooleanFALSETRUE

Design Rationale

Implementation of "CalcBmwHaptcFbIntenNr" and "BmwHaptcFbIntenNrLgc" Simulink block

Processing

Refer FDD

Local Function CalcHwOscnEna

Function NameCalcHwOscnEnaTypeMinMax
Arguments PassedPatChgReq_Cnt_T_loglfloat32FALSETRUE
ActvTi_MilliSec_T_f32float32060
PasTi_MilliSec_T_f32float3203
Return ValueHwOscnEna_Cnt_T_loglbooleanFALSETRUE

Design Rationale

Implementation of "CalcHwOscnEna" Simulink block

Processing

Refer FDD

Local Function CalcAmpAndFrq

Function NameCalcAmpAndFrqTypeMinMax
Arguments PassedVehSpd_Kph_T_f32float320511
HwTq_HwNwtMtr_T_f32float32-1010
Return ValueHwOscnMotAmp_MotNwtMtr_T_f32float32010
HwOscnFrq_Hz_T_f32float321050

Design Rationale

Implementation of "CalcAmpAndFrq" Simulink block

Processing

Refer FDD

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

None

UNIT TEST CONSIDERATION

None

Abbreviations and Acronyms

Abbreviation or AcronymDescription
FDDFunctional Design Document. (See references)

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.4.0 R4.0 Rev 3
2MDD Guideline EA41.02
3EA4 Software Naming Conventions1.01
4Software Design and Coding Standards2.01
5CF020A_BmwHaptcFb_DesignSee Synergy Sub Project Version
Last modified October 12, 2025: Initial commit (af72ad2)