| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*
- * PWM_sf_private.h
- *
- * Code generation for model "PWM_sf".
- *
- * Model version : 1.825
- * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
- * C source code generated on : Fri Apr 14 12:53:29 2023
- *
- * Target selection: rtwsfcn.tlc
- * Note: GRT includes extra infrastructure and instrumentation for prototyping
- * Embedded hardware selection: ARM Compatible->ARM Cortex-M
- * Emulation hardware selection:
- * Differs from embedded hardware (MATLAB Host)
- * Code generation objectives:
- * 1. Execution efficiency
- * 2. RAM efficiency
- * Validation result: Not run
- */
- #ifndef RTW_HEADER_PWM_sf_private_h_
- #define RTW_HEADER_PWM_sf_private_h_
- #include "rtwtypes.h"
- #include "multiword_types.h"
- #if !defined(ss_VALIDATE_MEMORY)
- #define ss_VALIDATE_MEMORY(S, ptr) if(!(ptr)) {\
- ssSetErrorStatus(S, RT_MEMORY_ALLOCATION_ERROR);\
- }
- #endif
- #if !defined(rt_FREE)
- #if !defined(_WIN32)
- #define rt_FREE(ptr) if((ptr) != (NULL)) {\
- free((ptr));\
- (ptr) = (NULL);\
- }
- #else
- /* Visual and other windows compilers declare free without const */
- #define rt_FREE(ptr) if((ptr) != (NULL)) {\
- free((void *)(ptr));\
- (ptr) = (NULL);\
- }
- #endif
- #endif
- real_T PWM_sf_rt_TDelayInterpolate(
- real_T tMinusDelay, /* tMinusDelay = currentSimTime - delay */
- real_T tStart,
- real_T *tBuf,
- real_T *uBuf,
- int_T bufSz,
- int_T *lastIdx,
- int_T oldestIdx,
- int_T newIdx,
- real_T initOutput,
- boolean_T discrete,
- boolean_T minorStepAndTAtLastMajorOutput)
- ;
- extern real_T PWM_look1_binlx(real_T u0, const real_T bp0[], const real_T table[],
- uint32_T maxIndex);
- #endif /* RTW_HEADER_PWM_sf_private_h_ */
|