Standard Types (Std_Types)
Standard types, return codes (Std_ReturnType, E_OK, E_NOT_OK), version info structures, and error codes shared across the entire AUTOSAR architecture.
Typen — Übersicht
enum Std_ReturnTypeThis type can be used as standard API return type which is shared between the RTE and the BSW modules.struct Std_VersionInfoTypeThis type shall be used to request the version of a BSW module using the _ Get Version Info() function.typedef Std_TransformerError-typedef Std_TransformerClass-typedef Std_TransformerForward- Tags: atp.Status=drafttypedef Std_TransformerForwardCode- Tags: atp.Status=draftStd_MessageTypeThis type is used to encode the different type of messages.enum Std_MessageResultTypeThis type is used to encode different types of results for response messages.typedef Std_ExtractProtocolHeaderFieldsTypeType for the function pointer to extract the relevant protocol header fields of the message and the type of the message result...E_OK / E_NOT_OKBecause E_ OK is already defined within OSEK, the symbol E_ OK has to be shared.STD_HIGH / STD_LOWThe symbols STD_ HIGH and STD_ LOW shall be defined as follows: #define STD_ HIGH 0x01u /* Physical state 5V or 3.STD_ACTIVE / STD_IDLEThe symbols STD_ ACTIVE and STD_ IDLE shall be defined as follows: #define STD_ ACTIVE 0x01u /* Logical state active */...STD_ON / STD_OFFThe symbols STD_ ON and STD_ OFF shall be defined as follows: #define STD_ ON 0x01u #define STD_ OFF 0x00u
Typen — Detailansicht
टाइप Std_ReturnType [SWS_Std_00005] 📄 PDF
typedef uint8 Std_ReturnType;
This type can be used as standard API return type which is shared between the RTE and the BSW modules. It shall be defined as follows: typedef uint8 Std_ Return Type;
प्रकार Std_ReturnType API फ़ंक्शनों के लिए एक मानकीकृत रिटर्न प्रकार के रूप में कार्य करता है और RTE तथा BSW मॉड्यूल द्वारा संयुक्त रूप से उपयोग किया जाता है ([SWS_Std_00005])। यह हेडर Std_Types.h के माध्यम से उपलब्ध है और uint8 के रूप में परिभाषित है ([SWS_Std_00005])।
डिफ़ॉल्ट रूप से, Std_ReturnType को E_OK (मान 0) या E_NOT_OK (मान 1) मान सौंपे जाते हैं ([SWS_Std_00005], [SWS_Std_00011])। यदि ये दो मानक रिटर्न मान पर्याप्त नहीं हैं, तो मानक मॉड्यूल-विशिष्ट त्रुटि मानों की परिभाषा की अनुमति देता है:
-
उपयोगकर्ता त्रुटियों के लिए मान सीमा: उपयोगकर्ता-परिभाषित त्रुटि कोड के लिए,
0x02से0x3Fकी सीमा उपलब्ध है ([SWS_Std_00005])। इस प्रक्रिया में छह सबसे कम महत्वपूर्ण बिट्स (LSB) का उपयोग किया जाता है ([SWS_Std_00011])। - नामकरण परिपाटी: उपयोगकर्ता-विशिष्ट त्रुटि मानों का नामकरण करते समय, BSW विनिर्देशों के अनुसार संबंधित मॉड्यूल उपसर्ग को पहले लगाना अनिवार्य है ([SWS_Std_00011])।
- RTE आरक्षण: बिट 7 और बिट 8 आरक्षित हैं और RTE विनिर्देश द्वारा निर्दिष्ट हैं, जिसका रिटर्न प्रकार का सामान्य लेआउट भी अनुसरण करता है ([SWS_Std_00011])। Interpretation: यह संभवतः 8-बिट प्रतिनिधित्व के दो सबसे महत्वपूर्ण बिट्स (MSB) होने चाहिए, जो छह निम्न-क्रम बिट्स को एक बाइट में पूरा करते हैं। प्रश्न Q-d97256956c510f58 (खुला)
DET या DEM जैसे विशिष्ट त्रुटि प्रबंधन तंत्र और पुन: प्रवेश विनिर्देश स्रोतों में आधार प्रकार के लिए स्वयं परिभाषित नहीं हैं, बल्कि संबंधित APIs पर निर्भर करते हैं जो इस प्रकार को रिटर्न मान के रूप में उपयोग करते हैं।
यह उपयोग नोट एक AI द्वारा बनाया गया था और AUTOSAR Classic रिलीज़ R20-11 के विनिर्देशों पर आधारित है।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)
टाइप Std_VersionInfoType [SWS_Std_00015] 📄 PDF
typedef struct { uint16 vendorID; uint16 moduleID; uint8 sw_major_version; uint8 sw_minor_version; uint8 sw_patch_version; } Std_VersionInfoType;
This type shall be used to request the version of a BSW module using the
टाइप Std_TransformerError [SWS_Std_00021] 📄 PDF
typedef uint8 Std_TransformerError;
-
डेटा प्रकार Std_TransformerError आवश्यकता [SWS_Std_00021] के अनुसार AUTOSAR Classic प्लेटफ़ॉर्म के लिए हेडर फ़ाइल Std_Types.h के माध्यम से एक मानकीकृत प्रकार के रूप में प्रदान किया जाता है। संरचनात्मक रूप से, विनिर्देश में तत्व को एक संरचना (Structure) के रूप में परिभाषित किया गया है और यह दो घटकों से बना है: आधार प्रकार uint8 के साथ तत्व errorCode और प्रकार Std_TransformerClass के साथ तत्व transformerClass [SWS_Std_00021]।
व्यावहारिक उपयोग के संबंध में, विनिर्देश में कोई विशिष्ट फ़ंक्शन हस्ताक्षर, पैरामीटर विवरण या रिटर्न मान शामिल नहीं हैं। संरचना प्रकार संभवतः डेटा के रूपांतरण के दौरान होने वाली त्रुटियों के संरचित संचरण के लिए एक समान डेटा कंटेनर के रूप में कार्य करता है (Interpretation)। प्रश्न Q-6e0938f276d60fd3 (खुला) इस मामले में, फ़ील्ड errorCode वास्तविक संख्यात्मक त्रुटि कुंजी ले जाने की संभावना रखता है, जबकि transformerClass संबंधित ट्रांसफ़ॉर्मर वर्ग की पहचान करता है (Interpretation)। प्रश्न Q-d8806698683ec00e (खुला)
DET या DEM संदेशों जैसे त्रुटि प्रबंधन के लिए विशिष्ट तंत्र [SWS_Std_00021] में परिभाषित नहीं हैं। स्रोत सामग्री में समवर्तीता, पुन: प्रवेश, या तुल्यकालिक अथवा अतुल्यकालिक सिमेंटिक्स पर विनिर्देशों का भी अभाव है। चूँकि यह Std_Types.h में एक शुद्ध प्रकार परिभाषा है, प्रकार स्वयं किसी भी रनटाइम प्रतिबंध के अधीन नहीं है; ये केवल लागू करने वाले मॉड्यूल के संबंधित संदर्भ से उत्पन्न होते हैं।
यह पाठ AUTOSAR विनिर्देश R20-11 के आधार पर AI द्वारा उत्पन्न किया गया था।
टाइप Std_TransformerClass [SWS_Std_00024] 📄 PDF
typedef uint8 Std_TransformerClass;
-
टाइप Std_TransformerForward [SWS_Std_00027] 📄 PDF
typedef uint8 Std_TransformerForward;
- Tags: atp.Status=draft
टाइप Std_TransformerForwardCode [SWS_Std_00029] 📄 PDF
typedef uint8 Std_TransformerForwardCode;
- Tags: atp.Status=draft
टाइप Std_MessageType [SWS_Std_91001] 📄 PDF
This type is used to encode the different type of messages. - Currently this encoding is limited to the distinction between requests and responses in C/ S c ommunication.
मानक प्रकार Std_MessageType का उपयोग [SWS_Std_91001] के अनुसार विभिन्न संदेश प्रकारों को कोड करने के लिए किया जाता है। वर्तमान विनिर्देश में, यह कोडिंग क्लाइंट/सर्वर संचार ([SWS_Std_91001]) के संदर्भ में अनुरोधों (Requests) और प्रतिक्रियाओं (Responses) के बीच अंतर करने तक सीमित है।
डेटा प्रकार बेस प्रकार uint8 से लिया गया है और सॉफ़्टवेयर घटकों के साथ-साथ बेसिक सॉफ़्टवेयर मॉड्यूल को हेडर फ़ाइल Std_Types.h ([SWS_Std_91001]) के माध्यम से प्रदान किया जाता है। असाइनमेंट और मूल्यांकन के लिए निम्नलिखित मान और स्थिरांक निर्दिष्ट हैं:
STD_MESSAGETYPE_REQUEST(मान0x00): अनुरोध संदेश को इंगित करता है ([SWS_Std_91001])।STD_MESSAGETYPE_RESPONSE(मान0x01): प्रतिक्रिया संदेश को इंगित करता है ([SWS_Std_91001])।- मान सीमा
0x02से0x3F: यह सीमा भविष्य के संदेश प्रकारों के लिए आरक्षित है ([SWS_Std_91001])।
अनुप्रयोग और सीमा स्थितियों के संबंध में, कार्यान्वयन करने वाले मॉड्यूल को केवल परिभाषित पहचानकर्ताओं का उपयोग करना चाहिए। चूँकि 0x02 से 0x3F तक के मान भविष्य के AUTOSAR विस्तारों के लिए आरक्षित हैं, इसलिए उन्हें अन्य उद्देश्यों के लिए मनमाने ढंग से असाइन नहीं किया जाना चाहिए ([SWS_Std_91001])। विनिर्देश में इस डेटा प्रकार के लिए विशिष्ट त्रुटि कोड, रिटर्न मान, अतुल्यकालिक प्रक्रियाएँ या DET या DEM को संदेश परिभाषित नहीं हैं ([SWS_Std_91001])।
यह पाठ एक AI क्युरेशन सहायक द्वारा तैयार किया गया था और AUTOSAR R20-11 के विनिर्देश पर आधारित है।
टाइप Std_MessageResultType [SWS_Std_91002] 📄 PDF
typedef uint8 Std_MessageResultType;
This type is used to encode different types of results for response messages. - Currently this encoding is limited to the distinction between OK and ERROR responses.
मौलिक डेटा प्रकार Std_MessageResultType AUTOSAR Classic प्लेटफ़ॉर्म में प्रतिक्रिया संदेशों (Response Messages) के लिए विभिन्न परिणाम प्रकारों को एन्कोड करने का कार्य करता है [SWS_Std_00019]। प्रकार मानक हेडर फ़ाइल Std_Types.h के माध्यम से प्रदान किया जाता है और इसे uint8 के आधार पर एक स्केलर प्रकार के रूप में परिभाषित किया गया है [SWS_Std_91002]।
उपयोग और मान श्रेणी
विनिर्देश प्रतिक्रिया संदेशों के मानकीकृत अंकन के लिए Std_MessageResultType के उपयोग की मांग करता है [SWS_Std_00019]। वर्तमान में, इस एन्कोडिंग का अभीष्ट कार्यात्मक दायरा सफल और त्रुटिपूर्ण प्रतिक्रियाओं के बीच बुनियादी अंतर तक ही सीमित है [SWS_Std_91002]। इसके लिए निम्नलिखित निश्चित परिणाम मान परिभाषित हैं:
STD_MESSAGERESULT_OK(मान0x00): किसी प्रतिक्रिया संदेश के नियमित, त्रुटि-मुक्त परिणाम को दर्शाता है [SWS_Std_91002]।STD_MESSAGERESULT_ERROR(मान0x01): किसी त्रुटिपूर्ण प्रतिक्रिया संदेश (Error Response) के परिणाम को संकेतित करता है [SWS_Std_91002]।
सीमाएं और भविष्य के विस्तार
0x02 से 0x3F तक की मान सीमा स्पष्ट रूप से भविष्य के संदेश परिणामों के लिए आरक्षित है [SWS_Std_91002]। व्याख्या: चूंकि विनिर्देश वर्तमान में कोई अन्य मान्य रिटर्न मान प्रदान नहीं करता है, इसलिए मूल्यांकन मॉड्यूल को इस सीमा में अप्रत्याशित या अभी तक अनिर्धारित मानों को सुरक्षित रूप से संभालने के लिए रक्षात्मक रूप से प्रोग्राम किया जाना चाहिए [SWS_Std_00019]। प्रश्न Q-5f652f73800b7d94 (खुला)
यह पाठ एक AI द्वारा तैयार किया गया था और डेवलपर्स के लिए AUTOSAR विनिर्देश के प्रावधानों को सारांशित करता है।
टाइप Std_ExtractProtocolHeaderFieldsType [SWS_Std_91003] 📄 PDF
typedef Std_ReturnType (* Std_ExtractProtocolHeaderFieldsType)(const uint8* buffer, uint32 bufferLength, Std_MessageTypeType* messageType, Std_MessageResultType* messageResult);
Type for the function pointer to extract the relevant protocol header fields of the message and the type of the message result of a transformer. - At the time being, this is limited to the types used for C/ S communication (i.e., REQUE ST and RESPONSE and OK and ERROR).
टाइप E_OK / E_NOT_OK [SWS_Std_00006] 📄 PDF
#define E_OK 0x00u #define E_NOT_OK 0x01u
Because E_ OK is already defined within OSEK, the symbol E_ OK has to be shared. To avoid name clashes and redefinition problems, the symbols have to be defined in the following way (approved within implementation): #ifndef STATUSTYPEDEFINED #define STATUSTYPEDEFINED #define E_ OK 0x00u typedef unsigned char Status Type; /* OSEK compliance */ #endif #define E_ NOT_ OK 0x01u
टाइप STD_HIGH / STD_LOW [SWS_Std_00007] 📄 PDF
#define STD_HIGH 0x01u #define STD_LOW 0x00u
The symbols STD_ HIGH and STD_ LOW shall be defined as follows: #define STD_ HIGH 0x01u /* Physical state 5V or 3.3V */ #define STD_ LOW 0x00u /* Physical state 0V */
टाइप STD_ACTIVE / STD_IDLE [SWS_Std_00013] 📄 PDF
#define STD_ACTIVE 0x01u #define STD_IDLE 0x00u
The symbols STD_ ACTIVE and STD_ IDLE shall be defined as follows: #define STD_ ACTIVE 0x01u /* Logical state active */ #define STD_ IDLE 0x00u /* Logical state idle */
टाइप STD_ON / STD_OFF [SWS_Std_00010] 📄 PDF
#define STD_ON 0x01u #define STD_OFF 0x00u
The symbols STD_ ON and STD_ OFF shall be defined as follows: #define STD_ ON 0x01u #define STD_ OFF 0x00u
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_Std- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_Std@rel:R20-11#6f6327da- Content hash
6f6327da- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_StandardTypes.pdf#nameddest=SWS_Std_00005
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल