1/*
2 * File: ObstacleDetection_sil_sil_ec.h
3 *
4 * Code generated for Simulink model 'ObstacleDetection_sil_sil_ec'.
5 *
6 * Model version : 1.2
7 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
8 * C/C++ source code generated on : Tue Oct 29 09:35:36 2019
9 *
10 * Target selection: ert.tlc
11 * Embedded hardware selection: Intel->x86-64 (Windows64)
12 * Code generation objectives:
13 * 1. Execution efficiency
14 * 2. RAM efficiency
15 * Validation result: Not run
16 */
17
18#ifndef RTW_HEADER_ObstacleDetection_sil_sil_ec_h_
19#define RTW_HEADER_ObstacleDetection_sil_sil_ec_h_
20#include "rtwtypes.h"
21#ifndef ObstacleDetection_sil_sil_ec_COMMON_INCLUDES_
22# define ObstacleDetection_sil_sil_ec_COMMON_INCLUDES_
23#include "rtwtypes.h"
24#endif /* ObstacleDetection_sil_sil_ec_COMMON_INCLUDES_ */
25
26/* Macros for accessing real-time model data structure */
27#ifndef rtmGetErrorStatus
28# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
29#endif
30
31#ifndef rtmSetErrorStatus
32# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
33#endif
34
35/* Forward declaration for rtModel */
36typedef struct tag_RTM_ObstacleDetection_sil_T RT_MODEL_ObstacleDetection_si_T;
37
38/* Block signals and states (default storage) for system '<Root>' */
39typedef struct {
40 boolean_T Memory_PreviousInput; /* '<S3>/Memory' */
41} DW_ObstacleDetection_sil_sil__T;
42
43/* External inputs (root inport signals with default storage) */
44typedef struct {
45 int8_T remoteCtrlCmd; /* '<Root>/remoteCtrlCmd' */
46 int8_T usSensorFront; /* '<Root>/usSensorFront' */
47} ExtU_ObstacleDetection_sil_si_T;
48
49/* External outputs (root outports fed by signals with default storage) */
50typedef struct {
51 boolean_T emergencyStopObstacle; /* '<Root>/emergencyStopObstacle' */
52 boolean_T obstacleDetection; /* '<Root>/obstacleDetection' */
53} ExtY_ObstacleDetection_sil_si_T;
54
55/* Parameters (default storage) */
56struct P_ObstacleDetection_sil_sil_e_T_ {
57 real_T DIST_OBSTACLE_EVADE; /* Variable: DIST_OBSTACLE_EVADE
58 * Referenced by: '<S1>/Constant2'
59 */
60 real_T DIST_OBSTACLE_STOP; /* Variable: DIST_OBSTACLE_STOP
61 * Referenced by: '<S1>/Constant1'
62 */
63 real_T REMOTE_DRIVE_REV; /* Variable: REMOTE_DRIVE_REV
64 * Referenced by: '<S1>/Constant3'
65 */
66 boolean_T S_R_Flip_Flop_initial_condition;/* Mask Parameter: S_R_Flip_Flop_initial_condition
67 * Referenced by: '<S3>/Memory'
68 */
69 boolean_T Logic_table[16]; /* Computed Parameter: Logic_table
70 * Referenced by: '<S3>/Logic'
71 */
72};
73
74/* Parameters (default storage) */
75typedef struct P_ObstacleDetection_sil_sil_e_T_ P_ObstacleDetection_sil_sil_e_T;
76
77/* Real-time Model Data Structure */
78struct tag_RTM_ObstacleDetection_sil_T {
79 const char_T * volatile errorStatus;
80};
81
82/* Block parameters (default storage) */
83extern P_ObstacleDetection_sil_sil_e_T ObstacleDetection_sil_sil_ec_P;
84
85/* Block signals and states (default storage) */
86extern DW_ObstacleDetection_sil_sil__T ObstacleDetection_sil_sil_ec_DW;
87
88/* External inputs (root inport signals with default storage) */
89extern ExtU_ObstacleDetection_sil_si_T ObstacleDetection_sil_sil_ec_U;
90
91/* External outputs (root outports fed by signals with default storage) */
92extern ExtY_ObstacleDetection_sil_si_T ObstacleDetection_sil_sil_ec_Y;
93
94/* Model entry point functions */
95extern void ObstacleDetection_sil_sil_ec_initialize(void);
96extern void ObstacleDetection_sil_sil_ec_step(void);
97extern void ObstacleDetection_sil_sil_ec_terminate(void);
98
99/* Real-time Model object */
100extern RT_MODEL_ObstacleDetection_si_T *const ObstacleDetection_sil_sil_ec_M;
101
102/*-
103 * The generated code includes comments that allow you to trace directly
104 * back to the appropriate location in the model. The basic format
105 * is <system>/block_name, where system is the system number (uniquely
106 * assigned by Simulink) and block_name is the name of the block.
107 *
108 * Note that this particular code originates from a subsystem build,
109 * and has its own system numbers different from the parent model.
110 * Refer to the system hierarchy for this subsystem below, and use the
111 * MATLAB hilite_system command to trace the generated code back
112 * to the parent model. For example,
113 *
114 * hilite_system('Frame_Obst_ec/ObstacleDetection_sil_sil_ec') - opens subsystem Frame_Obst_ec/ObstacleDetection_sil_sil_ec
115 * hilite_system('Frame_Obst_ec/ObstacleDetection_sil_sil_ec/Kp') - opens and selects block Kp
116 *
117 * Here is the system hierarchy for this model
118 *
119 * '<Root>' : 'Frame_Obst_ec'
120 * '<S1>' : 'Frame_Obst_ec/ObstacleDetection_sil_sil_ec'
121 * '<S2>' : 'Frame_Obst_ec/ObstacleDetection_sil_sil_ec/Model_Info'
122 * '<S3>' : 'Frame_Obst_ec/ObstacleDetection_sil_sil_ec/S_R_Flip_Flop'
123 */
124#endif /* RTW_HEADER_ObstacleDetection_sil_sil_ec_h_ */
125
126/*
127 * File trailer for generated code.
128 *
129 * [EOF]
130 */
131