This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - CurrMeas_IntegrationManual
Integration Manual
For
CurrMeas
VERSION: 1.0
DATE: 18-May-2017
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Location: The official version of this document is stored in the Nexteer Configuration Management System.
Revision History
| Sl. No. | Description | Author | Version | Date |
| 1 | Initial version | Krzysztof Byrski | 1.0 | 18-May-2017 |
Table of Contents
3.2 Global Functions(Non RTE) to be provided to Integration Project 6
4 Configuration REQUIREMeNTS 7
4.2 Configuration Files to be provided by Integration Project 7
4.3 Da Vinci Parameter Configuration Changes 7
4.4 DaVinci Interrupt Configuration Changes 7
4.5 Manual Configuration Changes 7
5 Integration DATAFLOW REQUIREMENTS 8
5.1 Required Global Data Inputs 8
5.2 Required Global Data Outputs 8
5.3 Specific Include Path present 8
Abbrevations And Acronyms
| Abbreviation | Description |
| DFD | Design functional diagram |
| MDD | Module design Document |
References
This section lists the title & version of all the documents that are referred for development of this document
| Sr. No. | Title | Version |
| 1 | EA4 Software Naming Conventions | 01.01.00 |
| 2 | Software Design and Coding Standards | 2.1 |
| 3 | ES200B_CurrMeas_Design | See Synergy Sub Project Version |
Dependencies
SWCs
| Module | Required Feature |
| DF001A_FltInj | Header file: FltInj.h |
| ES999A_ElecGlbPrm | Header file: ElecGlbPrm.h |
Note : Referencing the external components should be avoided in most cases. Only in unavoidable circumstance external components should be referred. Developer should track the references.
Global Functions(Non RTE) to be provided to Integration Project
CurrMeasPer2
Configuration REQUIREMeNTS
Build Time Config
| Modules | Notes | |
| FLTINJENA | Takes values STD_ON or STD_OFF |
Configuration Files to be provided by Integration Project
None
Da Vinci Parameter Configuration Changes
| Parameter | Notes | SWC |
| None |
DaVinci Interrupt Configuration Changes
| ISR Name | VIM # | Priority Dependency | Notes |
| None |
Manual Configuration Changes
| Constant | Notes | SWC |
| None |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
See FDD DataDict.m.
Required Global Data Outputs
See FDD DataDict.m.
Specific Include Path present
Yes
Runnable Scheduling
This section specifies the required runnable scheduling.
| Init | Scheduling Requirements | Trigger |
| CurrMeasInit1 | None | RTE(Init) |
| Runnable | Scheduling Requirements | Trigger |
| CurrMeasPer1 | None | RTE(2ms) |
| CurrMeasPer2 | None | ISR(2 * MtrCtrlISR) |
| CurrMeasPer3 | None | RTE(2ms) |
| CurrMeasEolGainReq_Oper | None | RTE(Event) |
| CurrMeasEolGainStsReq_Oper | None | RTE(Event) |
| CurrMeasEolOffsReq_Oper | None | RTE(Event) |
| CurrMeasEolOffsStsReq_Oper | None | RTE(Event) |
| CurrMeasGainReadReqSngIvtr_Oper | None | RTE(Event) |
| CurrMeasGainWrReqSngIvtr_Oper | None | RTE(Event) |
| CurrMeasOffsReadReqSngIvtr_Oper | None | RTE(Event) |
| CurrMeasOffsWrReqSngIvtr_Oper | None | RTE(Event) |
.
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes |
| CDD_CurrMeas_START_SEC_CODE | Functions | |
| CDD_CurrMeas_MotCtrl_START_SEC_CODE | Functions |
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
| Feature | RAM | ROM |
| None |
Table 1: ARM Cortex R4 Memory Usage
NvM Blocks
*See DataDict.m
Compiler Settings
Preprocessor MACRO
None
Optimization Settings
None
Appendix
None
2 - CurrMeas_MDD
Module Design Document
For
CurrMeas
Oct 16, 2017
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Description | Author | Version | Date |
| Initial Version | Krzysztof Byrski | 1.0 | 19-May-2017 |
| Fixed anomaly EA4#13330 by using required NVM blocks as applicable | Krishna Anne | 2.0 | 16-Oct-17 |
Table of Contents
2 CurrMeas & High-Level Description 6
3 Design details of software module 7
3.1 Graphical representation of CurrMeas 7
4.1 Program (fixed) Constants 8
5 Software Component Implementation 9
5.2.1 CurrMeasEolGainReq_Oper 11
5.2.2 CurrMeasEolGainStsReq_Oper 11
5.2.3 CurrMeasEolOffsReq_Oper 11
5.2.4 CurrMeasEolOffsStsReq_Oper 11
5.2.5 CurrMeasGainReadReqSngIvtr_Oper 11
5.2.6 CurrMeasGainWrReqSngIvtr_Oper 11
5.2.7 CurrMeasOffsReadReqSngIvtr_Oper 12
5.2.8 CurrMeasOffsWrReqSngIvtr_Oper 12
5.4 Module Internal (Local) Functions 13
5.4.5 CalcMotCurrMotAgCorrd 15
5.5 GLOBAL Function/Macro Definitions 17
6 Known Limitations with Design 18
Appendix A Abbreviations and Acronyms 20
Introduction
Purpose
Module Design Document for ES200B_CurrMeas.
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.
CurrMeas & High-Level Description
Refer FDD.
Design details of software module
Graphical representation of CurrMeas

