| 1 | /* |
| 2 | * File: PMSM_Controller_private.h |
| 3 | * |
| 4 | * Code generated for Simulink model 'PMSM_Controller'. |
| 5 | * |
| 6 | * Model version : 1.885 |
| 7 | * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020 |
| 8 | * C/C++ source code generated on : Sat Jan 8 15:44:11 2022 |
| 9 | * |
| 10 | * Target selection: ert.tlc |
| 11 | * Embedded hardware selection: ARM Compatible->ARM Cortex-M |
| 12 | * Code generation objectives: |
| 13 | * 1. Execution efficiency |
| 14 | * 2. RAM efficiency |
| 15 | * Validation result: Not run |
| 16 | */ |
| 17 | |
| 18 | #ifndef RTW_HEADER_PMSM_Controller_private_h_ |
| 19 | #define RTW_HEADER_PMSM_Controller_private_h_ |
| 20 | #include "rtwtypes.h" |
| 21 | #ifndef UCHAR_MAX |
| 22 | #include <limits.h> |
| 23 | #endif |
| 24 | |
| 25 | #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) ) |
| 26 | #error Code was generated for compiler with different sized uchar/char. \ |
| 27 | Consider adjusting Test hardware word size settings on the \ |
| 28 | Hardware Implementation pane to match your compiler word sizes as \ |
| 29 | defined in limits.h of the compiler. Alternatively, you can \ |
| 30 | select the Test hardware is the same as production hardware option and \ |
| 31 | select the Enable portable word sizes option on the Code Generation > \ |
| 32 | Verification pane for ERT based targets, which will disable the \ |
| 33 | preprocessor word size checks. |
| 34 | #endif |
| 35 | |
| 36 | #if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) ) |
| 37 | #error Code was generated for compiler with different sized ushort/short. \ |
| 38 | Consider adjusting Test hardware word size settings on the \ |
| 39 | Hardware Implementation pane to match your compiler word sizes as \ |
| 40 | defined in limits.h of the compiler. Alternatively, you can \ |
| 41 | select the Test hardware is the same as production hardware option and \ |
| 42 | select the Enable portable word sizes option on the Code Generation > \ |
| 43 | Verification pane for ERT based targets, which will disable the \ |
| 44 | preprocessor word size checks. |
| 45 | #endif |
| 46 | |
| 47 | #if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) ) |
| 48 | #error Code was generated for compiler with different sized uint/int. \ |
| 49 | Consider adjusting Test hardware word size settings on the \ |
| 50 | Hardware Implementation pane to match your compiler word sizes as \ |
| 51 | defined in limits.h of the compiler. Alternatively, you can \ |
| 52 | select the Test hardware is the same as production hardware option and \ |
| 53 | select the Enable portable word sizes option on the Code Generation > \ |
| 54 | Verification pane for ERT based targets, which will disable the \ |
| 55 | preprocessor word size checks. |
| 56 | #endif |
| 57 | |
| 58 | #if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) ) |
| 59 | #error Code was generated for compiler with different sized ulong/long. \ |
| 60 | Consider adjusting Test hardware word size settings on the \ |
| 61 | Hardware Implementation pane to match your compiler word sizes as \ |
| 62 | defined in limits.h of the compiler. Alternatively, you can \ |
| 63 | select the Test hardware is the same as production hardware option and \ |
| 64 | select the Enable portable word sizes option on the Code Generation > \ |
| 65 | Verification pane for ERT based targets, which will disable the \ |
| 66 | preprocessor word size checks. |
| 67 | #endif |
| 68 | |
| 69 | /* Skipping ulong_long/long_long check: insufficient preprocessor integer range. */ |
| 70 | extern real_T rt_modd_snf(real_T u0, real_T u1); |
| 71 | extern real_T rt_roundd_snf(real_T u); |
| 72 | extern uint16_T plook_u16u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, |
| 73 | uint32_T maxIndex); |
| 74 | extern int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator); |
| 75 | |
| 76 | #endif /* RTW_HEADER_PMSM_Controller_private_h_ */ |
| 77 | |
| 78 | /* |
| 79 | * File trailer for generated code. |
| 80 | * |
| 81 | * [EOF] |
| 82 | */ |
| 83 | |