Slave controller for AEB and QA item

Revision:
1:370626c9b451
Parent:
0:88fb7562377b
--- a/Controller_Slave.h	Wed Jul 06 09:21:22 2016 +0000
+++ b/Controller_Slave.h	Mon Jul 11 10:15:51 2016 +0000
@@ -7,26 +7,52 @@
  *
  * Code generated for Simulink model 'Controller_Slave'.
  *
- * Model version                  : 1.6
+ * Model version                  : 1.7
  * Simulink Coder version         : 8.10 (R2016a) 10-Feb-2016
- * C/C++ source code generated on : Wed Jul 06 11:19:35 2016
+ * C/C++ source code generated on : Sun Jul 10 15:19:51 2016
  *
  * Target selection: ert.tlc
- * Embedded hardware selection: NXP->Cortex-M4
+ * Embedded hardware selection: ARM Compatible->ARM Cortex
  * Code generation objectives: Unspecified
  * Validation result: Not run
  */
 
 #ifndef RTW_HEADER_Controller_Slave_h_
 #define RTW_HEADER_Controller_Slave_h_
+#include "rtwtypes.h"
 #include <math.h>
 #include <string.h>
+#include <stddef.h>
 #ifndef Controller_Slave_COMMON_INCLUDES_
 # define Controller_Slave_COMMON_INCLUDES_
 #include "rtwtypes.h"
 #endif                                 /* Controller_Slave_COMMON_INCLUDES_ */
 
 /* Macros for accessing real-time model data structure */
+#ifndef rtmGetBlockIO
+# define rtmGetBlockIO(rtm)            ((rtm)->ModelData.blockIO)
+#endif
+
+#ifndef rtmSetBlockIO
+# define rtmSetBlockIO(rtm, val)       ((rtm)->ModelData.blockIO = (val))
+#endif
+
+#ifndef rtmGetDefaultParam
+# define rtmGetDefaultParam(rtm)       ((rtm)->ModelData.defaultParam)
+#endif
+
+#ifndef rtmSetDefaultParam
+# define rtmSetDefaultParam(rtm, val)  ((rtm)->ModelData.defaultParam = (val))
+#endif
+
+#ifndef rtmGetRootDWork
+# define rtmGetRootDWork(rtm)          ((rtm)->ModelData.dwork)
+#endif
+
+#ifndef rtmSetRootDWork
+# define rtmSetRootDWork(rtm, val)     ((rtm)->ModelData.dwork = (val))
+#endif
+
 #ifndef rtmGetErrorStatus
 # define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
 #endif
@@ -51,16 +77,26 @@
   uint8_T is_c6_Controller_Slave;      /* '<S1>/select_command' */
   uint8_T is_BLINK;                    /* '<S1>/select_command' */
   uint8_T is_active_c5_Controller_Slave;/* '<S1>/AEB_QA' */
-  uint8_T is_QA_ACTIVE;                /* '<S1>/AEB_QA' */
+  uint8_T is_ERRORS_CHECK_THREAD;      /* '<S1>/AEB_QA' */
   uint8_T is_APPLICATION_THREAD;       /* '<S1>/AEB_QA' */
   uint8_T is_AEB_ACTIVE;               /* '<S1>/AEB_QA' */
-  uint8_T is_ERRORS_CHECK_THREAD;      /* '<S1>/AEB_QA' */
+  uint8_T is_QA_ACTIVE;                /* '<S1>/AEB_QA' */
   boolean_T En;                        /* '<S1>/AEB_QA' */
 } DW_Controller_Slave_T;
 
+/* Parameters (auto storage) */
+struct P_Controller_Slave_T_ {
+  uint8_T Memory_X0;                   /* Computed Parameter: Memory_X0
+                                        * Referenced by: '<S1>/Memory'
+                                        */
+};
+
+/* Parameters (auto storage) */
+typedef struct P_Controller_Slave_T_ P_Controller_Slave_T;
+
 /* Real-time Model Data Structure */
 struct tag_RTM_Controller_Slave_T {
-  const char_T * volatile errorStatus;
+  const char_T *errorStatus;
 
   /*
    * ModelData:
@@ -69,6 +105,7 @@
    */
   struct {
     B_Controller_Slave_T *blockIO;
+    P_Controller_Slave_T *defaultParam;
     DW_Controller_Slave_T *dwork;
   } ModelData;
 };
@@ -102,15 +139,15 @@
  * MATLAB hilite_system command to trace the generated code back
  * to the parent model.  For example,
  *
- * hilite_system('Controller_Model_07_05_v01/Controller/Controller_Slave')    - opens subsystem Controller_Model_07_05_v01/Controller/Controller_Slave
- * hilite_system('Controller_Model_07_05_v01/Controller/Controller_Slave/Kp') - opens and selects block Kp
+ * hilite_system('Controller_Model_07_10_v01/Controller/Controller_Slave')    - opens subsystem Controller_Model_07_10_v01/Controller/Controller_Slave
+ * hilite_system('Controller_Model_07_10_v01/Controller/Controller_Slave/Kp') - opens and selects block Kp
  *
  * Here is the system hierarchy for this model
  *
- * '<Root>' : 'Controller_Model_07_05_v01/Controller'
- * '<S1>'   : 'Controller_Model_07_05_v01/Controller/Controller_Slave'
- * '<S2>'   : 'Controller_Model_07_05_v01/Controller/Controller_Slave/AEB_QA'
- * '<S3>'   : 'Controller_Model_07_05_v01/Controller/Controller_Slave/select_command'
+ * '<Root>' : 'Controller_Model_07_10_v01/Controller'
+ * '<S1>'   : 'Controller_Model_07_10_v01/Controller/Controller_Slave'
+ * '<S2>'   : 'Controller_Model_07_10_v01/Controller/Controller_Slave/AEB_QA'
+ * '<S3>'   : 'Controller_Model_07_10_v01/Controller/Controller_Slave/select_command'
  */
 #endif                                 /* RTW_HEADER_Controller_Slave_h_ */