    1/*

    2 * File: automats.h

    3 *

    4 * Code generated for Simulink model 'automats'.

    5 *

    6 * Model version                  : 1.33

    7 * Simulink Coder version         : 9.4 (R2020b) 29-Jul-2020

    8 * C/C++ source code generated on : Thu May 13 21:48:38 2021

    9 *

    10 * Target selection: ert.tlc

    11 * Embedded hardware selection: AMD->x86-64 (Windows64)

    12 * Code generation objectives:

    13 *    1. Execution efficiency

    14 *    2. RAM efficiency

    15 * Validation result: Not run

    16 */

    17

    18#ifndef RTW_HEADER_automats_h_

    19#define RTW_HEADER_automats_h_

    20#include <math.h>

    21#ifndef automats_COMMON_INCLUDES_

    22#define automats_COMMON_INCLUDES_

    23#include "rtwtypes.h"

    24#endif                                 /* automats_COMMON_INCLUDES_ */

    25

    26/* Model Code Variants */

    27

    28/* Includes for objects with custom storage classes. */

    29#include "get.h"

    30#include "set.h"

    31

    32/* Macros for accessing real-time model data structure */

    33#ifndef rtmGetErrorStatus

    34#define rtmGetErrorStatus(rtm)         ((rtm)->errorStatus)

    35#endif

    36

    37#ifndef rtmSetErrorStatus

    38#define rtmSetErrorStatus(rtm, val)    ((rtm)->errorStatus = (val))

    39#endif

    40

    41/* Forward declaration for rtModel */

    42typedef struct tag_RTM RT_MODEL;

    43

    44/* Block signals and states (default storage) for system '<Root>' */

    45typedef struct {

    46  real_T timer;                        /* '<S3>/Stavovy automat' */

    47  real_T Memory2_PreviousInput;        /* '<S4>/Memory2' */

    48  real_T Memory1_PreviousInput;        /* '<S4>/Memory1' */

    49  uint8_T is_c2_automats;              /* '<S3>/Stavovy automat' */

    50  uint8_T is_Initialization;           /* '<S3>/Stavovy automat' */

    51  uint8_T is_Starting_state;           /* '<S3>/Stavovy automat' */

    52} DW;

    53

    54/* Real-time Model Data Structure */

    55struct tag_RTM {

    56  const char_T * volatile errorStatus;

    57};

    58

    59/* Block signals and states (default storage) */

    60extern DW rtDW;

    61

    62/* Model entry point functions */

    63extern void automats_initialize(void);

    64extern void automats_step(void);

    65

    66/* Real-time Model object */

    67extern RT_MODEL *const rtM;

    68

    69/*-

    70 * These blocks were eliminated from the model due to optimizations:

    71 *

    72 * Block '<S5>/Data Type Duplicate' : Unused code path elimination

    73 * Block '<S5>/Data Type Propagation' : Unused code path elimination

    74 */

    75

    76/*-

    77 * The generated code includes comments that allow you to trace directly

    78 * back to the appropriate location in the model.  The basic format

    79 * is <system>/block_name, where system is the system number (uniquely

    80 * assigned by Simulink) and block_name is the name of the block.

    81 *

    82 * Use the MATLAB hilite_system command to trace the generated code back

    83 * to the model.  For example,

    84 *

    85 * hilite_system('<S3>')    - opens system 3

    86 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3

    87 *

    88 * Here is the system hierarchy for this model

    89 *

    90 * '<Root>' : 'automats'

    91 * '<S1>'   : 'automats/Subsystem'

    92 * '<S2>'   : 'automats/Subsystem/Riadenie'

    93 * '<S3>'   : 'automats/Subsystem/Stavovy automat'

    94 * '<S4>'   : 'automats/Subsystem/Riadenie/Regulator'

    95 * '<S5>'   : 'automats/Subsystem/Riadenie/Regulator/Saturation Dynamic1'

    96 * '<S6>'   : 'automats/Subsystem/Stavovy automat/Stavovy automat'

    97 */

    98#endif                                 /* RTW_HEADER_automats_h_ */

    99

    100/*

    101 * File trailer for generated code.

    102 *

    103 * [EOF]

    104 */

    105