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. \
27Consider adjusting Test hardware word size settings on the \
28Hardware Implementation pane to match your compiler word sizes as \
29defined in limits.h of the compiler. Alternatively, you can \
30select the Test hardware is the same as production hardware option and \
31select the Enable portable word sizes option on the Code Generation > \
32Verification pane for ERT based targets, which will disable the \
33preprocessor 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. \
38Consider adjusting Test hardware word size settings on the \
39Hardware Implementation pane to match your compiler word sizes as \
40defined in limits.h of the compiler. Alternatively, you can \
41select the Test hardware is the same as production hardware option and \
42select the Enable portable word sizes option on the Code Generation > \
43Verification pane for ERT based targets, which will disable the \
44preprocessor 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. \
49Consider adjusting Test hardware word size settings on the \
50Hardware Implementation pane to match your compiler word sizes as \
51defined in limits.h of the compiler. Alternatively, you can \
52select the Test hardware is the same as production hardware option and \
53select the Enable portable word sizes option on the Code Generation > \
54Verification pane for ERT based targets, which will disable the \
55preprocessor 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. \
60Consider adjusting Test hardware word size settings on the \
61Hardware Implementation pane to match your compiler word sizes as \
62defined in limits.h of the compiler. Alternatively, you can \
63select the Test hardware is the same as production hardware option and \
64select the Enable portable word sizes option on the Code Generation > \
65Verification pane for ERT based targets, which will disable the \
66preprocessor word size checks.
67#endif
68
69/* Skipping ulong_long/long_long check: insufficient preprocessor integer range. */
70extern real_T rt_modd_snf(real_T u0, real_T u1);
71extern real_T rt_roundd_snf(real_T u);
72extern uint16_T plook_u16u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace,
73 uint32_T maxIndex);
74extern 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