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]). 이때 최하위 6개 비트가 사용됩니다([SWS_Std_00011]). - 명명 규칙: 사용자 정의 오류 값의 명명 시 BSW 지침에 따라 반드시 각 모듈 접두사를 앞에 붙여야 합니다([SWS_Std_00011]).
- RTE 예약: 비트 7과 비트 8은 예약되어 있으며, 반환 타입의 일반 레이아웃도 따르는 RTE 사양에 의해 지정됩니다([SWS_Std_00011]). 해석: 이는 하위 6비트와 함께 1바이트를 완성하는 8비트 표현의 최상위 2개 비트를 가리키는 것으로 추정됩니다. 질문 Q-d97256956c510f58 (열림)
DET 또는 DEM과 같은 특정 오류 처리 메커니즘 및 재진입성 지침은 소스에서 기본 타입 자체에 대해 정의되지 않으며, 이 타입을 반환값으로 사용하는 해당 API에 위임됩니다.
이 사용 지침은 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].
실제 사용과 관련하여 사양에는 구체적인 함수 시그니처, 매개변수 설명 또는 반환값이 포함되어 있지 않습니다. 이 구조체 타입은 데이터 변환 시 발생하는 오류를 구조화하여 전송하기 위한 통일된 데이터 컨테이너 역할을 하는 것으로 보입니다(해석). 질문 Q-6e0938f276d60fd3 (열림) 이때 errorCode 필드는 실제 숫자 오류 키를 전달하고, transformerClass은(는) 원인이 되거나 할당된 트랜스포머 클래스를 식별할 것으로 추정됩니다(해석). 질문 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]에 따라 다양한 메시지 타입을 인코딩하는 데 사용됩니다. 본 사양에서 이 인코딩은 클라이언트/서버 통신 프레임워크 내에서 요청(Request)과 응답(Response) 간의 구분으로 제한됩니다([SWS_Std_91001]).
이 데이터 타입은 기본 타입 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#11a59b4f- Content hash
11a59b4f- 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 · 독일어 원문