File: rt_zcfcn.h

    1   /*
    2    * rt_zcfcn.h
    3    *
    4    * Code generation for model "Controller".
    5    *
    6    * Model version              : 1.1303
    7    * Simulink Coder version : 8.3 (R2012b) 20-Jul-2012
    8    * C++ source code generated on : Sun Jun 01 14:58:10 2014
    9    *
   10    * Target selection: grt.tlc
   11    * Note: GRT includes extra infrastructure and instrumentation for prototyping
   12    * Embedded hardware selection: Generic->32-bit x86 compatible
   13    * Code generation objectives: Unspecified
   14    * Validation result: Not run
   15    */
   16   
   17   #ifndef RTW_HEADER_rt_zcfcn_h_
   18   #define RTW_HEADER_rt_zcfcn_h_
   19   #include "rtwtypes.h"
   20   #include "solver_zc.h"
   21   #ifndef slZcHadEvent
   22   #define slZcHadEvent(ev, zcsDir)       (((ev) & (zcsDir)) != 0x00 )
   23   #endif
   24   
   25   #ifndef slZcUnAliasEvents
   26   #define slZcUnAliasEvents(evL, evR)    ((((slZcHadEvent((evL), (SL_ZCS_EVENT_N2Z)) && slZcHadEvent((evR), (SL_ZCS_EVENT_Z2P))) || (slZcHadEvent((evL), (SL_ZCS_EVENT_P2Z)) && slZcHadEvent((evR), (SL_ZCS_EVENT_Z2N)))) ? (SL_ZCS_EVENT_NUL) : (evR)))
   27   #endif
   28   
   29   #ifdef __cplusplus
   30   
   31   extern "C" {
   32   
   33   #endif
   34   
   35     extern ZCEventType rt_ZCFcn(ZCDirection zcDir, ZCSigState *prevZc, real_T
   36       currValue);
   37   
   38   #ifdef __cplusplus
   39   
   40   }                                      /* extern "C" */
   41   #endif
   42   #endif                                 /* RTW_HEADER_rt_zcfcn_h_ */
   43