Data Flow Diagram
Refer FDD
Component level DFD
None
Function level DFD
None
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
| Constant Name | Resolution | Units | Value |
|---|---|---|---|
| CALPROCNOTSTRTD_CNT_U08 | 1 | Cnt | 0 |
| CALPROCSTRTD_CNT_U08 | 1 | Cnt | 1 |
| CALPROCPASS_CNT_U08 | 1 | Cnt | 2 |
| CALPROCPHAABCEOLOUTOFRNG_CNT_U08 | 1 | Cnt | 4 |
| CALPROCVEHSPDCNDNOTMET_CNT_U08 | 1 | Cnt | 16 |
| CALPROCMOTVELMRFCNDNOTMET_CNT_U08 | 1 | Cnt | 64 |
| VEHSPDCDNNOTMET_CNT_U08 | 1 | Cnt | 4 |
| MOTVELMRFCDNNOTMET_CNT_U08 | 1 | Cnt | 8 |
| DIAGCSTSINVTRINACTV_CNT_U08 | 1 | Cnt | 16 |
| FAILDATENA_CNT_U08 | 1 | Cnt | 2 |
| FAILDATWRMININ_CNT_U08 | 1 | Cnt | 3 |
| INVTRINACTV_CNT_U08 | 1 | Cnt | 8 |
| DIFOFFSRNGCHKMAX_VOLT_F32 | Single precision float | Volt | 1.0 |
| DEGREES30_MOTRAD_F32 | Single precision float | MotRad | 0.5236 |
| MAXCURRCORRD_AMPR_F32 | Single precision float | Ampr | 200.0 |
| PHAONTIBCOK_CNT_U08 | 1 | Cnt | 0x03 |
| PHAONTIACOK_CNT_U08 | 1 | Cnt | 0x05 |
| PHAONTIABOK_CNT_U08 | 1 | Cnt | 0x06 |
| PHAONTIABCOK_CNT_U08 | 1 | Cnt | 0x07 |
| PHAONTIA_CNT_U08 | 1 | Cnt | 0x04 |
| PHAONTIB_CNT_U08 | 1 | Cnt | 0x02 |
| PHAONTIC_CNT_U08 | 1 | Cnt | 0x01 |
| NANOSECTOSEC_ULS_F32 | Single precision float | Uls | 0.000000001 |
Software Component Implementation
Sub-Module Functions
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
Per: Per2
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
Per: Per3
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
CurrMeasEolGainReq_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
CurrMeasEolGainStsReq_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
CurrMeasEolOffsReq_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
CurrMeasEolOffsStsReq_Oper
Design Rationale
Refer FDD
CurrMeasGainReadReqSngIvtr_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
CurrMeasGainWrReqSngIvtr_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
CurrMeasOffsReadReqSngIvtr_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
CurrMeasOffsWrReqSngIvtr_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
Interrupt Functions
None
Module Internal (Local) Functions
OffsetCalibration
| Function Name | OffsetCalibration | Type | Min | Max |
| Arguments Passed | MotCurrAdcVlyA_Volt_T_f32 | float32 | 0.0 | 5.0 |
| MotCurrAdcVlyB_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotCurrAdcVlyC_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotVelMrf_MotRadPerSec_T_f32 | float32 | -1350.0 | 1350.0 | |
| VehSpd_Kph_T_f32 | float32 | 0.0 | 511.0 | |
| VehSpdVld_Cnt_T_logl | boolean | FALSE | TRUE | |
| BrdgVltg_Volt_T_f32 | float32 | 6.0 | 26.5 | |
| DiagcStsIvtr1Inactv_Cnt_T_logl | boolean | FALSE | TRUE | |
| Return Value | N/A | - | - | - |
Design Rationale
Refer FDD
Processing
Refer FDD
GainCalibration
| Function Name | GainCalibration | Type | Min | Max |
| Arguments Passed | MotCurrEolOffsProcFlg_Cnt_T_logl | boolean | FALSE | TRUE |
| MotCurrAdcVlyA_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotCurrAdcVlyB_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotCurrAdcVlyC_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotVelMrf_MotRadPerSec_T_f32 | float32 | -1350.0 | 1350.0 | |
| MotCurrOffsZeroAvrgA_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotCurrOffsZeroAvrgB_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotCurrOffsZeroAvrgC_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| VehSpd_Kph_T_f32 | float32 | 0.0 | 511.0 | |
| VehSpdVld_Cnt_T_logl | boolean | FALSE | TRUE | |
| DiagcStsIvtr1Inactv_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotCurrEolCalStPrev_Cnt_T_enum | MotCurrEolCalSt2 | 0 | 8 | |
| Return Value | N/A | - | - | - |
Design Rationale
Refer FDD
Processing
Refer FDD
RangeChkWIABC
| Function Name | RangeChkWIABC | Type | Min | Max |
| Arguments Passed | MotCurrAdcVlyA_Volt_T_f32 | float32 | 0.0 | 5.0 |
| MotCurrAdcVlyB_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| MotCurrAdcVlyC_Volt_T_f32 | float32 | 0.0 | 5.0 | |
| Return Value | InRng_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Refer FDD
Processing
Refer FDD
ProtocolChkENABC
| Function Name | ProtocolChkENABC | Type | Min | Max |
| Arguments Passed | N/A | - | - | - |
| Return Value | ProtocolChkEn_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Refer FDD
Processing
Refer FDD
CalcMotCurrMotAgCorrd
| Function Name | CalcMotCurrMotAgCorrd | Type | Min | Max |
| Arguments Passed | N/A | - | - | - |
| Return Value | MotCtrlCurrMeasMotAgCorrd_Rad_T_f32 | float32 | -0.7666 | 6.2832 |
Design Rationale
Refer FDD
Processing
Refer FDD
CalMotCurrCorrdABC
| Function Name | CalMotCurrCorrdABC | Type | Min | Max |
| Arguments Passed | MotCurrOffsA_Volt_T_f32 | float32 | -1892868,5 | 1892873,5 |
| MotCurrOffsA_Volt_T_f32 | float32 | -1892868,5 | 1892873,5 | |
| MotCurrOffsA_Volt_T_f32 | float32 | -1892868,5 | 1892873,5 | |
| Return Value | N/A |
Design Rationale
Refer FDD
Processing
Refer FDD
OffsCalcABC
| Function Name | OffsCalcABC | Type | Min | Max |
| Arguments Passed | N/A | |||
| Return Value | MotCurrOffsA_Volt_T_f32 | float32 | -1892868,5 | 1892873,5 |
| MotCurrOffsB_Volt_T_f32 | float32 | -1892868,5 | 1892873,5 | |
| MotCurrOffsC_Volt_T_f32 | float32 | -1892868,5 | 1892873,5 |
Design Rationale
Refer FDD
Processing
Refer FDD
GLOBAL Function/Macro Definitions
None
Known Limitations with Design
None
UNIT TEST CONSIDERATION
None
Abbreviations and Acronyms
| Abbreviation or Acronym | Description |
|---|---|
| - | - |
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
| Term | Definition | Source |
|---|---|---|
| MDD | Module Design Document | |
| DFD | Data Flow Diagram |
References
| Ref. # | Title | Version |
|---|---|---|
| 1 | AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf) | v1.3.0 R4.0 Rev 2 |
| 2 | MDD Guideline | EA4 01.00.01 |
| 3 | Software Naming Conventions | 01.01.00 |
| 4 | Software Design and Coding Standards | 2.1 |
| 5 | ES200B_CurrMeas_Design | See Synergy Sub Project Version |
3 - CurrMeas_Review
Overview
Summary SheetSynergy Project
Davinci Files
Source Code
CDD_CurrMeas_MotCtrl
MDD
PolySpace
Sheet 1: Summary Sheet
Sheet 2: Synergy Project
Sheet 3: Davinci Files
Sheet 4: Source Code
| Rev 1.2 | 8-Jun-15 | |||||||||||||||||||||||
| Peer Review Meeting Log (Source Code Review) | ||||||||||||||||||||||||
| Source File Name: | CDD_CurrMeas.c | Source File Revision: | 4 | |||||||||||||||||||||
| Header File Name: | CDD_CurrMeas.h | Header File Revision: | ||||||||||||||||||||||
| MDD Name: | CurrMeas_MDD.docx | Revision: | 2 | |||||||||||||||||||||
| FDD/SCIR/DSR/FDR/CM Name: | ES200B_CurrMeas_Design | Revision: | 2.1.0 | |||||||||||||||||||||
| Quality Check Items: | ||||||||||||||||||||||||
| Rationale is required for all answers of No | ||||||||||||||||||||||||
| Working EA4 Software Naming Convention followed: | ||||||||||||||||||||||||
| for variable names | Yes | Comments: | ||||||||||||||||||||||
| for constant names | N/A | Comments: | ||||||||||||||||||||||
| N/A for changes | ||||||||||||||||||||||||
| for function names | N/A | Comments: | ||||||||||||||||||||||
| N/A for changes | ||||||||||||||||||||||||
| for other names (component, memory | N/A | Comments: | ||||||||||||||||||||||
| mapping handles, typedefs, etc.) | N/A for changes | |||||||||||||||||||||||
| All paths assign a value to outputs, ensuring | Yes | Comments: | ||||||||||||||||||||||
| all outputs are initialized prior to being written | ||||||||||||||||||||||||
| Requirements Tracability tags in code match the requirements tracability in the FDD | N/A | Comments: | ||||||||||||||||||||||
| requirements tracability in the FDD | N/A for EA4 | |||||||||||||||||||||||
| All variables are declared at the function level. | Yes | Comments: | ||||||||||||||||||||||
| Synergy version matches change history | Yes | Comments: | ||||||||||||||||||||||
| and Version Control version in file comment block | ||||||||||||||||||||||||
| Change log contains detailed description of changes | Yes | Comments: | ||||||||||||||||||||||
| and Work CR number | ||||||||||||||||||||||||
| Code accurately implements FDD (Document or Model) | Yes | Comments: | ||||||||||||||||||||||
| Verified no Compiler Errors or Warnings | Yes | Comments: | ||||||||||||||||||||||
| Component.h is included | Yes | Comments: | ||||||||||||||||||||||
| All other includes are actually needed. (System includes | Yes | Comments: | ||||||||||||||||||||||
| only allowed in Nexteer library components) | ||||||||||||||||||||||||
| Software Design and Coding Standards followed: | Version: 2.1 | |||||||||||||||||||||||
| Code comments are clear, correct, and adequate | Yes | Comments: | ||||||||||||||||||||||
| and have been updated for the change: [N40] and | ||||||||||||||||||||||||
| all other rules in the same section as rule [N40], | ||||||||||||||||||||||||
| plus [N75], [N12], [N23], [N33], [N37], [N38], | ||||||||||||||||||||||||
| [N48], [N54], [N77], [N79], [N72] | ||||||||||||||||||||||||
| Source file (.c and .h) comment blocks are per | Yes | Comments: | ||||||||||||||||||||||
| standards and contain correct information: [N41], [N42] | ||||||||||||||||||||||||
| Function comment blocks are per standards and | N/A | Comments: | ||||||||||||||||||||||
| contain correct information: [N43] | N/A for changes | |||||||||||||||||||||||
| Code formatting (indentation, placement of | Yes | Comments: | ||||||||||||||||||||||
| braces, etc.) is per standards: [N5], [N55], [N56], | ||||||||||||||||||||||||
| [N57], [N58], [N59] | ||||||||||||||||||||||||
| Embedded constants used per standards; no | N/A | Comments: | ||||||||||||||||||||||
| "magic numbers": [N12] | N/A for changes | |||||||||||||||||||||||
| Memory mapping for non-RTE code | Yes | Comments: | ||||||||||||||||||||||
| is per standard | ||||||||||||||||||||||||
| All execution-order-dependent code can be | Yes | Comments: | ||||||||||||||||||||||
| recognized by the compiler: [N80] | ||||||||||||||||||||||||
| All loops have termination conditions that ensure | N/A | Comments: | ||||||||||||||||||||||
| finite loop iterations: [N63] | N/A for changes | |||||||||||||||||||||||
| All divides protect against divide by zero | N/A | Comments: | ||||||||||||||||||||||
| if needed: [N65] | N/A for changes | |||||||||||||||||||||||
| All integer division and modulus operations | N/A | Comments: | ||||||||||||||||||||||
| handle negative numbers correctly: [N76] | N/A for changes | |||||||||||||||||||||||
| All typecasting and fixed point arithmetic, | N/A | Comments: | ||||||||||||||||||||||
| including all use of fixed point macros and | N/A for changes | |||||||||||||||||||||||
| timer functions, is correct and has no possibility | ||||||||||||||||||||||||
| of unintended overflow or underflow: [N66] | ||||||||||||||||||||||||
| All float-to-unsiged conversions ensure the. | N/A | Comments: | ||||||||||||||||||||||
| float value is non-negative: [N67] | N/A for changes | |||||||||||||||||||||||
| All conversions between signed and unsigned | N/A | Comments: | ||||||||||||||||||||||
| types handle msb==1 as intended: [N78] | N/A for changes | |||||||||||||||||||||||
| All pointer dereferencing protects against | Yes | Comments: | ||||||||||||||||||||||
| null pointer if needed: [N70] | ||||||||||||||||||||||||
| Component outputs are limited to the legal range | N/A | Comments: | ||||||||||||||||||||||
| defined in the FDD DataDict.m file : [N53] | N/A for changes | |||||||||||||||||||||||
| All code is mapped with FDD (all FDD | Yes | Comments: | ||||||||||||||||||||||
| subfunctions and/or model blocks identified | ||||||||||||||||||||||||
| with code comments; all code corresponds to | ||||||||||||||||||||||||
| some FDD subfunction and/or model block): [N40] | ||||||||||||||||||||||||
| Review did not identify violations of other | Yes | Comments: | ||||||||||||||||||||||
| coding standard rules | ||||||||||||||||||||||||
| Anomaly or Design Work CR created | N/A | Comments: List Anomaly or CR numbers | ||||||||||||||||||||||
| for any FDD corrections needed | ||||||||||||||||||||||||
| General Notes / Comments: | ||||||||||||||||||||||||
| Change Owner: | Krishna Anne | Review Date : | 10/16/17 | |||||||||||||||||||||
| Lead Peer Reviewer: | Shawn Penning | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||
Sheet 5: CDD_CurrMeas_MotCtrl
| Rev 1.2 | 8-Jun-15 | |||||||||||||||||||||||
| Peer Review Meeting Log (Source Code Review) | ||||||||||||||||||||||||
| Source File Name: | CDD_CurrMeas_MotCtrl.c | Source File Revision: | 3 | |||||||||||||||||||||
| Header File Name: | Header File Revision: | |||||||||||||||||||||||
| MDD Name: | CurrMeas_MDD.docx | Revision: | 2 | |||||||||||||||||||||
| FDD/SCIR/DSR/FDR/CM Name: | ES200B_CurrMeas_Design | Revision: | 2.1.0 | |||||||||||||||||||||
| Quality Check Items: | ||||||||||||||||||||||||
| Rationale is required for all answers of No | ||||||||||||||||||||||||
| Working EA4 Software Naming Convention followed: | ||||||||||||||||||||||||
| for variable names | N/A | Comments: | ||||||||||||||||||||||
| N/A for changes | ||||||||||||||||||||||||
| for constant names | N/A | Comments: | ||||||||||||||||||||||
| N/A for changes | ||||||||||||||||||||||||
| for function names | N/A | Comments: | ||||||||||||||||||||||
| N/A for changes | ||||||||||||||||||||||||
| for other names (component, memory | N/A | Comments: | ||||||||||||||||||||||
| mapping handles, typedefs, etc.) | N/A for changes | |||||||||||||||||||||||
| All paths assign a value to outputs, ensuring | Yes | Comments: | ||||||||||||||||||||||
| all outputs are initialized prior to being written | ||||||||||||||||||||||||
| Requirements Tracability tags in code match the requirements tracability in the FDD | N/A | Comments: | ||||||||||||||||||||||
| requirements tracability in the FDD | N/A for EA4 | |||||||||||||||||||||||
| All variables are declared at the function level. | Yes | Comments: | ||||||||||||||||||||||
| Synergy version matches change history | Yes | Comments: | ||||||||||||||||||||||
| and Version Control version in file comment block | ||||||||||||||||||||||||
| Change log contains detailed description of changes | Yes | Comments: | ||||||||||||||||||||||
| and Work CR number | ||||||||||||||||||||||||
| Code accurately implements FDD (Document or Model) | Yes | Comments: | ||||||||||||||||||||||
| Verified no Compiler Errors or Warnings | Yes | Comments: | ||||||||||||||||||||||
| Component.h is included | N/A | Comments: | ||||||||||||||||||||||
| All other includes are actually needed. (System includes | Yes | Comments: | ||||||||||||||||||||||
| only allowed in Nexteer library components) | ||||||||||||||||||||||||
| Software Design and Coding Standards followed: | Version: 2.1 | |||||||||||||||||||||||
| Code comments are clear, correct, and adequate | Yes | Comments: | ||||||||||||||||||||||
| and have been updated for the change: [N40] and | ||||||||||||||||||||||||
| all other rules in the same section as rule [N40], | ||||||||||||||||||||||||
| plus [N75], [N12], [N23], [N33], [N37], [N38], | ||||||||||||||||||||||||
| [N48], [N54], [N77], [N79], [N72] | ||||||||||||||||||||||||
| Source file (.c and .h) comment blocks are per | N/A | Comments: | ||||||||||||||||||||||
| standards and contain correct information: [N41], [N42] | ||||||||||||||||||||||||
| Function comment blocks are per standards and | N/A | Comments: | ||||||||||||||||||||||
| contain correct information: [N43] | N/A for changes | |||||||||||||||||||||||
| Code formatting (indentation, placement of | Yes | Comments: | ||||||||||||||||||||||
| braces, etc.) is per standards: [N5], [N55], [N56], | ||||||||||||||||||||||||
| [N57], [N58], [N59] | ||||||||||||||||||||||||
| Embedded constants used per standards; no | N/A | Comments: | ||||||||||||||||||||||
| "magic numbers": [N12] | N/A for changes | |||||||||||||||||||||||
| Memory mapping for non-RTE code | Yes | Comments: | ||||||||||||||||||||||
| is per standard | ||||||||||||||||||||||||
| All execution-order-dependent code can be | Yes | Comments: | ||||||||||||||||||||||
| recognized by the compiler: [N80] | ||||||||||||||||||||||||
| All loops have termination conditions that ensure | N/A | Comments: | ||||||||||||||||||||||
| finite loop iterations: [N63] | N/A for changes | |||||||||||||||||||||||
| All divides protect against divide by zero | N/A | Comments: | ||||||||||||||||||||||
| if needed: [N65] | N/A for changes | |||||||||||||||||||||||
| All integer division and modulus operations | N/A | Comments: | ||||||||||||||||||||||
| handle negative numbers correctly: [N76] | N/A for changes | |||||||||||||||||||||||
| All typecasting and fixed point arithmetic, | N/A | Comments: | ||||||||||||||||||||||
| including all use of fixed point macros and | N/A for changes | |||||||||||||||||||||||
| timer functions, is correct and has no possibility | ||||||||||||||||||||||||
| of unintended overflow or underflow: [N66] | ||||||||||||||||||||||||
| All float-to-unsiged conversions ensure the. | N/A | Comments: | ||||||||||||||||||||||
| float value is non-negative: [N67] | N/A for changes | |||||||||||||||||||||||
| All conversions between signed and unsigned | N/A | Comments: | ||||||||||||||||||||||
| types handle msb==1 as intended: [N78] | N/A for changes | |||||||||||||||||||||||
| All pointer dereferencing protects against | Yes | Comments: | ||||||||||||||||||||||
| null pointer if needed: [N70] | ||||||||||||||||||||||||
| Component outputs are limited to the legal range | N/A | Comments: | ||||||||||||||||||||||
| defined in the FDD DataDict.m file : [N53] | N/A for changes | |||||||||||||||||||||||
| All code is mapped with FDD (all FDD | Yes | Comments: | ||||||||||||||||||||||
| subfunctions and/or model blocks identified | ||||||||||||||||||||||||
| with code comments; all code corresponds to | ||||||||||||||||||||||||
| some FDD subfunction and/or model block): [N40] | ||||||||||||||||||||||||
| Review did not identify violations of other | Yes | Comments: | ||||||||||||||||||||||
| coding standard rules | ||||||||||||||||||||||||
| Anomaly or Design Work CR created | N/A | Comments: List Anomaly or CR numbers | ||||||||||||||||||||||
| for any FDD corrections needed | ||||||||||||||||||||||||
| General Notes / Comments: | ||||||||||||||||||||||||
| Change Owner: | Krishna Anne | Review Date : | 10/16/17 | |||||||||||||||||||||
| Lead Peer Reviewer: | Shawn Penning | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||