States_And_Modes_GeneratedConfiguration_MDD
Module -- Configuration
High-Level Description
Design of State and Modes configuration data. Generic design for all projects
Figures
Component Diagram
None, files are generated by Configurator.
Variable Data Dictionary
Module Inputs | Module Outputs |
---|---|
CTerm_Cnt_lgc | |
ATerm_Cnt_lgc | |
FTerm_Cnt_lgc | |
RampStatusComplete_Cnt_lgc | |
ControlledDampStatusComplete_Cnt_lgc | |
TMFTestComplete_Cnt_lgc |
Module Internal Variables
Variable Name | DataType | Resolution | Legal Range (min) | Legal Range (max) | Multiplicity | Software Segment |
---|---|---|---|---|---|---|
StTrnsVctr_Cnt_D_b08 | Bitfield8 | uint8: Bit0:F Bit1:C Bit2:M Bit3:A | FULL | FULL | 1:1 | STAMD#_START_SEC_VAR_CLEARED_8 |
WarmInitMilestoneRqst_Cnt_M_u32 | Uint32 | 1 | 0 | FULL | 1:1 | STAMD#_START_SEC_VAR_CLEARED_32 |
WarmInitMilestoneRqst#_Cnt_M_u32 | Uint32 | 1 | 0 | FULL | 0:n | STAMD#_START_SEC_VAR_CLEARED_32 |
EcuResetActive_Cnt_M_lgc | boolean | N/A | FALSE | TRUE | 1:1 | STAMD#_START_SEC_VAR_CLEARED_BOOLEAN |
FinalNvMWriteInProgress_Cnt_M_lgc | boolean | N/A | FALSE | TRUE | 1:1 | STAMD#_START_SEC_VAR_CLEARED_BOOLEAN |
StopTODPerOperation_Cnt_M_lgc | boolean | N/A | FALSE | TRUE | 1:1 | STAMD#_START_SEC_VAR_CLEARED_BOOLEAN |
TODState_Cnt_M_lgc | boolean | N/A | FALSE | TRUE | 1:1 | STAMD#_START_SEC_VAR_CLEARED_BOOLEAN |
TransitionComplete_Cnt_M_lgc | N/A | FALSE | TRUE | N/A | 1:1 | STAMD#_START_SEC_VAR_CLEARED_BOOLEAN |
SystemState_Cnt_M_enum | Rte_ModeType_StaMd_Mode | N/A | N/A | N/A | 1:1 | STAMD#_START_SEC_VAR_INIT_UNSPECIFIED |
SystemState#_Cnt_M_enum | Rte_ModeType_StaMd_Mode | N/A | N/A | N/A | 0:n | STAMD#_START_SEC_VAR_INIT_UNSPECIFIED |
SysCSystemState_Cnt_M_enum | Rte_ModeType_StaMd_Mode | N/A | N/A | N/A | 1:1 | STAMD#_START_SEC_VAR_INIT_UNSPECIFIED |
Lnk_TypeH#_Start | uint8 | 1 | 0 | FULL | 0:n | AP_STAMD_CONST |
Lnk_TypeH#_Size | Const uint32 pointer | 1 | 0 | 8192 | 0:n | AP_STAMD_CONST |
StaMdsSysCFltCntr_Cnt_M_u16 | Uint16 | 1 | 0 | FULL | 1:1 | STAMD#_START_SEC_VAR_CLEARED_16 |
Note “#” denotes the application number. It can be any value =1 to n. Check project configuration files under UTP/Contract folder
User defined typedef definition/declaration
Typedef Name | Element Name | User Defined Type | Legal Range (min) | Legal Range (max) |
---|---|---|---|---|
Rte_ModeType_StaMd_Mode | RTE_MODE_StaMd_Mode_DISABLE RTE_MODE_StaMd_Mode_OFF RTE_MODE_StaMd_Mode_OPERATE RTE_MODE_StaMd_Mode_WARMINIT RTE_TRANSITION_StaMd_Mode | N/A | N/A | N/A |
Constant Data Dictionary
Calibration Constants
Constant Name |
---|
k_StaMdsSysCDiag_Cnt_str |
Program(fixed) Constants
Embedded Constants
Local
Constant Name | Resolution | Units | Value |
---|
Global
Constant Name |
---|
BC_STAMD_SYSCHKINCOREAPP |
Module specific Lookup Tables Constants
Constant Name | Resolution | Value | Software Segment |
---|---|---|---|
Rte_ModeType_StaMd_Mode t_StateLkpTbl_Cnt_u8 [D_STATELKPSTATES_CNT_U16] [D_STATELKPVCTRS_CNT_U16] | N/A | { {RTE_MODE_StaMd_Mode_OFF,
{RTE_MODE_StaMd_Mode_OFF,
{RTE_MODE_StaMd_Mode_OPERATE,
{RTE_MODE_StaMd_Mode_DISABLE,
} | CONST_UNSPECIFIED |
T_CurrentSystemState_Ptr_enum[ *SIZE] | N/A | {&SystemState#_Cnt_M_enum, } | AP_STAMD_CONST |
T_TypeHInfo_Cnt_Str[ *SIZE] | TypeHInfoType_Str | { {&Lnk_TypeH#_Start, &Lnk_TypeH#_Size}, } | AP_STAMD_CONST |
T_WarmInitMilestoneRqst_Ptr_enum[*SIZE] | N/A | { &WarmInitMilestoneRqst#_Cnt_M_u32, } | AP_STAMD_CONST |
Note: The entries in the state lookup table rely on the fact that generated values for the system state are maintained. If the generated values are changed then the entries have to re arranged.
Note: * SIZE for above tables varies across projects.Check Project configuration files for size and elements of tables..
Functions/Macros used by the Sub-Modules
Library Functions / Macros
The library functions / Macros that are called by the various sub modules are identified below,
Data Hiding Functions
None
Global Functions/Macros Defined by this Module
Process WarmInit Milestone Complete
Function Name | MilestoneRqst#_WarmInitMilestoneComplete | Type | Min | Max |
---|---|---|---|---|
Arguments Passed | user | StaMd_Users | 0 | 31 |
Return Value | None |
Description
Process WarmInit Milestone Not Complete
Function Name | MilestoneRqst#_WarmInitMilestoneNotComplete | Type | Min | Max |
---|---|---|---|---|
Arguments Passed | user | StaMd_Users | 0 | 31 |
Return Value | None |
Description
States and Modes Transition Function
Function Name | StaMd#_Trns_DemShutdown | Type | Min | Max |
---|---|---|---|---|
Multiplicity | 0 : 1 | |||
Arguments Passed | none | |||
Return Value | None |
Description
Rte_Call_DiagMgr_StaCtrl_Shutdown
States and Modes Initialization
NONE
Description
States and Modes Periodic
Function Name | StaMd#_Per1 | Type | Min | Max |
---|---|---|---|---|
Multiplicity | 0 : n | |||
Arguments Passed | none | |||
Return Value | None |
Description
Local Functions/Macros Used by this MDD only
Macro Function #1
SetBits_m(var, mask) : var = var | mask
Macro Function #2
ClrBits_m(var, mask) : var = var & mask
Local Function #1
NONE
Software Module Implementation
Initial Data Values
Data | Value |
---|---|
CTerm_Cnt_lgc | D_FALSE_CNT_LGC |
ATerm_Cnt_lgc | D_TRUE_CNT_LGC |
FTerm_Cnt_lgc | D_FALSE_CNT_LGC |
Initialization Functions
Init:
Periodic Functions
Fault Recovery Functions
None
Shutdown Functions
None
Interrupt Functions
None
Serial Communication Functions
Execution Requirements
Execution Sequence of the Module
_Init1 needs to RUN prior to any function that requires the use of TypeH data.Execution Rates for sub-modules called by the Scheduler
Function Name | Calling Frequency | System State(s) in which the function is called |
---|---|---|
Execution Requirements for Serial Communication Functions
Function Name | Sub-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 Module | Software Segment |
---|---|
Global and Local Functions
This table identifies the software segments for global and local functions identified in this module.
Name of Sub Module | Software Segment |
---|---|
MilestoneRqst#_WarmInitMilestoneComplete | RTE_AP_STAMD_APPL_CODE |
MilestoneRqst#_WarmInitMilestoneNotComplete | RTE_AP_STAMD_APPL_CODE |
StaMd#_Per1 | RTE_AP_STAMD_APPL_CODE |
Known Issues / Limitations With Design
Revision Control Log
Item # | Rev # | Change Description | Date | Author Initials |
---|---|---|---|---|
1 | 1 | Initial version. | 18-June-13 | NRAR |