Data Types
The RXF uses AUTOSAR defined data types, which are defined in
WSTCompilerTypes.h which is located in the directory
<Rhapsody>\Share\WST_RXF_V5\<your product>\Source and <your path on Linux>/<product>/Source
These types are: sint8, uint8, sint16, uint16, sint32, uint32,
float32, float64, uint8_least, uint16_least, uint32_least, sint8_least,
sint16_least and sint32_least.
In some cases, one or more of these types are also defined by your
toolchain or (third party) include files. To circumvent conflicts, you
can disable the type definitions in WSTCompilerTypes.h. We use a test
using a constant, for example:
#ifndef AUTOSAR_SINT16_DEFINED
#define AUTOSAR_SINT16_DEFINED
typedef signed short sint16; /* -32768 .. +32767 */
#endif
When you do not want to use such type definition in WSTCompilerTypes.h, you can do this in three ways:
- define AUTOSAR_SINT16_DEFINED at the Property CppCompileSwitches using -DAUTOSAR_SINT16_DEFINED which will be inserted in a generated RxfConstants.h
- define AUTOSAR_SINT16_DEFINED in the (third party) include file where the same type is defined
- define AUTOSAR_SINT16_DEFINED in the file WST.h which is installed in <Rhapsody>\Share\WST_RXF_V5\<your product>\Source and <your path on Linux>/<product>/Source
You can use the following defines to prevent a corresponding type definition:
- AUTOSAR_SINT8_DEFINED
- AUTOSAR_UINT8_DEFINED
- AUTOSAR_SINT16_DEFINED
- AUTOSAR_UINT16_DEFINED
- AUTOSAR_SINT32_DEFINED
- AUTOSAR_UINT32_DEFINED
- AUTOSAR_FLOAT32_DEFINED
- AUTOSAR_FLOAT64_DEFINED
- AUTOSAR_UINT8_LEAST_DEFINED
- AUTOSAR_UINT16_LEAST_DEFINED
- AUTOSAR_UINT32_LEAST_DEFINED
- AUTOSAR_SINT8_LEAST_DEFINED
- AUTOSAR_SINT16_LEAST_DEFINED
- AUTOSAR_SINT32_LEAST_DEFINED.
Copyright (c) Willert
Software Tools GmbH. All rights reserved.