/* * CANTest_data.c * * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * Code generation for model "CANTest". * * Model version : 1.360 * Simulink Coder version : 8.14 (R2018a) 06-Feb-2018 * C source code generated on : Tue Jul 11 11:56:08 2023 * * Target selection: slrt.tlc * Note: GRT includes extra infrastructure and instrumentation for prototyping * Embedded hardware selection: Generic->32-bit x86 compatible * Code generation objectives: Unspecified * Validation result: Not run */ #include "CANTest.h" #include "CANTest_private.h" /* Block parameters (default storage) */ P_CANTest_T CANTest_P = { /* Variable: Ts * Referenced by: * '/Constant' * '/gain' */ 0.002, /* Computed Parameter: CANSetup_P1_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: id * Referenced by: '/CAN Setup' */ 1.0, /* Computed Parameter: CANSetup_P2_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Computed Parameter: CANSetup_P2 * Referenced by: '/CAN Setup' */ { 67.0, 58.0 }, /* Computed Parameter: CANSetup_P3_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: PCISlot * Referenced by: '/CAN Setup' */ -1.0, /* Computed Parameter: CANSetup_P4_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: port1 * Referenced by: '/CAN Setup' */ 2.0, /* Computed Parameter: CANSetup_P5_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: port2 * Referenced by: '/CAN Setup' */ 2.0, /* Computed Parameter: CANSetup_P6_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: opModeCAN1 * Referenced by: '/CAN Setup' */ 1.0, /* Computed Parameter: CANSetup_P7_Size * Referenced by: '/CAN Setup' */ { 1.0, 4.0 }, /* Expression: usrBdrCAN1 * Referenced by: '/CAN Setup' */ { 10.0, 1.0, 13.0, 2.0 }, /* Computed Parameter: CANSetup_P8_Size * Referenced by: '/CAN Setup' */ { 1.0, 6.0 }, /* Expression: usrBdrFD1 * Referenced by: '/CAN Setup' */ { 2.0, 1.0, 5.0, 2.0, 75.0, 5000.0 }, /* Computed Parameter: CANSetup_P9_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: stdAccMaskCAN1 * Referenced by: '/CAN Setup' */ { 0.0, 0.0 }, /* Computed Parameter: CANSetup_P10_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: extAccMaskCAN1 * Referenced by: '/CAN Setup' */ { 0.0, 0.0 }, /* Computed Parameter: CANSetup_P11_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: opModeCAN2 * Referenced by: '/CAN Setup' */ 1.0, /* Computed Parameter: CANSetup_P12_Size * Referenced by: '/CAN Setup' */ { 1.0, 4.0 }, /* Expression: usrBdrCAN2 * Referenced by: '/CAN Setup' */ { 10.0, 1.0, 13.0, 2.0 }, /* Computed Parameter: CANSetup_P13_Size * Referenced by: '/CAN Setup' */ { 1.0, 6.0 }, /* Expression: usrBdrFD2 * Referenced by: '/CAN Setup' */ { 2.0, 1.0, 5.0, 2.0, 75.0, 5000.0 }, /* Computed Parameter: CANSetup_P14_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: stdAccMaskCAN2 * Referenced by: '/CAN Setup' */ { 0.0, 0.0 }, /* Computed Parameter: CANSetup_P15_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: extAccMaskCAN2 * Referenced by: '/CAN Setup' */ { 0.0, 0.0 }, /* Computed Parameter: CANSetup_P16_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: initStruct * Referenced by: '/CAN Setup' */ 0.0, /* Computed Parameter: CANSetup_P17_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: termStruct * Referenced by: '/CAN Setup' */ 0.0, /* Computed Parameter: CANSetup_P18_Size * Referenced by: '/CAN Setup' */ { 1.0, 5.0 }, /* Computed Parameter: CANSetup_P18 * Referenced by: '/CAN Setup' */ { 73.0, 79.0, 54.0, 49.0, 51.0 }, /* Computed Parameter: CANSetup_P19_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: qtyMod * Referenced by: '/CAN Setup' */ 1.0, /* Computed Parameter: CANSetup_P20_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: chNo * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Computed Parameter: CANSetup_P21_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: ptTypes * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Computed Parameter: CANSetup_P22_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: isProtlFD * Referenced by: '/CAN Setup' */ { 0.0, 0.0 }, /* Computed Parameter: CANSetup_P23_Size * Referenced by: '/CAN Setup' */ { 1.0, 2.0 }, /* Expression: protlHelpIdx * Referenced by: '/CAN Setup' */ { 0.0, 1.0 }, /* Computed Parameter: CANSetup_P24_Size * Referenced by: '/CAN Setup' */ { 1.0, 1.0 }, /* Expression: isFDMod * Referenced by: '/CAN Setup' */ 1.0, /* Computed Parameter: CANRead1_P1_Size * Referenced by: '/CAN Read1' */ { 1.0, 1.0 }, /* Expression: id * Referenced by: '/CAN Read1' */ 1.0, /* Computed Parameter: CANRead1_P2_Size * Referenced by: '/CAN Read1' */ { 1.0, 1.0 }, /* Expression: sampleTime * Referenced by: '/CAN Read1' */ -1.0, /* Computed Parameter: CANRead1_P3_Size * Referenced by: '/CAN Read1' */ { 1.0, 1.0 }, /* Expression: messageType * Referenced by: '/CAN Read1' */ 1.0, /* Computed Parameter: CANRead1_P4_Size * Referenced by: '/CAN Read1' */ { 1.0, 5.0 }, /* Computed Parameter: CANRead1_P4 * Referenced by: '/CAN Read1' */ { 73.0, 79.0, 54.0, 49.0, 51.0 }, /* Computed Parameter: CANRead1_P5_Size * Referenced by: '/CAN Read1' */ { 1.0, 1.0 }, /* Expression: ptIdx * Referenced by: '/CAN Read1' */ 0.0, /* Computed Parameter: CANRead1_P6_Size * Referenced by: '/CAN Read1' */ { 1.0, 1.0 }, /* Expression: isFDMod * Referenced by: '/CAN Read1' */ 1.0, /* Expression: 1 * Referenced by: '/ContMode' */ 1.0, /* Expression: 0 * Referenced by: '/ContM' */ 0.0, /* Expression: 1 * Referenced by: '/Constant' */ 1.0, /* Expression: 4 * Referenced by: '/Constant1' */ 4.0, /* Expression: 0 * Referenced by: '/Constant2' */ 0.0, /* Expression: 10 * Referenced by: '/Constant3' */ 10.0, /* Expression: -2 * Referenced by: '/Constant4' */ -2.0, /* Expression: 0 * Referenced by: '/TQCom' */ 0.0, /* Expression: 0 * Referenced by: '/d1' */ 0.0, /* Expression: 1 * Referenced by: '/Constant1' */ 1.0, /* Expression: 5 * Referenced by: '/Constant1' */ 5.0, /* Expression: 2*pi * Referenced by: '/gain2' */ 6.2831853071795862, /* Expression: 2 * Referenced by: '/gain1' */ 2.0, /* Expression: 0 * Referenced by: '/d' */ 0.0, /* Computed Parameter: CANWrite1_P1_Size * Referenced by: '/CAN Write1' */ { 1.0, 1.0 }, /* Expression: id * Referenced by: '/CAN Write1' */ 1.0, /* Computed Parameter: CANWrite1_P2_Size * Referenced by: '/CAN Write1' */ { 1.0, 1.0 }, /* Expression: sampleTime * Referenced by: '/CAN Write1' */ -1.0, /* Computed Parameter: CANWrite1_P3_Size * Referenced by: '/CAN Write1' */ { 1.0, 1.0 }, /* Expression: messageType * Referenced by: '/CAN Write1' */ 1.0, /* Computed Parameter: CANWrite1_P4_Size * Referenced by: '/CAN Write1' */ { 1.0, 1.0 }, /* Expression: enaStatusPort * Referenced by: '/CAN Write1' */ 0.0, /* Computed Parameter: CANWrite1_P5_Size * Referenced by: '/CAN Write1' */ { 1.0, 5.0 }, /* Computed Parameter: CANWrite1_P5 * Referenced by: '/CAN Write1' */ { 73.0, 79.0, 54.0, 49.0, 51.0 }, /* Computed Parameter: CANWrite1_P6_Size * Referenced by: '/CAN Write1' */ { 1.0, 1.0 }, /* Expression: ptIdx * Referenced by: '/CAN Write1' */ 0.0, /* Computed Parameter: CANWrite1_P7_Size * Referenced by: '/CAN Write1' */ { 1.0, 1.0 }, /* Expression: isFDMod * Referenced by: '/CAN Write1' */ 1.0 };