AEB

Dependencies:   mbed

AEB0.h

Committer:
clynamen
Date:
2016-07-30
Revision:
3:4bb49a5dfa47
Parent:
2:5811e080f41d

File content as of revision 3:4bb49a5dfa47:

/*
 * 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: AEB0.h
 *
 * Code generated for Simulink model 'AEB0'.
 *
 * Model version                  : 1.75
 * Simulink Coder version         : 8.10 (R2016a) 10-Feb-2016
 * C/C++ source code generated on : Thu Jul 28 19:27:03 2016
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_AEB0_h_
#define RTW_HEADER_AEB0_h_
#include <stddef.h>
#include <string.h>
#ifndef AEB0_COMMON_INCLUDES_
# define AEB0_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* AEB0_COMMON_INCLUDES_ */

#include "AEB0_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

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  real_T speed_at_brake_start;         /* '<Root>/AEB ' */
  uint8_T is_active_c3_AEB0;           /* '<Root>/AEB ' */
  uint8_T is_AEB_distance_sensor_fault_de;/* '<Root>/AEB ' */
  uint8_T is_AEB_brake_fault_detection;/* '<Root>/AEB ' */
  uint8_T is_AEB_ALGO;                 /* '<Root>/AEB ' */
  uint8_T is_AEB_ok;                   /* '<Root>/AEB ' */
  uint8_T temporalCounter_i1;          /* '<Root>/AEB ' */
  uint8_T temporalCounter_i2;          /* '<Root>/AEB ' */
} DW_AEB0_T;

/* External inputs (root inport signals with auto storage) */
typedef struct {
  real_T speed_ms;                     /* '<Root>/speed_ms' */
  real_T distance_m;                   /* '<Root>/distance_m' */
  real_T speed_km_h;                   /* '<Root>/speed_km_h' */
} ExtU_AEB0_T;

/* External outputs (root outports fed by signals with auto storage) */
typedef struct {
  real_T brake;                        /* '<Root>/brake' */
  real_T fault;                        /* '<Root>/fault' */
} ExtY_AEB0_T;

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

/* Block states (auto storage) */
extern DW_AEB0_T AEB0_DW;

/* External inputs (root inport signals with auto storage) */
extern ExtU_AEB0_T AEB0_U;

/* External outputs (root outports fed by signals with auto storage) */
extern ExtY_AEB0_T AEB0_Y;

/* Model entry point functions */
extern void AEB0_initialize(void);
extern void AEB0_step(void);
extern void AEB0_terminate(void);

/* Real-time Model object */
extern RT_MODEL_AEB0_T *const AEB0_M;

/*-
 * 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.
 *
 * Note that this particular code originates from a subsystem build,
 * and has its own system numbers different from the parent model.
 * Refer to the system hierarchy for this subsystem below, and use the
 * MATLAB hilite_system command to trace the generated code back
 * to the parent model.  For example,
 *
 * hilite_system('AEB/AEB ')    - opens subsystem AEB/AEB
 * hilite_system('AEB/AEB /Kp') - opens and selects block Kp
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'AEB'
 * '<S1>'   : 'AEB/AEB '
 */
#endif                                 /* RTW_HEADER_AEB0_h_ */

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