VehiclePowerMode_MDD

Module -- VehiclePwrMode

High-Level Description

This module determines the vehicle level power moding signal for the EPS system

Figures

Diagram – Function Data Sharing

Diagram – Function (Name)


Variable Data Dictionary

For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.

Module InputsModule Outputs
EngRPM_Cnt_u16ATermActive_Cnt_lgc
EngONSrlComSvcDft_Cnt_lgcCTermActive_Cnt_lgc
VehSpd_Kph_f32OperRampRate_XpmS_f32
VehSpdValid_Cnt_lgcOperRampValue_Uls_f32
EssEngStop_Cnt_lgc
SpStPrsnt_Cnt_T_lgc
DefaultVehSpd

Module Internal Variables

This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
CTermActive_Cnt_M_lgc1FALSETRUEVEHPWRMD_START_SEC_VAR_CLEARED_BOOLEAN

User defined typedef definition/declaration

This section documents any user types uniquely used for the module.

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

Constant Data Dictionary

Calibration Constants

This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.

Constant Name
k_RampDnRt_UlspmS_f32
k_RampUpRtLoSpd_UlspmS_f32
k_VehSpdAstLmt_Kph_f32

Program(fixed) Constants

Embedded Constants

All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.

Local

Constant NameResolutionUnitsValue
D_ENGONRPM_CNT_U161RPM300
D_ENGRPMINVLD_CNT_U161Counts0xFFFF

Global

This section lists the global constants used by the module. For details on global constants, refer to the Data Dictionary for the application.

Constant Name
D_ZERO_ULS_F32
D_ONE_ULS_F32

Module specific Lookup Tables Constants

(This is for lookup tables (arrays) with fixed values, same name as other tables)

Constant NameResolutionValueSoftware Segment
None


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. <None>

Data Hiding Functions

  1. Rte_Call_EpsEn_OP_GET

Global Functions/Macros Defined by this Module

Global Function #1

Function NameN/ATypeMinMax
Arguments Passed(if none, write None)
(Insert more rows for additional passed arguments)
Return Value(if no value returned, write N/A)

Description

(Place flowchart/design for local function)

Local Functions/Macros Used by this MDD only

Local Function #1

Function NameN/ATypeMinMax
Arguments Passed(if none, write None)
(Insert more rows for additional passed arguments)
Return Value(if no value returned, write N/A)

Description

(Place flowchart/design for local function)

Software Module Implementation

Runtime Environment (RTE) Initial Values

This section lists the initial values of data written by this module but controlled by the RTE. After RTE initialization, the data in this table will contain these values.

DataValue
ATermActive_Cnt_lgcTRUE
CTermActive_Cnt_lgcFALSE
EngRPM_Cnt_u160
EngONSrlComSvcDft_Cnt_lgcFALSE
VehSpd_Kph_f320
VehSpdValid_Cnt_lgcFALSE
OperRampRate_XpmS_f320
OperRampValue_Uls_f210

Initialization Functions

Init: _Init1

Design Rationale

Module Outputs

Rte_IWrite_VehPwrMd_Init1_OperRampRate_XpmS_f32(k_RampDnRt_UlspmS_f32)

Rte_IWrite_VehPwrMd_Init1_OperRampValue_Uls_f32(D_ZERO_ULS_F32)

Module Internal

(Initialize all module internal variables in this section)


Periodic Functions

Per: _Per1

Design Rationale

There are a set of inputs that are read in but not used. This is because these inputs are likely to be used in the final design. The current implementation does not meet final design requirements.

Program Flow Start

Rte_Call_VehPwrMd_Per1_CP0_CheckpointReached()Store Module Inputs to Local copies

EngONSrlComSvcDft_Cnt_T_lgc = Rte_IRead_VehPwrMd_Per1_EngONSrlComSvcDft_Cnt_lgc()

Rte_Call_EpsEn_OP_GET(&EPSEn_Cnt_T_lgc)

EngRPM_Cnt_T_u16 = Rte_IRead_VehPwrMd_Per1_EngRPM_Cnt_u16()

VehSpdValid_Cnt_T_lgc = Rte_IRead_VehPwrMd_Per1_VehSpdValid_Cnt_lgc()

VehSpd_Kph_T_f32 = Rte_IRead_VehPwrMd_Per1_VehSpd_Kph_f32()

EssEngStop_Cnt_T_lgc = Rte_IRead_VehPwrMd_Per1_EssEngStop_Cnt_lgc()

SpStPrsnt_Cnt_T_lgc = Rte_IRead_VehPwrMd_Per1_SpStPrsnt_Cnt_lgc()

NmState_Cnt_T_u8 = NmGetStatus()

Processing

Store Local copy of outputs into Module Outputs

Rte_IWrite_VehPwrMd_Per1_OperRampRate_XpmS_f32(OperRampRate_XpmS_T_f32)

Rte_IWrite_VehPwrMd_Per1_OperRampValue_Uls_f32(OperRampValue_Uls_T_f32)

Rte_IWrite_VehPwrMd_Per1_ATermActive_Cnt_lgc(ATermActive_Cnt_T_lgc)

Rte_IWrite_VehPwrMd_Per1_CTermActive_Cnt_lgc(CTermActive_Cnt_M_lgc)

Program Flow End

Rte_Call_VehPwrMd_Per1_CP1_CheckpointReached()


Fault Recovery Functions

Shutdown Functions

Interrupt Functions

Serial Communication Functions

Execution Requirements

Execution Sequence of the Module

(Describe in words relevant details about the execution sequence of the different sub modules.)

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
VehPwrMd_Init1Executed once after the RTE is startedCOLDINIT
VehPwrMd_Per12msALL

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)
<None>


Memory Map Definition Requirements

Sub Modules (Functions)

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

Name of Sub ModuleSoftware Segment
VehPwrMd_Init1
VehPwrMd_Per1

Local Functions

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

Name of Sub ModuleSoftware Segment


Known Issues / Limitations With Design

  1. Inline functions defined in GlobalMacro.h are not unit tested


Revision Control Log

Rev #Change DescriptionDateAuthor Initials
1.0Initial MDD23May11LWW
2.0Initial Chrysler version for VehPwrMode31JUL12SAH
3.0Update per SER Rev 2B3JAN13BWL
4.0Updated per SER Rev 2G and anomaly 476112Apr13M. Story
5.0Add TWaitBusSleep check for shutdown21Jun13M. Story
6.0Anomaly 5586 NetWork management changes02OCT13M. Story
7.0Anomaly 5911 NM changes31OCT13M. Story
9Updated for L version 02.00.00 and WR 01.0.0420NOV13M. Story
10Anomaly 6131 Cterm changes05DEC13M. Story
11Anomaly 620610JAN14M. Story
Last modified October 12, 2025: Initial commit (0347a62)