| 1 | // |
| 2 | // Trial License - for use to evaluate programs for possible purchase as |
| 3 | // an end-user only. |
| 4 | // |
| 5 | // File: ImportTest.h |
| 6 | // |
| 7 | // Code generated for Simulink model 'ImportTest'. |
| 8 | // |
| 9 | // Model version : 1.2 |
| 10 | // Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 |
| 11 | // C/C++ source code generated on : Wed Jun 27 14:38:01 2018 |
| 12 | // |
| 13 | // Target selection: ert.tlc |
| 14 | // Embedded hardware selection: Intel->x86-64 (Windows64) |
| 15 | // Code generation objectives: Unspecified |
| 16 | // Validation result: Not run |
| 17 | // |
| 18 | #ifndef RTW_HEADER_ImportTest_h_ |
| 19 | #define RTW_HEADER_ImportTest_h_ |
| 20 | #include <stddef.h> |
| 21 | #ifndef ImportTest_COMMON_INCLUDES_ |
| 22 | # define ImportTest_COMMON_INCLUDES_ |
| 23 | #include "rtwtypes.h" |
| 24 | #endif // ImportTest_COMMON_INCLUDES_ |
| 25 | |
| 26 | #include "ImportTest_types.h" |
| 27 | |
| 28 | // Macros for accessing real-time model data structure |
| 29 | #ifndef rtmGetErrorStatus |
| 30 | # define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) |
| 31 | #endif |
| 32 | |
| 33 | #ifndef rtmSetErrorStatus |
| 34 | # define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) |
| 35 | #endif |
| 36 | |
| 37 | // External inputs (root inport signals with auto storage) |
| 38 | typedef struct { |
| 39 | real_T In1; // '<Root>/In1' |
| 40 | } ExternalInputs; |
| 41 | |
| 42 | // External outputs (root outports fed by signals with auto storage) |
| 43 | typedef struct { |
| 44 | real_T Out1; // '<Root>/Out1' |
| 45 | } ExternalOutputs; |
| 46 | |
| 47 | // Real-time Model Data Structure |
| 48 | struct tag_RTM { |
| 49 | const char_T * volatile errorStatus; |
| 50 | }; |
| 51 | |
| 52 | #ifdef __cplusplus |
| 53 | |
| 54 | extern "C" { |
| 55 | |
| 56 | #endif |
| 57 | |
| 58 | // External inputs (root inport signals with auto storage) |
| 59 | extern ExternalInputs ImportTest_U; |
| 60 | |
| 61 | // External outputs (root outports fed by signals with auto storage) |
| 62 | extern ExternalOutputs ImportTest_Y; |
| 63 | |
| 64 | #ifdef __cplusplus |
| 65 | |
| 66 | } |
| 67 | #endif |
| 68 | |
| 69 | #ifdef __cplusplus |
| 70 | |
| 71 | extern "C" { |
| 72 | |
| 73 | #endif |
| 74 | |
| 75 | // Model entry point functions |
| 76 | extern void ImportTest_initialize(void); |
| 77 | extern void ImportTest_step(void); |
| 78 | extern void ImportTest_terminate(void); |
| 79 | |
| 80 | #ifdef __cplusplus |
| 81 | |
| 82 | } |
| 83 | #endif |
| 84 | |
| 85 | // Real-time Model object |
| 86 | #ifdef __cplusplus |
| 87 | |
| 88 | extern "C" { |
| 89 | |
| 90 | #endif |
| 91 | |
| 92 | extern RT_MODEL *const ImportTest_M; |
| 93 | |
| 94 | #ifdef __cplusplus |
| 95 | |
| 96 | } |
| 97 | #endif |
| 98 | |
| 99 | //- |
| 100 | // The generated code includes comments that allow you to trace directly |
| 101 | // back to the appropriate location in the model. The basic format |
| 102 | // is <system>/block_name, where system is the system number (uniquely |
| 103 | // assigned by Simulink) and block_name is the name of the block. |
| 104 | // |
| 105 | // Use the MATLAB hilite_system command to trace the generated code back |
| 106 | // to the model. For example, |
| 107 | // |
| 108 | // hilite_system('<S3>') - opens system 3 |
| 109 | // hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 |
| 110 | // |
| 111 | // Here is the system hierarchy for this model |
| 112 | // |
| 113 | // '<Root>' : 'ImportTest' |
| 114 | |
| 115 | #endif // RTW_HEADER_ImportTest_h_ |
| 116 | |
| 117 | // |
| 118 | // File trailer for generated code. |
| 119 | // |
| 120 | // [EOF] |
| 121 | // |
| 122 |