advertisement
ETAS Internal Behavior
Figure 40 : Definition of the timing event Cyclic_10ms
Note that ASCET enables the user to specify the modes in which this timing event shall be
activated. For the use of application modes refer to chapter 9,
Modes
When the timing event is mapped to a runnable entity (see section 8.2,
Runnable Entities
, on page 108), then ASCET generates the
<TIMING-EVENT> element in the configuration language:
Listing 60: ARXML code – definition of a timing event (all AUTOSAR versions)
A timing event must be named using the <SHORT-NAME> element. The name is used within other elements to reference the timing event. The short-name of a timing event does not need to be a valid C identifier.
The <START-ON-EVENT-REF DEST="RUNNABLE-ENTITY"> element defines the runnable entity that is to be activated when the event occurs. The <PERIOD> element specifies the time raster in seconds to be used by the RTE generator.
8.1.2
Operation-Invoked Events
Operation-Invoked events are automatically inserted in an ASCET software component when
you create a server port (see section 7.1.1,
server port).
Provided Ports
, on page 88 for how to create a
ASCET V6.3 AUTOSAR User’s Guide 104
ETAS Internal Behavior
Figure 41 : Operation-Invoked event for the server operations MaximumVal and
Notification
An Operation-Invoked event is defined using the <OPERATION-INVOKED-EVENT> element.
Each <OPERATION-INVOKED-EVENT> element must specify:
the <SHORT-NAME> to refer to the event, which can be edited manually in ASCET by the user
a <START-ON-EVENT-REF DEST="RUNNABLE-ENTITY"> reference to the runnable entity
an <OPERATION-IREF> reference to the operation prototype and server port
The Operation-Invoked event for the operation MaximumValue is defined in the configuration language as follows:
Listing 61: ARXML code – definition of an Operation-Invoked event (AUTOSAR R3.1.2)
ASCET V6.3 AUTOSAR User’s Guide 105
advertisement
Related manuals
advertisement
Table of contents
- 13 Introduction
- 13 Safety Advice
- 13 Correct Use
- 13 Labeling of Safety Instructions
- 13 Demands on the Technical State of the Product
- 14 System Information
- 14 User Information
- 14 User Profile
- 14 Document Structure
- 15 How to use this Manual
- 16 Related Documents
- 16 Definitions and Abbreviations
- 18 AUTOSAR Overview
- 18 AUTOSAR Basic Approach
- 19 What is an AUTOSAR Authoring Tool?
- 20 What is a Runtime Environment?
- 21 What is a Behavior Modeling Tool?
- 22 Developing Software Components in ASCET
- 22 Configuring ASCET
- 22 Configuring the Creation of AUTOSAR Components
- 22 Code Generation Settings for AUTOSAR
- 25 Settings for the AUTOSAR XML Output
- 26 Code Generation
- 28 Approaches for Creating Software Components
- 28 Top-Down Approach
- 30 Bottom-Up Approach
- 30 Working with the RTE Generator
- 31 Contract Phase
- 31 RTE Phase
- 33 Data Types (AUTOSAR R3.1.5 or Lower)
- 33 BSW Types
- 33 Primitive Data Types
- 36 Primitive Data Types With Semantics
- 39 Complex Types
- 39 Record Types
- 43 Array Types
- 45 Data Types (AUTOSAR R4.0.*)
- 45 Application Data Types
- 45 Implementation Data Types
- 45 Type Mappings
- 46 Platform Types
- 47 Base Types
- 47 Examples
- 47 Primitive Data Type
- 50 Enumeration Type (Primitive Data Type with Semantics)
- 52 Record Type (Complex Types)
- 58 Array Type (Complex Types)
- 62 Interfaces
- 62 Sender-Receiver
- 64 Data Element Prototypes
- 67 Mode Switch
- 71 Client-Server
- 72 Operations
- 79 Calibration
- 80 Calibration Parameters
- 84 NVData (AUTOSAR R4.0.* only)
- 85 Variable Data Prototypes
- 87 Software Component Types
- 88 Ports
- 88 Provided Ports
- 93 Required Ports
- 101 Internal Behavior
- 102 Events
- 103 Timing Events
- 104 Operation-Invoked Events
- 106 Mode-Switch Events
- 108 Runnable Entities
- 110 Responding to Timing Events
- 111 Sending to a Port
- 111 Explicit Communication
- 113 Implicit Communication
- 115 Receiving from a Port
- 116 Explicit Data Read Access
- 118 Implicit Data Read Access
- 120 Responding to a Server Request on a Port
- 122 Concurrent Invocation of Servers
- 124 Making a Client Request on a Port
- 126 Interrunnable Variables
- 126 Scalar Interrunnable Variables
- 128 Complex Interrunnable Variables (AUTOSAR R4.0.* only)
- 129 Read and Write Access
- 132 Exclusive Areas
- 132 New Since ASCET V
- 132 Configuration
- 134 Usage
- 136 Modes
- 136 Defining Modes
- 137 Mode Communication
- 138 Using Modes
- 139 Software Component Initialization and Finalization
- 139 Triggering a Runnable Entity on a Mode-Switch
- 141 Disabling Modes
- 144 Implementing Software Components
- 144 Basic Concepts
- 144 Namespace
- 144 Runnable Naming Convention
- 144 API Naming Convention
- 145 API Parameter Passing Mechanisms
- 145 Application Source Code
- 145 Application Header Files
- 146 Entry Point Signature for Runnable Entities
- 147 Sender-Receiver Communication
- 148 Sending to a Port
- 151 Receiving from a Port
- 154 Client-Server Communication
- 155 Implementing a Server Operation
- 156 Making a Client Request on a Port
- 157 Accessing Calibration Parameters
- 161 Accessing ASCET Messages
- 165 Concurrency Control with Exclusive Areas
- 166 Sequences of a Runnable Assigned to an Exclusive Area
- 168 ETAS Contact Addresses
- 169 software
- 172 : Enable creation of AUTOSAR components
- 173 : Project settings for AUTOSAR projects