File: C:\Users\SLUG\Documents\MATLAB\SLUG_Autopilot\Stable\controlMCUSlugsMKII_dspic\sources\rt_zcfcn.h1 /* 2 * File: rt_zcfcn.h 3 * 4 * Real-Time Workshop code generated for Simulink model controlMCUSlugsMKII. 5 * 6 * Model version : 1.714 7 * Real-Time Workshop file version : 7.5 (R2010a) 25-Jan-2010 8 * Real-Time Workshop file generated on : Tue Nov 23 13:12:51 2010 9 * TLC version : 7.5 (Jan 19 2010) 10 * C source code generated on : Tue Nov 23 13:12:52 2010 11 *-------------------------------------------------------------- 12 * Embedded Coder for Microchip dsPIC family. | 13 * Generate .c and .h files from your Matlab/simulink model | 14 * and compile the diagram to .hex and .coff file that can be | 15 * downloaded directly into the microcontroller | 16 * | 17 * Licence Accorded to Blake Mills | 18 * University of Colorado-Boulder | 19 * | 20 * Written by Lubin KERHUEL - http://www.kerhuel.eu | 21 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 22 * Version 3.3a 22-Nov-2010 | 23 * For Matlab 7.10 R2010a | 24 *-------------------------------------------------------------- 25 */ 26 27 #ifndef RTW_HEADER_rt_zcfcn_h_ 28 #define RTW_HEADER_rt_zcfcn_h_ 29 #include "rtwtypes.h" 30 #include "solver_zc.h" 31 #ifndef slZcHadEvent 32 #define slZcHadEvent(ev, zcsDir) (((ev) & (zcsDir)) != 0x00 ) 33 #endif 34 35 #ifndef slZcUnAliasEvents 36 #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))) 37 #endif 38 39 extern ZCEventType rt_ZCFcn(ZCDirection zcDir, ZCSigState *prevZc, real_T 40 currValue); 41 42 #endif /* RTW_HEADER_rt_zcfcn_h_ */ 43 44 /* File trailer for Real-Time Workshop generated code. 45 * 46 * [EOF] 47 */ 48 |