/*
 * File: automats.h
 *
 * Code generated for Simulink model 'automats'.
 *
 * Model version                  : 1.33
 * Simulink Coder version         : 9.4 (R2020b) 29-Jul-2020
 * C/C++ source code generated on : Thu May 13 21:48:38 2021
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: AMD->x86-64 (Windows64)
 * Code generation objectives:
 *    1. Execution efficiency
 *    2. RAM efficiency
 * Validation result: Not run
 */

#ifndef RTW_HEADER_automats_h_
#define RTW_HEADER_automats_h_
#include <math.h>
#ifndef automats_COMMON_INCLUDES_
#define automats_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* automats_COMMON_INCLUDES_ */

/* Model Code Variants */

/* Includes for objects with custom storage classes. */
#include "get.h"
#include "set.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

/* Forward declaration for rtModel */
typedef struct tag_RTM RT_MODEL;

/* Block signals and states (default storage) for system '<Root>' */
typedef struct {
  real_T timer;                        /* '<S3>/Stavovy automat' */
  real_T Memory2_PreviousInput;        /* '<S4>/Memory2' */
  real_T Memory1_PreviousInput;        /* '<S4>/Memory1' */
  uint8_T is_c2_automats;              /* '<S3>/Stavovy automat' */
  uint8_T is_Initialization;           /* '<S3>/Stavovy automat' */
  uint8_T is_Starting_state;           /* '<S3>/Stavovy automat' */
} DW;

/* Real-time Model Data Structure */
struct tag_RTM {
  const char_T * volatile errorStatus;
};

/* Block signals and states (default storage) */
extern DW rtDW;

/* Model entry point functions */
extern void automats_initialize(void);
extern void automats_step(void);

/* Real-time Model object */
extern RT_MODEL *const rtM;

/*-
 * These blocks were eliminated from the model due to optimizations:
 *
 * Block '<S5>/Data Type Duplicate' : Unused code path elimination
 * Block '<S5>/Data Type Propagation' : Unused code path elimination
 */

/*-
 * 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.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'automats'
 * '<S1>'   : 'automats/Subsystem'
 * '<S2>'   : 'automats/Subsystem/Riadenie'
 * '<S3>'   : 'automats/Subsystem/Stavovy automat'
 * '<S4>'   : 'automats/Subsystem/Riadenie/Regulator'
 * '<S5>'   : 'automats/Subsystem/Riadenie/Regulator/Saturation Dynamic1'
 * '<S6>'   : 'automats/Subsystem/Stavovy automat/Stavovy automat'
 */
#endif                                 /* RTW_HEADER_automats_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
