PMSM_Controller_private.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #ifndef RTW_HEADER_PMSM_Controller_private_h_
  18. #define RTW_HEADER_PMSM_Controller_private_h_
  19. #include "rtwtypes.h"
  20. #ifndef UCHAR_MAX
  21. #include <limits.h>
  22. #endif
  23. #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )
  24. #error Code was generated for compiler with different sized uchar/char. \
  25. Consider adjusting Test hardware word size settings on the \
  26. Hardware Implementation pane to match your compiler word sizes as \
  27. defined in limits.h of the compiler. Alternatively, you can \
  28. select the Test hardware is the same as production hardware option and \
  29. select the Enable portable word sizes option on the Code Generation > \
  30. Verification pane for ERT based targets, which will disable the \
  31. preprocessor word size checks.
  32. #endif
  33. #if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )
  34. #error Code was generated for compiler with different sized ushort/short. \
  35. Consider adjusting Test hardware word size settings on the \
  36. Hardware Implementation pane to match your compiler word sizes as \
  37. defined in limits.h of the compiler. Alternatively, you can \
  38. select the Test hardware is the same as production hardware option and \
  39. select the Enable portable word sizes option on the Code Generation > \
  40. Verification pane for ERT based targets, which will disable the \
  41. preprocessor word size checks.
  42. #endif
  43. #if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )
  44. #error Code was generated for compiler with different sized uint/int. \
  45. Consider adjusting Test hardware word size settings on the \
  46. Hardware Implementation pane to match your compiler word sizes as \
  47. defined in limits.h of the compiler. Alternatively, you can \
  48. select the Test hardware is the same as production hardware option and \
  49. select the Enable portable word sizes option on the Code Generation > \
  50. Verification pane for ERT based targets, which will disable the \
  51. preprocessor word size checks.
  52. #endif
  53. #if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )
  54. #error Code was generated for compiler with different sized ulong/long. \
  55. Consider adjusting Test hardware word size settings on the \
  56. Hardware Implementation pane to match your compiler word sizes as \
  57. defined in limits.h of the compiler. Alternatively, you can \
  58. select the Test hardware is the same as production hardware option and \
  59. select the Enable portable word sizes option on the Code Generation > \
  60. Verification pane for ERT based targets, which will disable the \
  61. preprocessor word size checks.
  62. #endif
  63. /* Skipping ulong_long/long_long check: insufficient preprocessor integer range. */
  64. extern real_T rt_modd_snf(real_T u0, real_T u1);
  65. extern real_T rt_roundd_snf(real_T u);
  66. extern uint16_T plook_u16u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace,
  67. uint32_T maxIndex);
  68. extern int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator);
  69. #endif /* RTW_HEADER_PMSM_Controller_private_h_ */
  70. /*
  71. * File trailer for generated code.
  72. *
  73. * [EOF]
  74. */