DEENESPTFRRUARHIKOZHNL

HW Test Manager on Startup and Shutdown (HTMSS)

ModulHTMSS (HW Test Manager on Startup and Shutdown)
BSW-Modul-ID17
Standard-Header#include "HTMSS.h"
SWS-SpezifikationAUTOSAR_CP_SWS_HWTestManager.pdf, AUTOSAR_SWS_HWTestManager.pdf
Umfang22 Records · 2 Snippets
ClusterSystemdienste

HW Test Manager on Startup and Shutdown (HTMSS)

AUTOSAR Classic System Services-Modul HW Test Manager on Startup and Shutdown (HTMSS, Spezifikation: AUTOSAR_CP_SWS_HWTestManager.pdf, AUTOSAR_SWS_HWTestManager.pdf).

Funktionen — Übersicht

Typen — Übersicht

Anforderungen — Übersicht

Funktionen & Typen — Detailansicht

دالة HTMSS_Init [SWS_HTMSS_00014] 📄 PDF

void HTMSS_Init(const HTMSS_TestCfgType* ConfigPtr);

Initializes the HTMSS module

دالة HTMSS_GetTestStatus [SWS_HTMSS_00032] 📄 PDF

HTMSS_TestStatusType HTMSS_GetTestStatus(HTMSS_TestGroupType GrpId, HTMSS_TestResultType* RequestTestResultPtr);

Returns current test status on requested test

دالة HTMSS_StartupTestErrorHook [SWS_HTMSS_00043] 📄 PDF

void HTMSS_StartupTestErrorHook(void);

The ECU State Manager will call the error hook if the HTMSS provided startup test results have a failure. In this situation, the integrator has to control the CPU processing based on the system requirements, i.e. reset, safe state etc...

دالة HTMSS_ShutdownTestErrorHook [SWS_HTMSS_00044] 📄 PDF

void HTMSS_ShutdownTestErrorHook(void);

The ECU State Manager will call the error hook if the HTMSS provided shutdown test results have a failure. In this situation, the integrator has to control the CPU processing based on the system requirements, i.e. reset, safe state etc...

requirement SWS_HTMSS_00011 [SWS_HTMSS_00011] 📄 PDF

Type of error Related error code Error value A service was called prior to initialization HTMSS_ E_ NOT_ INIT 0x01 A null pointer was passed as an argument HTMSS_ E_ NULL_ POINTER 0x02 A parameter was invalid (unspecific) HTMSS_ E_ PARAM_ INVALID 0x03 Function called when test request is running HTMSS_ E_ BUSY 0x04

requirement SWS_HTMSS_00012 [SWS_HTMSS_00012] 📄 PDF

Module Header File Imported Type Mcu Mcu.h Mcu _ Reset Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

requirement SWS_HTMSS_00026 [SWS_HTMSS_00026] 📄 PDF

[SWS_HTMSS_00026]⌈ The function HTMSS_StartTest shall trigger the MSTP test operation on the requested hardware. If this is successful, E_OK shall be returned. ⌋ (SRS_HTMSS_00006)

requirement SWS_HTMSS_00027 [SWS_HTMSS_00027] 📄 PDF

[SWS_HTMSS_00027]⌈ The function HTMSS_StartTest shall set the HTMSS state to HTMSS_BUSY, if the MSTP status confirm that, test trigger is successful. ⌋ (SRS_HTMSS_00006)

requirement SWS_HTMSS_00028 [SWS_HTMSS_00028] 📄 PDF

[SWS_HTMSS_00028]⌈ The function HTMSS_StartTest shall handle the start up and shutdown test requests for the device under test. Hint: The interface between HTMSS and the MSTP module is implementation specific. Because the semi manufacturer may define the method of interacting with MSTP module for the device.⌋ (SRS_HTMSS_00006)

requirement SWS_HTMSS_00029 [SWS_HTMSS_00029] 📄 PDF

[SWS_HTMSS_00029]⌈ If DET for the HTMSS is enabled: the function HTMSS_StartTest shall check for valid initialization. In case of failure HTMSS_StartTest shall raise the development error HTMSS_E_NOT_INIT and return E_NOT_OK. ⌋()

requirement SWS_HTMSS_00030 [SWS_HTMSS_00030] 📄 PDF

[SWS_HTMSS_00030]⌈ up and shutdown If DET for the HTMSS is enabled: the function HTMSS_StartTest shall check for the valid input parameter. In case of an error, HTMSS_StartTest shall raise the development error HTMSS_E_PARAM_INVALID and return E_NOT_OK. ⌋()

requirement SWS_HTMSS_00031 [SWS_HTMSS_00031] 📄 PDF

[SWS_HTMSS_00031]⌈ If DET for the HTMSS is enabled: when called while a start request is already in place, is not in the state HTMSS_IDLE, the function HTMSS_StartTest shall raise the development error HTMSS_E_BUSY and return E_NOT_OK. ⌋()

requirement SWS_HTMSS_00040 [SWS_HTMSS_00040] 📄 PDF

Mcu _ Get Reset - Reason Mcu.h The service reads the reset type from the hardware, if supported.

requirement SWS_HTMSS_00042 [SWS_HTMSS_00042] 📄 PDF

