    1/*

    2 * File: DGM_private.h

    3 *

    4 * Code generated for Simulink model 'DGM'.

    5 *

    6 * Model version                  : 1.1

    7 * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017

    8 * C/C++ source code generated on : Thu Jun 18 17:43:41 2020

    9 *

    10 * Target selection: ert.tlc

    11 * Embedded hardware selection: Generic->Unspecified (assume 32-bit Generic)

    12 * Code generation objectives: Unspecified

    13 * Validation result: Not run

    14 */

    15

    16#ifndef RTW_HEADER_DGM_private_h_

    17#define RTW_HEADER_DGM_private_h_

    18#include "rtwtypes.h"

    19#include "DGM.h"

    20#ifndef UCHAR_MAX

    21#include <limits.h>

    22#endif

    23

    24#if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )

    25#error Code was generated for compiler with different sized uchar/char. \

    26Consider adjusting Test hardware word size settings on the \

    27Hardware Implementation pane to match your compiler word sizes as \

    28defined in limits.h of the compiler. Alternatively, you can \

    29select the Test hardware is the same as production hardware option and \

    30select the Enable portable word sizes option on the Code Generation > \

    31Verification pane for ERT based targets, which will disable the \

    32preprocessor word size checks.

    33#endif

    34

    35#if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )

    36#error Code was generated for compiler with different sized ushort/short. \

    37Consider adjusting Test hardware word size settings on the \

    38Hardware Implementation pane to match your compiler word sizes as \

    39defined in limits.h of the compiler. Alternatively, you can \

    40select the Test hardware is the same as production hardware option and \

    41select the Enable portable word sizes option on the Code Generation > \

    42Verification pane for ERT based targets, which will disable the \

    43preprocessor word size checks.

    44#endif

    45

    46#if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )

    47#error Code was generated for compiler with different sized uint/int. \

    48Consider adjusting Test hardware word size settings on the \

    49Hardware Implementation pane to match your compiler word sizes as \

    50defined in limits.h of the compiler. Alternatively, you can \

    51select the Test hardware is the same as production hardware option and \

    52select the Enable portable word sizes option on the Code Generation > \

    53Verification pane for ERT based targets, which will disable the \

    54preprocessor word size checks.

    55#endif

    56

    57#if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )

    58#error Code was generated for compiler with different sized ulong/long. \

    59Consider adjusting Test hardware word size settings on the \

    60Hardware Implementation pane to match your compiler word sizes as \

    61defined in limits.h of the compiler. Alternatively, you can \

    62select the Test hardware is the same as production hardware option and \

    63select the Enable portable word sizes option on the Code Generation > \

    64Verification pane for ERT based targets, which will disable the \

    65preprocessor word size checks.

    66#endif

    67

    68/* Imported (extern) block signals */

    69extern boolean_T hld_PrivateCAN_0x130_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x130_TimeoutErr' */

    70extern boolean_T hld_PrivateCAN_0x2E1_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2E1_TimeoutErr' */

    71extern boolean_T hld_PrivateCAN_0x2E1_ChksumErr;/* '<Root>/hld_PrivateCAN_0x2E1_ChksumErr' */

    72extern boolean_T hld_PrivateCAN_0x2E1_RolcntErr;/* '<Root>/hld_PrivateCAN_0x2E1_RolcntErr' */

    73extern boolean_T hld_PrivateCAN_0x2E6_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2E6_TimeoutErr' */

    74extern boolean_T hld_PrivateCAN_0x2E6_ChksumErr;/* '<Root>/hld_PrivateCAN_0x2E6_ChksumErr' */

    75extern boolean_T hld_PrivateCAN_0x2E6_RolcntErr;/* '<Root>/hld_PrivateCAN_0x2E6_RolcntErr' */

    76extern boolean_T hld_PrivateCAN_0x2EB_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2EB_TimeoutErr' */

    77extern boolean_T hld_PrivateCAN_0x2EB_ChksumErr;/* '<Root>/hld_PrivateCAN_0x2EB_ChksumErr' */

    78extern boolean_T hld_PrivateCAN_0x2EB_RolcntErr;/* '<Root>/hld_PrivateCAN_0x2EB_RolcntErr' */

    79extern boolean_T hld_PrivateCAN_0x3C2_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x3C2_TimeoutErr' */

    80extern boolean_T hld_PrivateCAN_0x0B5_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x0B5_TimeoutErr' */

    81extern boolean_T hld_PrivateCAN_0x2A3_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2A3_TimeoutErr' */

    82extern boolean_T hld_PrivateCAN_0x2A3_ChksumErr;/* '<Root>/hld_PrivateCAN_0x2A3_ChksumErr' */

    83extern boolean_T hld_PrivateCAN_0x2A3_RolcntErr;/* '<Root>/hld_PrivateCAN_0x2A3_RolcntErr' */

    84extern boolean_T hld_PrivateCAN_0x2A5_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2A5_TimeoutErr' */

    85extern boolean_T hld_PrivateCAN_0x2A5_ChksumErr;/* '<Root>/hld_PrivateCAN_0x2A5_ChksumErr' */

    86extern boolean_T hld_PrivateCAN_0x2A5_RolcntErr;/* '<Root>/hld_PrivateCAN_0x2A5_RolcntErr' */

    87extern boolean_T hld_PrivateCAN_0x2A7_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2A7_TimeoutErr' */

    88extern boolean_T hld_PrivateCAN_0x2A7_ChksumErr;/* '<Root>/hld_PrivateCAN_0x2A7_ChksumErr' */

    89extern boolean_T hld_PrivateCAN_0x2A7_RolcntErr;/* '<Root>/hld_PrivateCAN_0x2A7_RolcntErr' */

    90extern boolean_T hld_PrivateCAN_0x2AD_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2AD_TimeoutErr' */

    91extern boolean_T hld_PrivateCAN_0x2BB_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2BB_TimeoutErr' */

    92extern boolean_T hld_PrivateCAN_0x2DF_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2DF_TimeoutErr' */

    93extern boolean_T hld_PrivateCAN_0x3AA_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x3AA_TimeoutErr' */

    94extern boolean_T hld_PrivateCAN_0x050_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x050_TimeoutErr' */

    95extern boolean_T hld_PrivateCAN_0x050_ChksumErr;/* '<Root>/hld_PrivateCAN_0x050_ChksumErr' */

    96extern boolean_T hld_PrivateCAN_0x050_RolcntErr;/* '<Root>/hld_PrivateCAN_0x050_RolcntErr' */

    97extern boolean_T hld_PrivateCAN_0x2F1_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x2F1_TimeoutErr' */

    98extern boolean_T hld_PrivateCAN_0x195_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x195_TimeoutErr' */

    99extern boolean_T hld_PrivateCAN_0x37F_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x37F_TimeoutErr' */

    100extern boolean_T hld_PrivateCAN_0x28C_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x28C_TimeoutErr' */

    101extern boolean_T hld_PrivateCAN_0x17D_TimeoutErr;/* '<Root>/hld_PrivateCAN_0x17D_TimeoutErr' */

    102extern boolean_T DGM_OnAfterDelay(boolean_T rtu_OnSignal, rtB_OnAfterDelay_DGM

    103  *localB, rtDW_OnAfterDelay_DGM *localDW, uint32_T rtp_taskTime, uint32_T

    104  rtp_delayTime);

    105extern boolean_T DGM_OnAfterDelay1(boolean_T rtu_OnSignal,

    106  rtB_OnAfterDelay_DGM_f *localB, rtDW_OnAfterDelay_DGM_m *localDW, uint32_T

    107  rtp_taskTime, uint32_T rtp_delayTime);

    108extern boolean_T DGM_OnAfterDelay2(boolean_T rtu_OnSignal,

    109  rtB_OnAfterDelay_DGM_j *localB, rtDW_OnAfterDelay_DGM_i *localDW, uint32_T

    110  rtp_taskTime, uint32_T rtp_delayTime);

    111extern boolean_T DGM_OnHoldT(boolean_T rtu_OnSignal, rtB_OnHoldT_DGM *localB,

    112  rtDW_OnHoldT_DGM *localDW, uint32_T rtp_taskTime, uint32_T rtp_delayTime);

    113extern void DGM_rff_cti_Init(boolean_T *rty_fault_flg);

    114extern void DGM_rff_cti(boolean_T rtu_i_fault, int16_T rtu_sat, int16_T rtu_inc,

    115  int16_T rtu_dec, boolean_T rtu_lock, boolean_T *rty_fault_flg,

    116  rtDW_rff_cti_DGM *localDW);

    117extern void DGM_IOS_Init(void);

    118extern void DGM_IOS(void);

    119extern void DGM_IOS1_Init(void);

    120extern void DGM_IOS1(void);

    121

    122/* Exported data declaration */

    123

    124/* Volatile memory section */

    125/* Declaration for custom storage class: Signal_Volatile */

    126extern volatile boolean_T BMCR_bWkUpVCU;

    127extern volatile boolean_T BSPR_bKl15WkUp;

    128extern volatile boolean_T COMR_bLvComDiagEn;

    129extern volatile boolean_T COMR_stEol;

    130extern volatile boolean_T VCAN_NMMsgRx;

    131

    132#endif                                 /* RTW_HEADER_DGM_private_h_ */

    133

    134/*

    135 * File trailer for generated code.

    136 *

    137 * [EOF]

    138 */

    139