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
void HTMSS_Init (const HTMSS_TestCfgType* ConfigPtr);Initializes the HTMSS moduleStd_ReturnType HTMSS_StartTest (HTMSS_TestGroupType GrpId);Starts the MSTP configured testsHTMSS_TestStatusType HTMSS_GetTestStatus (HTMSS_TestGroupType GrpId, HTMSS_TestResultType* RequestTestResultPtr);Returns current test status on requested testvoid HTMSS_GetVersionInfo (Std_VersionInfoType* versioninfo);-void HTMSS_StartupTestErrorHook (void);The ECU State Manager will call the error hook if the HTMSS provided startup test results have a failure.void HTMSS_ShutdownTestErrorHook (void);The ECU State Manager will call the error hook if the HTMSS provided shutdown test results have a failure.
Typen — Übersicht
struct HTMSS_TestCfgTypeConfiguration data structure of HTMSS moduleenum HTMSS_TestGroupTypeHTMSS_ Test Group Type describes the test group type Variation --struct HTMSS_TestResultTypeIt describes the current test result Variation --enum HTMSS_TestStatusTypeHTMSS_ Test Status Type describes status of test.
Anforderungen — Übersicht
SWS_HTMSS_00011Type of error Related error code Error value A service was called prior to initialization HTMSS_ E_ NOT_ INIT 0x01 A null...SWS_HTMSS_00012Module Header File Imported Type Mcu Mcu.SWS_HTMSS_00026[SWS_HTMSS_00026]⌈ The function HTMSS_StartTest shall trigger the MSTP test operation on the requested hardware.SWS_HTMSS_00027[SWS_HTMSS_00027]⌈ The function HTMSS_StartTest shall set the HTMSS state to HTMSS_BUSY, if the MSTP status confirm that, test...SWS_HTMSS_00028[SWS_HTMSS_00028]⌈ The function HTMSS_StartTest shall handle the start up and shutdown test requests for the device under test.SWS_HTMSS_00029[SWS_HTMSS_00029]⌈ If DET for the HTMSS is enabled: the function HTMSS_StartTest shall check for valid initialization.SWS_HTMSS_00030[SWS_HTMSS_00030]⌈ up and shutdown If DET for the HTMSS is enabled: the function HTMSS_StartTest shall check for the valid...SWS_HTMSS_00031[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...SWS_HTMSS_00040Mcu _ Get Reset - Reason Mcu.SWS_HTMSS_00041Det _ Report Error Det.SWS_HTMSS_00042Name Get Test Status Comment -- Is Service true Variation -- Possible Errors 0 HTMSS_ STATUS_ OK Test status PASS 0 HTMSS_...SWS_HTMSS_91011- Variation --
Funktionen & Typen — Detailansicht
دالة HTMSS_Init [SWS_HTMSS_00014] 📄 PDF
void HTMSS_Init(const HTMSS_TestCfgType* ConfigPtr);
Initializes the HTMSS module
دالة HTMSS_StartTest [SWS_HTMSS_00025] 📄 PDF
Std_ReturnType HTMSS_StartTest(HTMSS_TestGroupType GrpId);
Starts the MSTP configured tests
دالة HTMSS_GetTestStatus [SWS_HTMSS_00032] 📄 PDF
HTMSS_TestStatusType HTMSS_GetTestStatus(HTMSS_TestGroupType GrpId, HTMSS_TestResultType* RequestTestResultPtr);
Returns current test status on requested test
دالة HTMSS_GetVersionInfo [SWS_HTMSS_00039] 📄 PDF
void HTMSS_GetVersionInfo(Std_VersionInfoType* versioninfo);
-
دالة 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...
نوع HTMSS_TestCfgType [SWS_HTMSS_91006] 📄 PDF
Configuration data structure of HTMSS module
نوع HTMSS_TestGroupType [SWS_HTMSS_91007] 📄 PDF
HTMSS_ Test Group Type describes the test group type Variation --
نوع HTMSS_TestResultType [SWS_HTMSS_91008] 📄 PDF
It describes the current test result Variation --
نوع HTMSS_TestStatusType [SWS_HTMSS_91009] 📄 PDF
HTMSS_ Test Status Type describes status of test.
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_00041 [SWS_HTMSS_00041] 📄 PDF
Det _ Report Error Det.h Service to report development errors.
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
requirement SWS_HTMSS_91011 [SWS_HTMSS_91011] 📄 PDF
- Variation --
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