blob: 9bcdfe8f86a9262b98bb1bae3271eb2403aac96e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/*
This program is part of the TACLeBench benchmark suite.
Version V 1.x
Name: powerwindow_PW_Control_PSG_Front.h
Author: CoSys-Lab, University of Antwerp
Function: headerfile
Source: https://github.com/tacle/tacle-bench/blob/master/bench/app/PowerWindow/powerwindow_HeaderFiles/powerwindow_PW_Control_PSG_Front.h
Changes: a brief summary of major functional changes and formatting)
License: GNU General Public License
*/
#ifndef powerwindow_RTW_HEADER_PW_Control_PSG_Front_h_
#define powerwindow_RTW_HEADER_PW_Control_PSG_Front_h_
#ifndef powerwindow_PW_Control_PSG_Front_COMMON_INCLUDES_
# define powerwindow_PW_Control_PSG_Front_COMMON_INCLUDES_
#include "../powerwindow_HeaderFiles/powerwindow_rtwtypes.h"
#include "../powerwindow_HeaderFiles/powerwindow_rtw_solver.h"
#endif /* powerwindow_PW_Control_PSG_Front_COMMON_INCLUDES_*/
#include "../powerwindow_HeaderFiles/powerwindow_PW_Control_PSG_Front_types.h"
/* Shared type includes */
#include "../powerwindow_HeaderFiles/powerwindow_model_reference_types.h"
/* Child system includes */
#include "../powerwindow_HeaderFiles/powerwindow_powerwindow_control.h"
#include "../powerwindow_HeaderFiles/powerwindow_debounce.h"
#include "../powerwindow_HeaderFiles/powerwindow_controlexclusion.h"
/* Macros for accessing real-time model data structure */
#ifndef powerwindow_PW_PSG_Front_rtmGetErrorStatus
# define powerwindow_PW_PSG_Front_rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
#endif
#ifndef powerwindow_PW_PSG_Front_rtmSetErrorStatus
# define powerwindow_PW_PSG_Front_rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
#endif
#ifndef powerwindow_PW_PSG_Front_rtmGetErrorStatusPointer
# define powerwindow_PW_PSG_Front_rtmGetErrorStatusPointer(rtm) ((const powerwindow_char_T **)(&((rtm)->errorStatus)))
#endif
/* Block states (auto storage) for system '<Root>' */
typedef struct {
powerwindow_rtMdlrefDWork_debounce_T Debounce_Up_DWORK1;/* '<S2>/Debounce_Up' */
powerwindow_rtMdlrefDWork_debounce_T Debounce_Down_DWORK1;/* '<S2>/Debounce_Down' */
powerwindow_rtMdlrefDWork_PowerWindow_contr PW_PSG_Front_Front_DWORK1;/* '<S1>/PW_PSG_Front_Front' */
} powerwindow_D_Work_PW_Control_PSG_Front;
/* External inputs (root inport signals with auto storage) */
typedef struct {
powerwindow_boolean_T Up_DRV; /* '<Root>/Up_DRV' */
powerwindow_boolean_T Down_DRV; /* '<Root>/Down_DRV' */
powerwindow_boolean_T endofdetectionrange; /* '<Root>/end of detection range' */
powerwindow_uint8_T currentsense; /* '<Root>/current sense' */
powerwindow_boolean_T Up_PSG_Front; /* '<Root>/Up_PSG_Front' */
powerwindow_boolean_T Down_PSG_Front; /* '<Root>/Down_PSG_Front' */
} powerwindow_ExternalInputs_PW_Control_PSG_Front;
/* External outputs (root outports fed by signals with auto storage) */
typedef struct {
powerwindow_boolean_T window_up; /* '<Root>/window_up' */
powerwindow_boolean_T window_down; /* '<Root>/window_down' */
powerwindow_boolean_T overcurrent; /* '<Root>/overcurrent' */
powerwindow_boolean_T pinch; /* '<Root>/pinch' */
powerwindow_boolean_T wake; /* '<Root>/wake' */
} powerwindow_ExternalOutputs_PW_Control_PSG_Front;
/* Real-time Model Data Structure */
struct powerwindow_tag_RTM_PW_Control_PSG_Front {
const powerwindow_char_T * volatile errorStatus;
};
/* Block states (auto storage) */
extern powerwindow_D_Work_PW_Control_PSG_Front powerwindow_PW_Control_PSG_Front_DWork;
/* External inputs (root inport signals with auto storage) */
extern powerwindow_ExternalInputs_PW_Control_PSG_Front powerwindow_PW_Control_PSG_Front_U;
/* External outputs (root outports fed by signals with auto storage) */
extern powerwindow_ExternalOutputs_PW_Control_PSG_Front powerwindow_PW_Control_PSG_Front_Y;
/* Model entry point functions */
extern void powerwindow_PW_Control_PSG_Front_initialize(void);
extern void powerwindow_PW_Control_PSG_Front_main(void);
extern void powerwindow_PW_Control_PSG_Front_terminate(void);
/* Real-time Model object */
extern powerwindow_RT_MODEL_PW_Control_PSG_Front *const powerwindow_PW_Control_PSG_Front_M;
/*-
* The generated code includes comments that allow you to trace directly
* back to the appropriate location in the model. The basic format
* is <system>/block_name, where system is the system number (uniquely
* assigned by Simulink) and block_name is the name of the block.
*
* Note that this particular code originates from a subsystem build,
* and has its own system numbers different from the parent model.
* Refer to the system hierarchy for this subsystem below, and use the
* MATLAB hilite_system command to trace the generated code back
* to the parent model. For example,
*
* hilite_system('PowerWindow/PW_Control_PSG_Front') - opens subsystem PowerWindow/PW_Control_PSG_Front
* hilite_system('PowerWindow/PW_Control_PSG_Front/Kp') - opens and selects block Kp
*
* Here is the system hierarchy for this model
*
* '<Root>' : 'PowerWindow'
* '<S1>' : 'PowerWindow/PW_Control_PSG_Front'
* '<S2>' : 'PowerWindow/PW_Control_PSG_Front/Debounce_PSG_Front_Front'
*/
#endif /* RTW_HEADER_PW_Control_PSG_Front_h_*/
/*
* File trailer for generated code.
*
* [EOF]
*/
|