// // Academic License - for use in teaching, academic research, and meeting // course requirements at degree granting institutions only. Not for // government, commercial, or other organizational use. // // File: project01.h // // Code generated with Waijung 2 ESP32 Target Blockset, // for Simulink model 'project01'. // // Model version : 1.5 // Simulink Coder version : 9.4 (R2020b) 29-Jul-2020 // C/C++ source code generated on : Thu Oct 15 20:51:39 2020 // // Target selection: esp32.tlc // Embedded hardware selection: Cadence Design Systems (Tensilica)->XtensaŽ single-/dual-core 32-bit LX6 microprocessor // Code generation objectives: Unspecified // Validation result: Not run // #ifndef RTW_HEADER_project01_h_ #define RTW_HEADER_project01_h_ #include #include "waijung2_hwdrvlib.h" #include "rtwtypes.h" #include "project01_types.h" // Macros for accessing real-time model data structure #ifndef rtmGetErrorStatus #define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) #endif #ifndef rtmSetErrorStatus #define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) #endif // Class declaration for model project01 class project01ModelClass { // public data and function members public: // Block signals (default storage) typedef struct { real_T PulseGenerator; // '/Pulse Generator' } B_project01_T; // Block states (default storage) for system '' typedef struct { int32_T clockTickCounter; // '/Pulse Generator' } DW_project01_T; // Real-time Model Data Structure struct RT_MODEL_project01_T { const char_T * volatile errorStatus; }; // model initialize function void initialize(); // model step function void step(); // model terminate function void terminate(); // Constructor project01ModelClass(); // Destructor ~project01ModelClass(); // Real-Time Model get method project01ModelClass::RT_MODEL_project01_T * getRTM(); // private data and function members private: // Block signals B_project01_T project01_B; // Block states DW_project01_T project01_DW; // Real-Time Model RT_MODEL_project01_T project01_M; }; //- // The generated code includes comments that allow you to trace directly // back to the appropriate location in the model. The basic format // is /block_name, where system is the system number (uniquely // assigned by Simulink) and block_name is the name of the block. // // Use the MATLAB hilite_system command to trace the generated code back // to the model. For example, // // hilite_system('') - opens system 3 // hilite_system('/Kp') - opens and selects block Kp which resides in S3 // // Here is the system hierarchy for this model // // '' : 'project01' #endif // RTW_HEADER_project01_h_ // [EOF]