MBSD / Mbed 2 deprecated AEB_TERATERM

Dependencies:   mbed

Fork of AEB by Vincenzo Comito

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AEB0.h Source File

AEB0.h

00001 /*
00002  * Academic License - for use in teaching, academic research, and meeting
00003  * course requirements at degree granting institutions only.  Not for
00004  * government, commercial, or other organizational use.
00005  *
00006  * File: AEB0.h
00007  *
00008  * Code generated for Simulink model 'AEB0'.
00009  *
00010  * Model version                  : 1.75
00011  * Simulink Coder version         : 8.10 (R2016a) 10-Feb-2016
00012  * C/C++ source code generated on : Thu Jul 28 19:27:03 2016
00013  *
00014  * Target selection: ert.tlc
00015  * Embedded hardware selection: Intel->x86-64 (Windows64)
00016  * Code generation objectives: Unspecified
00017  * Validation result: Not run
00018  */
00019 
00020 #ifndef RTW_HEADER_AEB0_h_
00021 #define RTW_HEADER_AEB0_h_
00022 #include <stddef.h>
00023 #include <string.h>
00024 #ifndef AEB0_COMMON_INCLUDES_
00025 # define AEB0_COMMON_INCLUDES_
00026 #include "rtwtypes.h"
00027 #endif                                 /* AEB0_COMMON_INCLUDES_ */
00028 
00029 #include "AEB0_types.h"
00030 
00031 /* Macros for accessing real-time model data structure */
00032 #ifndef rtmGetErrorStatus
00033 # define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
00034 #endif
00035 
00036 #ifndef rtmSetErrorStatus
00037 # define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
00038 #endif
00039 
00040 /* Block states (auto storage) for system '<Root>' */
00041 typedef struct {
00042   real_T speed_at_brake_start;         /* '<Root>/AEB ' */
00043   uint8_T is_active_c3_AEB0;           /* '<Root>/AEB ' */
00044   uint8_T is_AEB_distance_sensor_fault_de;/* '<Root>/AEB ' */
00045   uint8_T is_AEB_brake_fault_detection;/* '<Root>/AEB ' */
00046   uint8_T is_AEB_ALGO;                 /* '<Root>/AEB ' */
00047   uint8_T is_AEB_ok;                   /* '<Root>/AEB ' */
00048   uint8_T temporalCounter_i1;          /* '<Root>/AEB ' */
00049   uint8_T temporalCounter_i2;          /* '<Root>/AEB ' */
00050 } DW_AEB0_T;
00051 
00052 /* External inputs (root inport signals with auto storage) */
00053 typedef struct {
00054   real_T speed_ms;                     /* '<Root>/speed_ms' */
00055   real_T distance_m;                   /* '<Root>/distance_m' */
00056   real_T speed_km_h;                   /* '<Root>/speed_km_h' */
00057 } ExtU_AEB0_T;
00058 
00059 /* External outputs (root outports fed by signals with auto storage) */
00060 typedef struct {
00061   real_T brake;                        /* '<Root>/brake' */
00062   real_T fault;                        /* '<Root>/fault' */
00063 } ExtY_AEB0_T;
00064 
00065 /* Real-time Model Data Structure */
00066 struct tag_RTM_AEB0_T {
00067   const char_T * volatile errorStatus;
00068 };
00069 
00070 /* Block states (auto storage) */
00071 extern DW_AEB0_T AEB0_DW;
00072 
00073 /* External inputs (root inport signals with auto storage) */
00074 extern ExtU_AEB0_T AEB0_U;
00075 
00076 /* External outputs (root outports fed by signals with auto storage) */
00077 extern ExtY_AEB0_T AEB0_Y;
00078 
00079 /* Model entry point functions */
00080 extern void AEB0_initialize(void);
00081 extern void AEB0_step(void);
00082 extern void AEB0_terminate(void);
00083 
00084 /* Real-time Model object */
00085 extern RT_MODEL_AEB0_T *const AEB0_M;
00086 
00087 /*-
00088  * The generated code includes comments that allow you to trace directly
00089  * back to the appropriate location in the model.  The basic format
00090  * is <system>/block_name, where system is the system number (uniquely
00091  * assigned by Simulink) and block_name is the name of the block.
00092  *
00093  * Note that this particular code originates from a subsystem build,
00094  * and has its own system numbers different from the parent model.
00095  * Refer to the system hierarchy for this subsystem below, and use the
00096  * MATLAB hilite_system command to trace the generated code back
00097  * to the parent model.  For example,
00098  *
00099  * hilite_system('AEB/AEB ')    - opens subsystem AEB/AEB
00100  * hilite_system('AEB/AEB /Kp') - opens and selects block Kp
00101  *
00102  * Here is the system hierarchy for this model
00103  *
00104  * '<Root>' : 'AEB'
00105  * '<S1>'   : 'AEB/AEB '
00106  */
00107 #endif                                 /* RTW_HEADER_AEB0_h_ */
00108 
00109 /*
00110  * File trailer for generated code.
00111  *
00112  * [EOF]
00113  */