2 * Copyright (c) 2018 TOYOTA MOTOR CORPORATION
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "stm_inner.h"
21 const char* kStmEventName[] = {
26 "trans_gear_not_neutral",
33 "lightstatus_brake_off",
34 "lightstatus_brake_on",
35 "restriction_mode_off",
36 "restriction_mode_on",
40 const char* kStmCategoryName[] = {
59 const char* kStmAreaName[] = {
67 "restriction.split.main",
68 "restriction.split.sub",
73 const char* kStmLayoutName[] = {
85 "restriction.split.main",
86 "restriction.split.sub",
102 const char* kStmLayerName[] = {
111 const char* kStmCarElementName[] = {
121 const char* kStmTransGearStateName[] = {
126 const char* kStmParkingBrakeStateName[] = {
131 const char* kStmAccelPedalStateName[] = {
136 const char* kStmRunningSttNo2Name[] = {
141 const char* kStmLampStateName[] = {
146 const char* kStmLightstatusBrakeStateName[] = {
151 const char* kStmRestrictionModeStateName[] = {
156 const char** kStmCarElementStateNameList[] = {
157 kStmTransGearStateName,
158 kStmParkingBrakeStateName,
159 kStmAccelPedalStateName,
160 kStmRunningSttNo2Name,
162 kStmLightstatusBrakeStateName,
163 kStmRestrictionModeStateName,
166 void stmInitialize(const char *ecu_name) {
167 stmInitializeInner(ecu_name);
170 int stmTransitionState(int event, StmState* state) {
171 return stmTransitionStateInner(event, state);
174 void stmUndoState() {