Name Get Test Status Comment -- Is Service true Variation -- Possible Errors 0 HTMSS_ STATUS_ OK Test status PASS 0 HTMSS_ STATUS_ NOK Test status FAIL 0 HTMSS_ STATUS_ UNINIT Test status is not initialized 0 HTMSS_ STATUS_ INVALID Test status is Invalid Operation Get Test Status Comment Returns current test status on requested test Mapped to API H T M S S _ Get Test Status Variation -- Parameters Grp Id Type H T M S S _ Test Group Type Direction IN Comment The test group type (e.g. start up or shutdown) Variation -- Request Test Result Ptr Type H T M S S _ Test Result Type Direction OUT Comment Pointer to provide Test results along with Test Variation -- Possible Errors H T M S S _ S T A T U S _ O K H T M S S _ S T A T U S _ N O K H T M S S _ S T A T U S _ I N V A L I D H T M S S _ S T A T U S _ U N I N I T

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/CP_MOD_HTMSS
Status
unspecified
Version
AUTOSAR/AP/record/CP_MOD_HTMSS@rel:R20-11#52641544
Content hash
52641544
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_HWTestManager.pdf#nameddest=SWS_HTMSS_00014

التهيئة والحالة

-

void HTMSS_GetVersionInfo(Std_VersionInfoType* versioninfo);
HTMSS_Init دالة

Initializes the HTMSS module

void HTMSS_Init(const HTMSS_TestCfgType* ConfigPtr);

الخدمات

The ECU State Manager will call the error hook if the HTMSS provided shutdown test results have a failure. In this situation, the integrator has to control the CPU processing based on the system requirements, i.e. reset, safe state etc...

void HTMSS_ShutdownTestErrorHook(void);

Starts the MSTP configured tests

Std_ReturnType HTMSS_StartTest(HTMSS_TestGroupType GrpId);

The ECU State Manager will call the error hook if the HTMSS provided startup test results have a failure. In this situation, the integrator has to control the CPU processing based on the system requirements, i.e. reset, safe state etc...

void HTMSS_StartupTestErrorHook(void);

Returns current test status on requested test

HTMSS_TestStatusType HTMSS_GetTestStatus(HTMSS_TestGroupType GrpId, HTMSS_TestResultType* RequestTestResultPtr);

الأنواع

Configuration data structure of HTMSS module

HTMSS_ Test Group Type describes the test group type Variation --

It describes the current test result Variation --

HTMSS_ Test Status Type describes status of test.

المتطلبات

SWS_HTMSS_00011 requirement

Type of error Related error code Error value A service was called prior to initialization HTMSS_ E_ NOT_ INIT 0x01 A null pointer was passed as an argument HTMSS_ E_ NULL_ POINTER 0x02 A parameter was invalid (unspecific) HTMSS_ E_ PARAM_ INVALID 0x03 Function called when test request is running HTMSS_ E_ BUSY 0x04

SWS_HTMSS_00012 requirement

Module Header File Imported Type Mcu Mcu.h Mcu _ Reset Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

SWS_HTMSS_00026 requirement

[SWS_HTMSS_00026]⌈ The function HTMSS_StartTest shall trigger the MSTP test operation on the requested hardware. If this is successful, E_OK shall be returned. ⌋ (SRS_HTMSS_00006)

SWS_HTMSS_00027 requirement

[SWS_HTMSS_00027]⌈ The function HTMSS_StartTest shall set the HTMSS state to HTMSS_BUSY, if the MSTP status confirm that, test trigger is successful. ⌋ (SRS_HTMSS_00006)

SWS_HTMSS_00028 requirement

[SWS_HTMSS_00028]⌈ The function HTMSS_StartTest shall handle the start up and shutdown test requests for the device under test. Hint: The interface between HTMSS and the MSTP module is implementation specific. Because the semi manufacturer may define the method of interacting with MSTP module for the device.⌋ (SRS_HTMSS_00006)

SWS_HTMSS_00029 requirement

[SWS_HTMSS_00029]⌈ If DET for the HTMSS is enabled: the function HTMSS_StartTest shall check for valid initialization. In case of failure HTMSS_StartTest shall raise the development error HTMSS_E_NOT_INIT and return E_NOT_OK. ⌋()

SWS_HTMSS_00030 requirement

[SWS_HTMSS_00030]⌈ up and shutdown If DET for the HTMSS is enabled: the function HTMSS_StartTest shall check for the valid input parameter. In case of an error, HTMSS_StartTest shall raise the development error HTMSS_E_PARAM_INVALID and return E_NOT_OK. ⌋()

SWS_HTMSS_00031 requirement

[SWS_HTMSS_00031]⌈ If DET for the HTMSS is enabled: when called while a start request is already in place, is not in the state HTMSS_IDLE, the function HTMSS_StartTest shall raise the development error HTMSS_E_BUSY and return E_NOT_OK. ⌋()

SWS_HTMSS_00040 requirement

Mcu _ Get Reset - Reason Mcu.h The service reads the reset type from the hardware, if supported.

SWS_HTMSS_00041 requirement

Det _ Report Error Det.h Service to report development errors.

SWS_HTMSS_00042 requirement

Name Get Test Status Comment -- Is Service true Variation -- Possible Errors 0 HTMSS_ STATUS_ OK Test status PASS 0 HTMSS_ STATUS_ NOK Test status FAIL 0 HTMSS_ STATUS_ UNINIT Test status is not initialized 0 HTMSS_ STATUS_ INVALID Test status is Invalid Operation Get Test Status Comment Returns current test status on requested test Mapped to API H T M S S _ Get Test Status Variation -- Parameters Grp Id Type H T M S S _ Test Group Type Direction IN Comment The test group type (e.g. start up or shutdown) Variation -- Request Test Result Ptr Type H T M S S _ Test Result Type Direction OUT Comment Pointer to provide Test results along with Test Variation -- Possible Errors H T M S S _ S T A T U S _ O K H T M S S _ S T A T U S _ N O K H T M S S _ S T A T U S _ I N V A L I D H T M S S _ S T A T U S _ U N I N I T

SWS_HTMSS_91011 requirement

- Variation --