File: C:\MATLAB\work\fadingchannelconstructed_grt_rtw/fadingchannelconstructed.h1 /* 2 * fadingchannelconstructed.h 3 * 4 * Real-Time Workshop code generation for Simulink model "fadingchannelconstructed.mdl". 5 * 6 * Model Version : 1.39 7 * Real-Time Workshop file version : 5.0 $Date: 2002/05/30 19:21:33 $ 8 * Real-Time Workshop file generated on : Wed Mar 17 14:58:13 2004 9 * TLC version : 5.0 (Jun 18 2002) 10 * C source code generated on : Wed Mar 17 14:58:13 2004 11 */ 12 13 #ifndef _RTW_HEADER_fadingchannelconstructed_h_ 14 # define _RTW_HEADER_fadingchannelconstructed_h_ 15 16 #include <limits.h> 17 #include "tmwtypes.h" 18 #ifndef _fadingchannelconstructed_COMMON_INCLUDES_ 19 # define _fadingchannelconstructed_COMMON_INCLUDES_ 20 #include <math.h> 21 #include <string.h> 22 23 #include "simstruc_types.h" 24 #include "rt_logging.h" 25 #include "rtlibsrc.h" 26 27 #endif /* _fadingchannelconstructed_COMMON_INCLUDES_ */ 28 29 #include "fadingchannelconstructed_types.h" 30 31 #define MODEL_NAME fadingchannelconstructed 32 #define NSAMPLE_TIMES (1) /* Number of sample times */ 33 #define NINPUTS (0) /* Number of model inputs */ 34 #define NOUTPUTS (0) /* Number of model outputs */ 35 #define NBLOCKIO (8) /* Number of data output port signals */ 36 #define NUM_ZC_EVENTS (0) /* Number of zero-crossing events */ 37 38 #ifndef NCSTATES 39 # define NCSTATES (0) /* Number of continuous states */ 40 #elif NCSTATES != 0 41 # error Invalid specification of NCSTATES defined in compiler command 42 #endif 43 44 /* Intrinsic types */ 45 #ifndef POINTER_T 46 # define POINTER_T 47 typedef void * pointer_T; 48 #endif 49 50 /* Block signals (auto storage) */ 51 typedef struct _BlockIO { 52 real_T Random_Number_a; /* '<S2>/Random Number' */ 53 real_T Sum_a; /* '<S2>/Sum' */ 54 real_T Buffer_a; /* '<S2>/Buffer' */ 55 real_T Pulse_Generator; /* '<Root>/Pulse Generator' */ 56 real_T Direct_Form_II_Tran; /* '<S5>/Direct-Form II Transpose Filter' */ 57 real_T Random_Number_b; /* '<S3>/Random Number' */ 58 real_T Sum_b; /* '<S3>/Sum' */ 59 real_T Buffer_b; /* '<S3>/Buffer' */ 60 } BlockIO; 61 62 /* Block states (auto storage) for system: '<Root>' */ 63 typedef struct D_Work_tag { 64 real_T Integer_Delay_BUFF[51]; /* <S1>/Integer Delay */ 65 real_T Direct_Form_II_Tran_FILT_STATES[101]; /* <S5>/Direct-Form II Transpose Filter */ 66 struct { 67 real_T NextOutput; 68 } Random_Number_a_RWORK; /* '<S2>/Random Number' */ 69 struct { 70 real_T NextOutput; 71 } Random_Number_b_RWORK; /* '<S3>/Random Number' */ 72 struct { 73 void *LoggedData; 74 } To_Workspace_PWORK; /* '<Root>/To Workspace' */ 75 struct { 76 void *LoggedData; 77 } To_Workspace1_PWORK; /* '<Root>/To Workspace1' */ 78 int32_T Integer_Delay_BUFF_OFFSET; /* <S1>/Integer Delay */ 79 struct { 80 int_T RandSeed; 81 } Random_Number_a_IWORK; /* '<S2>/Random Number' */ 82 struct { 83 int_T ClockTicksCounter; 84 } Pulse_Generator_IWORK; /* '<Root>/Pulse Generator' */ 85 struct { 86 int_T RandSeed; 87 } Random_Number_b_IWORK; /* '<S3>/Random Number' */ 88 } D_Work; 89 90 /* Parameters (auto storage) */ 91 struct _Parameters { 92 real_T Random_Number_a_Mean; /* Expression: 0 93 * '<S2>/Random Number' 94 */ 95 real_T Random_Number_a_StdDev; /* Computed Parameter: StdDev 96 * '<S2>/Random Number' 97 */ 98 real_T Discrete_State_Space_a_D; /* Computed Parameter: D 99 * '<S7>/Discrete State-Space' 100 */ 101 real_T Discrete_State_Space_a_X0; /* Expression: 0 102 * '<S7>/Discrete State-Space' 103 */ 104 real_T Constant_a_Value; /* Expression: Value 105 * '<S6>/Constant' 106 */ 107 real_T Reshape_a_P1; /* Expression: OutputDimensionality 108 * '<S2>/Reshape' 109 */ 110 real_T Reshape_a_P2[2]; /* Expression: OutputDimensions 111 * '<S2>/Reshape' 112 */ 113 real_T Integer_Delay_IC; /* Computed Parameter: IC 114 * '<S1>/Integer Delay' 115 */ 116 real_T Pulse_Generator_Amp; /* Expression: 1 117 * '<Root>/Pulse Generator' 118 */ 119 real_T Pulse_Generator_Period; /* Expression: 2 120 * '<Root>/Pulse Generator' 121 */ 122 real_T Pulse_Generator_Duty; /* Expression: 1 123 * '<Root>/Pulse Generator' 124 */ 125 real_T Direct_Form_II_Tran_ICRTP; /* Computed Parameter: ICRTP 126 * '<S5>/Direct-Form II Transpose Filter' 127 */ 128 real_T Direct_Form_II_Tran_RTP1COEFF[101]; /* Expression: Coeff1 129 * '<S5>/Direct-Form II Transpose Filter' 130 */ 131 real_T Direct_Form_II_Tran_RTP2COEFF; /* Expression: Coeff2 132 * '<S5>/Direct-Form II Transpose Filter' 133 */ 134 real_T Random_Number_b_Mean; /* Expression: 0 135 * '<S3>/Random Number' 136 */ 137 real_T Random_Number_b_StdDev; /* Computed Parameter: StdDev 138 * '<S3>/Random Number' 139 */ 140 real_T Discrete_State_Space_b_D; /* Computed Parameter: D 141 * '<S11>/Discrete State-Space' 142 */ 143 real_T Discrete_State_Space_b_X0; /* Expression: 0 144 * '<S11>/Discrete State-Space' 145 */ 146 real_T Constant_b_Value; /* Expression: Value 147 * '<S10>/Constant' 148 */ 149 real_T Reshape_b_P1; /* Expression: OutputDimensionality 150 * '<S3>/Reshape' 151 */ 152 real_T Reshape_b_P2[2]; /* Expression: OutputDimensions 153 * '<S3>/Reshape' 154 */ 155 int32_T Integer_Delay_Delays; /* Computed Parameter: Delays 156 * '<S1>/Integer Delay' 157 */ 158 }; 159 160 /* Real-time Model Data Structure */ 161 struct _rtModel_fadingchannelconstructed_Tag { 162 const char *path; 163 const char *modelName; 164 struct SimStruct_tag * *childSfunctions; 165 const char *errorStatus; 166 SS_SimMode simMode; 167 RTWLogInfo *rtwLogInfo; 168 RTWExtModeInfo *extModeInfo; 169 RTWSolverInfo *solverInfo; 170 void *sfcnInfo; 171 172 /* 173 * ModelData: 174 * The following substructure contains information regarding 175 * the data used in the model. 176 */ 177 struct { 178 void *blockIO; 179 const void *constBlockIO; 180 real_T *defaultParam; 181 ZCSigState *prevZCSigState; 182 real_T *contStates; 183 real_T *discStates; 184 real_T *derivs; 185 real_T *nonsampledZCs; 186 void *inputs; 187 void *outputs; 188 boolean_T contStateDisabled; 189 boolean_T zCCacheNeedsReset; 190 boolean_T derivCacheNeedsReset; 191 boolean_T blkStateChange; 192 } ModelData; 193 194 /* 195 * Sizes: 196 * The following substructure contains sizes information 197 * for many of the model attributes such as inputs, outputs, 198 * dwork, sample times, etc. 199 */ 200 struct { 201 uint32_T checksums[4]; 202 uint32_T options; 203 int_T numContStates; 204 int_T numU; 205 int_T numY; 206 int_T numSampTimes; 207 int_T numBlocks; 208 int_T numBlockIO; 209 int_T numBlockPrms; 210 int_T numDwork; 211 int_T numSFcnPrms; 212 int_T numSFcns; 213 int_T numIports; 214 int_T numOports; 215 int_T numNonSampZCs; 216 int_T sysDirFeedThru; 217 int_T rtwGenSfcn; 218 } Sizes; 219 220 /* 221 * SpecialInfo: 222 * The following substructure contains special information 223 * related to other components that are dependent on RTW. 224 */ 225 struct { 226 const void *mappingInfo; 227 void *xpcData; 228 } SpecialInfo; 229 230 /* 231 * Timing: 232 * The following substructure contains information regarding 233 * the timing information for the model. 234 */ 235 struct { 236 time_T *t; 237 time_T tStart; 238 time_T tFinal; 239 time_T stepSize; 240 time_T timeOfLastOutput; 241 void *timingData; 242 real_T *varNextHitTimesList; 243 SimTimeStep simTimeStep; 244 int_T *sampleHits; 245 int_T *perTaskSampleHits; 246 boolean_T stopRequestedFlag; 247 time_T *sampleTimes; 248 time_T *offsetTimes; 249 int_T *sampleTimeTaskIDPtr; 250 } Timing; 251 252 /* 253 * Work: 254 * The following substructure contains information regarding 255 * the work vectors in the model. 256 */ 257 struct { 258 struct _ssDWorkRecord *dwork; 259 } Work; 260 }; 261 262 /* Simulation structure */ 263 extern rtModel_fadingchannelconstructed *const rtM_fadingchannelconstructed; 264 265 /* Macros for accessing real-time model data structure */ 266 #ifndef rtmGetBlkStateChangeFlag 267 # define rtmGetBlkStateChangeFlag(rtm) ((rtm)->ModelData.blkStateChange) 268 #endif 269 270 #ifndef rtmSetBlkStateChangeFlag 271 # define rtmSetBlkStateChangeFlag(rtm, val) ((rtm)->ModelData.blkStateChange = (val)) 272 #endif 273 274 #ifndef rtmGetBlockIO 275 # define rtmGetBlockIO(rtm) ((rtm)->ModelData.blockIO) 276 #endif 277 278 #ifndef rtmSetBlockIO 279 # define rtmSetBlockIO(rtm, val) ((rtm)->ModelData.blockIO = (val)) 280 #endif 281 282 #ifndef rtmGetCTaskTicks 283 # define rtmGetCTaskTicks(rtm) ((rtm)->Timing.cTaskTicks) 284 #endif 285 286 #ifndef rtmSetCTaskTicks 287 # define rtmSetCTaskTicks(rtm, val) ((rtm)->Timing.cTaskTicks = (val)) 288 #endif 289 290 #ifndef rtmGetChecksums 291 # define rtmGetChecksums(rtm) ((rtm)->Sizes.checksums) 292 #endif 293 294 #ifndef rtmSetChecksums 295 # define rtmSetChecksums(rtm, val) ((rtm)->Sizes.checksums = (val)) 296 #endif 297 298 #ifndef rtmGetClockTick 299 # define rtmGetClockTick(rtm) ((rtm)->Timing.clockTick) 300 #endif 301 302 #ifndef rtmSetClockTick 303 # define rtmSetClockTick(rtm, val) ((rtm)->Timing.clockTick = (val)) 304 #endif 305 306 #ifndef rtmGetConstBlockIO 307 # define rtmGetConstBlockIO(rtm) ((rtm)->ModelData.constBlockIO) 308 #endif 309 310 #ifndef rtmSetConstBlockIO 311 # define rtmSetConstBlockIO(rtm, val) ((rtm)->ModelData.constBlockIO = (val)) 312 #endif 313 314 #ifndef rtmGetContStateDisabled 315 # define rtmGetContStateDisabled(rtm) ((rtm)->ModelData.contStateDisabled) 316 #endif 317 318 #ifndef rtmSetContStateDisabled 319 # define rtmSetContStateDisabled(rtm, val) ((rtm)->ModelData.contStateDisabled = (val)) 320 #endif 321 322 #ifndef rtmGetContStates 323 # define rtmGetContStates(rtm) ((rtm)->ModelData.contStates) 324 #endif 325 326 #ifndef rtmSetContStates 327 # define rtmSetContStates(rtm, val) ((rtm)->ModelData.contStates = (val)) 328 #endif 329 330 #ifndef rtmGetDefaultParam 331 # define rtmGetDefaultParam(rtm) ((rtm)->ModelData.defaultParam) 332 #endif 333 334 #ifndef rtmSetDefaultParam 335 # define rtmSetDefaultParam(rtm, val) ((rtm)->ModelData.defaultParam = (val)) 336 #endif 337 338 #ifndef rtmGetDerivCacheNeedsReset 339 # define rtmGetDerivCacheNeedsReset(rtm) ((rtm)->ModelData.derivCacheNeedsReset) 340 #endif 341 342 #ifndef rtmSetDerivCacheNeedsReset 343 # define rtmSetDerivCacheNeedsReset(rtm, val) ((rtm)->ModelData.derivCacheNeedsReset = (val)) 344 #endif 345 346 #ifndef rtmGetDirectFeedThrough 347 # define rtmGetDirectFeedThrough(rtm) ((rtm)->Sizes.sysDirFeedThru) 348 #endif 349 350 #ifndef rtmSetDirectFeedThrough 351 # define rtmSetDirectFeedThrough(rtm, val) ((rtm)->Sizes.sysDirFeedThru = (val)) 352 #endif 353 354 #ifndef rtmGetDiscStates 355 # define rtmGetDiscStates(rtm) ((rtm)->ModelData.discStates) 356 #endif 357 358 #ifndef rtmSetDiscStates 359 # define rtmSetDiscStates(rtm, val) ((rtm)->ModelData.discStates = (val)) 360 #endif 361 362 #ifndef rtmGetErrorStatusFlag 363 # define rtmGetErrorStatusFlag(rtm) ((rtm)->errorStatus) 364 #endif 365 366 #ifndef rtmSetErrorStatusFlag 367 # define rtmSetErrorStatusFlag(rtm, val) ((rtm)->errorStatus = (val)) 368 #endif 369 370 #ifndef rtmGetFirstInitCondFlag 371 # define rtmGetFirstInitCondFlag(rtm) ((rtm)->Timing.firstInitCondFlag) 372 #endif 373 374 #ifndef rtmSetFirstInitCondFlag 375 # define rtmSetFirstInitCondFlag(rtm, val) ((rtm)->Timing.firstInitCondFlag = (val)) 376 #endif 377 378 #ifndef rtmGetModelMappingInfo 379 # define rtmGetModelMappingInfo(rtm) ((rtm)->SpecialInfo.mappingInfo) 380 #endif 381 382 #ifndef rtmSetModelMappingInfo 383 # define rtmSetModelMappingInfo(rtm, val) ((rtm)->SpecialInfo.mappingInfo = (val)) 384 #endif 385 386 #ifndef rtmGetModelName 387 # define rtmGetModelName(rtm) ((rtm)->modelName) 388 #endif 389 390 #ifndef rtmSetModelName 391 # define rtmSetModelName(rtm, val) ((rtm)->modelName = (val)) 392 #endif 393 394 #ifndef rtmGetNTaskTicks 395 # define rtmGetNTaskTicks(rtm) ((rtm)->Timing.nTaskTicks) 396 #endif 397 398 #ifndef rtmSetNTaskTicks 399 # define rtmSetNTaskTicks(rtm, val) ((rtm)->Timing.nTaskTicks = (val)) 400 #endif 401 402 #ifndef rtmGetNonsampledZCs 403 # define rtmGetNonsampledZCs(rtm) ((rtm)->ModelData.nonsampledZCs) 404 #endif 405 406 #ifndef rtmSetNonsampledZCs 407 # define rtmSetNonsampledZCs(rtm, val) ((rtm)->ModelData.nonsampledZCs = (val)) 408 #endif 409 410 #ifndef rtmGetNumBlockIO 411 # define rtmGetNumBlockIO(rtm) ((rtm)->Sizes.numBlockIO) 412 #endif 413 414 #ifndef rtmSetNumBlockIO 415 # define rtmSetNumBlockIO(rtm, val) ((rtm)->Sizes.numBlockIO = (val)) 416 #endif 417 418 #ifndef rtmGetNumBlockParams 419 # define rtmGetNumBlockParams(rtm) ((rtm)->Sizes.numBlockPrms) 420 #endif 421 422 #ifndef rtmSetNumBlockParams 423 # define rtmSetNumBlockParams(rtm, val) ((rtm)->Sizes.numBlockPrms = (val)) 424 #endif 425 426 #ifndef rtmGetNumBlocks 427 # define rtmGetNumBlocks(rtm) ((rtm)->Sizes.numBlocks) 428 #endif 429 430 #ifndef rtmSetNumBlocks 431 # define rtmSetNumBlocks(rtm, val) ((rtm)->Sizes.numBlocks = (val)) 432 #endif 433 434 #ifndef rtmGetNumContStates 435 # define rtmGetNumContStates(rtm) ((rtm)->Sizes.numContStates) 436 #endif 437 438 #ifndef rtmSetNumContStates 439 # define rtmSetNumContStates(rtm, val) ((rtm)->Sizes.numContStates = (val)) 440 #endif 441 442 #ifndef rtmGetNumDWork 443 # define rtmGetNumDWork(rtm) ((rtm)->Sizes.numDwork) 444 #endif 445 446 #ifndef rtmSetNumDWork 447 # define rtmSetNumDWork(rtm, val) ((rtm)->Sizes.numDwork = (val)) 448 #endif 449 450 #ifndef rtmGetNumInputPorts 451 # define rtmGetNumInputPorts(rtm) ((rtm)->Sizes.numIports) 452 #endif 453 454 #ifndef rtmSetNumInputPorts 455 # define rtmSetNumInputPorts(rtm, val) ((rtm)->Sizes.numIports = (val)) 456 #endif 457 458 #ifndef rtmGetNumNonSampledZCs 459 # define rtmGetNumNonSampledZCs(rtm) ((rtm)->Sizes.numNonSampZCs) 460 #endif 461 462 #ifndef rtmSetNumNonSampledZCs 463 # define rtmSetNumNonSampledZCs(rtm, val) ((rtm)->Sizes.numNonSampZCs = (val)) 464 #endif 465 466 #ifndef rtmGetNumOutputPorts 467 # define rtmGetNumOutputPorts(rtm) ((rtm)->Sizes.numOports) 468 #endif 469 470 #ifndef rtmSetNumOutputPorts 471 # define rtmSetNumOutputPorts(rtm, val) ((rtm)->Sizes.numOports = (val)) 472 #endif 473 474 #ifndef rtmGetNumSFcnParams 475 # define rtmGetNumSFcnParams(rtm) ((rtm)->Sizes.numSFcnPrms) 476 #endif 477 478 #ifndef rtmSetNumSFcnParams 479 # define rtmSetNumSFcnParams(rtm, val) ((rtm)->Sizes.numSFcnPrms = (val)) 480 #endif 481 482 #ifndef rtmGetNumSFunctions 483 # define rtmGetNumSFunctions(rtm) ((rtm)->Sizes.numSFcns) 484 #endif 485 486 #ifndef rtmSetNumSFunctions 487 # define rtmSetNumSFunctions(rtm, val) ((rtm)->Sizes.numSFcns = (val)) 488 #endif 489 490 #ifndef rtmGetNumSampleTimes 491 # define rtmGetNumSampleTimes(rtm) ((rtm)->Sizes.numSampTimes) 492 #endif 493 494 #ifndef rtmSetNumSampleTimes 495 # define rtmSetNumSampleTimes(rtm, val) ((rtm)->Sizes.numSampTimes = (val)) 496 #endif 497 498 #ifndef rtmGetNumU 499 # define rtmGetNumU(rtm) ((rtm)->Sizes.numU) 500 #endif 501 502 #ifndef rtmSetNumU 503 # define rtmSetNumU(rtm, val) ((rtm)->Sizes.numU = (val)) 504 #endif 505 506 #ifndef rtmGetNumY 507 # define rtmGetNumY(rtm) ((rtm)->Sizes.numY) 508 #endif 509 510 #ifndef rtmSetNumY 511 # define rtmSetNumY(rtm, val) ((rtm)->Sizes.numY = (val)) 512 #endif 513 514 #ifndef rtmGetOffsetTimePtr 515 # define rtmGetOffsetTimePtr(rtm) ((rtm)->Timing.offsetTimes) 516 #endif 517 518 #ifndef rtmSetOffsetTimePtr 519 # define rtmSetOffsetTimePtr(rtm, val) ((rtm)->Timing.offsetTimes = (val)) 520 #endif 521 522 #ifndef rtmGetOptions 523 # define rtmGetOptions(rtm) ((rtm)->Sizes.options) 524 #endif 525 526 #ifndef rtmSetOptions 527 # define rtmSetOptions(rtm, val) ((rtm)->Sizes.options = (val)) 528 #endif 529 530 #ifndef rtmGetPath 531 # define rtmGetPath(rtm) ((rtm)->path) 532 #endif 533 534 #ifndef rtmSetPath 535 # define rtmSetPath(rtm, val) ((rtm)->path = (val)) 536 #endif 537 538 #ifndef rtmGetPerTaskSampleHits 539 # define rtmGetPerTaskSampleHits(rtm) ((rtm)->Timing.perTaskSampleHits) 540 #endif 541 542 #ifndef rtmSetPerTaskSampleHits 543 # define rtmSetPerTaskSampleHits(rtm, val) ((rtm)->Timing.perTaskSampleHits = (val)) 544 #endif 545 546 #ifndef rtmGetPerTaskSampleHitsPtr 547 # define rtmGetPerTaskSampleHitsPtr(rtm) ((rtm)->Timing.perTaskSampleHits) 548 #endif 549 550 #ifndef rtmSetPerTaskSampleHitsPtr 551 # define rtmSetPerTaskSampleHitsPtr(rtm, val) ((rtm)->Timing.perTaskSampleHits = (val)) 552 #endif 553 554 #ifndef rtmGetPrevZCSigState 555 # define rtmGetPrevZCSigState(rtm) ((rtm)->ModelData.prevZCSigState) 556 #endif 557 558 #ifndef rtmSetPrevZCSigState 559 # define rtmSetPrevZCSigState(rtm, val) ((rtm)->ModelData.prevZCSigState = (val)) 560 #endif 561 562 #ifndef rtmGetRTWExtModeInfo 563 # define rtmGetRTWExtModeInfo(rtm) ((rtm)->extModeInfo) 564 #endif 565 566 #ifndef rtmSetRTWExtModeInfo 567 # define rtmSetRTWExtModeInfo(rtm, val) ((rtm)->extModeInfo = (val)) 568 #endif 569 570 #ifndef rtmGetRTWGeneratedSFcn 571 # define rtmGetRTWGeneratedSFcn(rtm) ((rtm)->Sizes.rtwGenSfcn) 572 #endif 573 574 #ifndef rtmSetRTWGeneratedSFcn 575 # define rtmSetRTWGeneratedSFcn(rtm, val) ((rtm)->Sizes.rtwGenSfcn = (val)) 576 #endif 577 578 #ifndef rtmGetRTWLogInfo 579 # define rtmGetRTWLogInfo(rtm) ((rtm)->rtwLogInfo) 580 #endif 581 582 #ifndef rtmSetRTWLogInfo 583 # define rtmSetRTWLogInfo(rtm, val) ((rtm)->rtwLogInfo = (val)) 584 #endif 585 586 #ifndef rtmGetRTWRTModelMethodsInfo 587 # define rtmGetRTWRTModelMethodsInfo(rtm) ((rtm)->modelMethodsInfo) 588 #endif 589 590 #ifndef rtmSetRTWRTModelMethodsInfo 591 # define rtmSetRTWRTModelMethodsInfo(rtm, val) ((rtm)->modelMethodsInfo = (val)) 592 #endif 593 594 #ifndef rtmGetRTWSfcnInfo 595 # define rtmGetRTWSfcnInfo(rtm) ((rtm)->sfcnInfo) 596 #endif 597 598 #ifndef rtmSetRTWSfcnInfo 599 # define rtmSetRTWSfcnInfo(rtm, val) ((rtm)->sfcnInfo = (val)) 600 #endif 601 602 #ifndef rtmGetRTWSolverInfo 603 # define rtmGetRTWSolverInfo(rtm) ((rtm)->solverInfo) 604 #endif 605 606 #ifndef rtmSetRTWSolverInfo 607 # define rtmSetRTWSolverInfo(rtm, val) ((rtm)->solverInfo = (val)) 608 #endif 609 610 #ifndef rtmGetReservedForXPC 611 # define rtmGetReservedForXPC(rtm) ((rtm)->SpecialInfo.xpcData) 612 #endif 613 614 #ifndef rtmSetReservedForXPC 615 # define rtmSetReservedForXPC(rtm, val) ((rtm)->SpecialInfo.xpcData = (val)) 616 #endif 617 618 #ifndef rtmGetRootDWork 619 # define rtmGetRootDWork(rtm) ((rtm)->Work.dwork) 620 #endif 621 622 #ifndef rtmSetRootDWork 623 # define rtmSetRootDWork(rtm, val) ((rtm)->Work.dwork = (val)) 624 #endif 625 626 #ifndef rtmGetSFunctions 627 # define rtmGetSFunctions(rtm) ((rtm)->childSfunctions) 628 #endif 629 630 #ifndef rtmSetSFunctions 631 # define rtmSetSFunctions(rtm, val) ((rtm)->childSfunctions = (val)) 632 #endif 633 634 #ifndef rtmGetSampleHitPtr 635 # define rtmGetSampleHitPtr(rtm) ((rtm)->Timing.sampleHits) 636 #endif 637 638 #ifndef rtmSetSampleHitPtr 639 # define rtmSetSampleHitPtr(rtm, val) ((rtm)->Timing.sampleHits = (val)) 640 #endif 641 642 #ifndef rtmGetSampleTimePtr 643 # define rtmGetSampleTimePtr(rtm) ((rtm)->Timing.sampleTimes) 644 #endif 645 646 #ifndef rtmSetSampleTimePtr 647 # define rtmSetSampleTimePtr(rtm, val) ((rtm)->Timing.sampleTimes = (val)) 648 #endif 649 650 #ifndef rtmGetSampleTimeTaskIDPtr 651 # define rtmGetSampleTimeTaskIDPtr(rtm) ((rtm)->Timing.sampleTimeTaskIDPtr) 652 #endif 653 654 #ifndef rtmSetSampleTimeTaskIDPtr 655 # define rtmSetSampleTimeTaskIDPtr(rtm, val) ((rtm)->Timing.sampleTimeTaskIDPtr = (val)) 656 #endif 657 658 #ifndef rtmGetSimMode 659 # define rtmGetSimMode(rtm) ((rtm)->simMode) 660 #endif 661 662 #ifndef rtmSetSimMode 663 # define rtmSetSimMode(rtm, val) ((rtm)->simMode = (val)) 664 #endif 665 666 #ifndef rtmGetSimTimeStep 667 # define rtmGetSimTimeStep(rtm) ((rtm)->Timing.simTimeStep) 668 #endif 669 670 #ifndef rtmSetSimTimeStep 671 # define rtmSetSimTimeStep(rtm, val) ((rtm)->Timing.simTimeStep = (val)) 672 #endif 673 674 #ifndef rtmGetStartTime 675 # define rtmGetStartTime(rtm) ((rtm)->Timing.tStart) 676 #endif 677 678 #ifndef rtmSetStartTime 679 # define rtmSetStartTime(rtm, val) ((rtm)->Timing.tStart = (val)) 680 #endif 681 682 #ifndef rtmGetStepSize 683 # define rtmGetStepSize(rtm) ((rtm)->Timing.stepSize) 684 #endif 685 686 #ifndef rtmSetStepSize 687 # define rtmSetStepSize(rtm, val) ((rtm)->Timing.stepSize = (val)) 688 #endif 689 690 #ifndef rtmGetStopRequestedFlag 691 # define rtmGetStopRequestedFlag(rtm) ((rtm)->Timing.stopRequestedFlag) 692 #endif 693 694 #ifndef rtmSetStopRequestedFlag 695 # define rtmSetStopRequestedFlag(rtm, val) ((rtm)->Timing.stopRequestedFlag = (val)) 696 #endif 697 698 #ifndef rtmGetTFinal 699 # define rtmGetTFinal(rtm) ((rtm)->Timing.tFinal) 700 #endif 701 702 #ifndef rtmSetTFinal 703 # define rtmSetTFinal(rtm, val) ((rtm)->Timing.tFinal = (val)) 704 #endif 705 706 #ifndef rtmGetTaskTimes 707 # define rtmGetTaskTimes(rtm) ((rtm)->Timing.taskTimes) 708 #endif 709 710 #ifndef rtmSetTaskTimes 711 # define rtmSetTaskTimes(rtm, val) ((rtm)->Timing.taskTimes = (val)) 712 #endif 713 714 #ifndef rtmGetTimeOfLastOutput 715 # define rtmGetTimeOfLastOutput(rtm) ((rtm)->Timing.timeOfLastOutput) 716 #endif 717 718 #ifndef rtmSetTimeOfLastOutput 719 # define rtmSetTimeOfLastOutput(rtm, val) ((rtm)->Timing.timeOfLastOutput = (val)) 720 #endif 721 722 #ifndef rtmGetTimePtr 723 # define rtmGetTimePtr(rtm) ((rtm)->Timing.t) 724 #endif 725 726 #ifndef rtmSetTimePtr 727 # define rtmSetTimePtr(rtm, val) ((rtm)->Timing.t = (val)) 728 #endif 729 730 #ifndef rtmGetTimingData 731 # define rtmGetTimingData(rtm) ((rtm)->Timing.timingData) 732 #endif 733 734 #ifndef rtmSetTimingData 735 # define rtmSetTimingData(rtm, val) ((rtm)->Timing.timingData = (val)) 736 #endif 737 738 #ifndef rtmGetU 739 # define rtmGetU(rtm) ((rtm)->ModelData.inputs) 740 #endif 741 742 #ifndef rtmSetU 743 # define rtmSetU(rtm, val) ((rtm)->ModelData.inputs = (val)) 744 #endif 745 746 #ifndef rtmGetVarNextHitTimesListPtr 747 # define rtmGetVarNextHitTimesListPtr(rtm) ((rtm)->Timing.varNextHitTimesList) 748 #endif 749 750 #ifndef rtmSetVarNextHitTimesListPtr 751 # define rtmSetVarNextHitTimesListPtr(rtm, val) ((rtm)->Timing.varNextHitTimesList = (val)) 752 #endif 753 754 #ifndef rtmGetY 755 # define rtmGetY(rtm) ((rtm)->ModelData.outputs) 756 #endif 757 758 #ifndef rtmSetY 759 # define rtmSetY(rtm, val) ((rtm)->ModelData.outputs = (val)) 760 #endif 761 762 #ifndef rtmGetZCCacheNeedsReset 763 # define rtmGetZCCacheNeedsReset(rtm) ((rtm)->ModelData.zCCacheNeedsReset) 764 #endif 765 766 #ifndef rtmSetZCCacheNeedsReset 767 # define rtmSetZCCacheNeedsReset(rtm, val) ((rtm)->ModelData.zCCacheNeedsReset = (val)) 768 #endif 769 770 #ifndef rtmGetdX 771 # define rtmGetdX(rtm) ((rtm)->ModelData.derivs) 772 #endif 773 774 #ifndef rtmSetdX 775 # define rtmSetdX(rtm, val) ((rtm)->ModelData.derivs = (val)) 776 #endif 777 778 #ifndef rtmGetChecksumVal 779 # define rtmGetChecksumVal(rtm, idx) ((rtm)->Sizes.checksums[idx]) 780 #endif 781 782 #ifndef rtmSetChecksumVal 783 # define rtmSetChecksumVal(rtm, idx, val) ((rtm)->Sizes.checksums[idx] = (val)) 784 #endif 785 786 #ifndef rtmGetDWork 787 # define rtmGetDWork(rtm, idx) ((rtm)->Work.dwork[idx]) 788 #endif 789 790 #ifndef rtmSetDWork 791 # define rtmSetDWork(rtm, idx, val) ((rtm)->Work.dwork[idx] = (val)) 792 #endif 793 794 #ifndef rtmGetOffsetTime 795 # define rtmGetOffsetTime(rtm, idx) ((rtm)->Timing.offsetTimes[idx]) 796 #endif 797 798 #ifndef rtmSetOffsetTime 799 # define rtmSetOffsetTime(rtm, idx, val) ((rtm)->Timing.offsetTimes[idx] = (val)) 800 #endif 801 802 #ifndef rtmGetSFunction 803 # define rtmGetSFunction(rtm, idx) ((rtm)->childSfunctions[idx]) 804 #endif 805 806 #ifndef rtmSetSFunction 807 # define rtmSetSFunction(rtm, idx, val) ((rtm)->childSfunctions[idx] = (val)) 808 #endif 809 810 #ifndef rtmGetSampleTime 811 # define rtmGetSampleTime(rtm, idx) ((rtm)->Timing.sampleTimes[idx]) 812 #endif 813 814 #ifndef rtmSetSampleTime 815 # define rtmSetSampleTime(rtm, idx, val) ((rtm)->Timing.sampleTimes[idx] = (val)) 816 #endif 817 818 #ifndef rtmGetSampleTimeTaskID 819 # define rtmGetSampleTimeTaskID(rtm, idx) ((rtm)->Timing.sampleTimeTaskIDPtr[idx]) 820 #endif 821 822 #ifndef rtmSetSampleTimeTaskID 823 # define rtmSetSampleTimeTaskID(rtm, idx, val) ((rtm)->Timing.sampleTimeTaskIDPtr[idx] = (val)) 824 #endif 825 826 #ifndef rtmGetVarNextHitTime 827 # define rtmGetVarNextHitTime(rtm, idx) ((rtm)->Timing.varNextHitTimesList[idx]) 828 #endif 829 830 #ifndef rtmSetVarNextHitTime 831 # define rtmSetVarNextHitTime(rtm, idx, val) ((rtm)->Timing.varNextHitTimesList[idx] = (val)) 832 #endif 833 834 #ifndef rtmIsContinuousTask 835 # define rtmIsContinuousTask(rtm, tid) (tid) == 0 836 #endif 837 838 #ifndef rtmGetErrorStatus 839 # define rtmGetErrorStatus(rtm) (rtm)->errorStatus 840 #endif 841 842 #ifndef rtmSetErrorStatus 843 # define rtmSetErrorStatus(rtm, val) (rtm)->errorStatus = ((val)) 844 #endif 845 846 #ifndef rtmIsFirstInitCond 847 # define rtmIsFirstInitCond(rtm) rtmGetT((rtm)) == (rtmGetTStart((rtm))) 848 #endif 849 850 #ifndef rtmIsMajorTimeStep 851 # define rtmIsMajorTimeStep(rtm) ((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP 852 #endif 853 854 #ifndef rtmIsMinorTimeStep 855 # define rtmIsMinorTimeStep(rtm) ((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP 856 #endif 857 858 #ifndef rtmIsSampleHit 859 # define rtmIsSampleHit(rtm, sti, tid) (rtmIsMajorTimeStep((rtm)) && (rtm)->Timing.sampleHits[(rtm)->Timing.sampleTimeTaskIDPtr[sti]]) 860 #endif 861 862 #ifndef rtmIsSpecialSampleHit 863 # define rtmIsSpecialSampleHit(rtm, sti, prom_sti, tid) (rtmIsMajorTimeStep((rtm)) && (rtm)->Timing.sampleHits[(rtm)->Timing.sampleTimeTaskIDPtr[sti]]) 864 #endif 865 866 #ifndef rtmGetStopRequested 867 # define rtmGetStopRequested(rtm) (rtm)->Timing.stopRequestedFlag 868 #endif 869 870 #ifndef rtmSetStopRequested 871 # define rtmSetStopRequested(rtm, val) (rtm)->Timing.stopRequestedFlag = ((val)) 872 #endif 873 874 #ifndef rtmGetT 875 # define rtmGetT(rtm) rtmGetTPtr((rtm))[0] 876 #endif 877 878 #ifndef rtmSetT 879 # define rtmSetT(rtm, val) rtmGetTPtr((rtm))[0] = ((val)) 880 #endif 881 882 #ifndef rtmGetTPtr 883 # define rtmGetTPtr(rtm) (rtm)->Timing.t 884 #endif 885 886 #ifndef rtmSetTPtr 887 # define rtmSetTPtr(rtm, val) (rtm)->Timing.t = ((val)) 888 #endif 889 890 #ifndef rtmGetTStart 891 # define rtmGetTStart(rtm) (rtm)->Timing.tStart 892 #endif 893 894 #ifndef rtmSetTStart 895 # define rtmSetTStart(rtm, val) (rtm)->Timing.tStart = ((val)) 896 #endif 897 898 #ifndef rtmGetTaskTime 899 # define rtmGetTaskTime(rtm, sti) rtmGetTPtr((rtm))[(rtm)->Timing.sampleTimeTaskIDPtr[sti]] 900 #endif 901 902 #ifndef rtmSetTaskTime 903 # define rtmSetTaskTime(rtm, sti, val) rtmGetTPtr((rtm))[sti] = ((val)) 904 #endif 905 906 /* Definition for use in the target main file */ 907 #define fadingchannelconstructed_rtModel rtModel_fadingchannelconstructed 908 909 extern Parameters rtP; /* parameters */ 910 911 /* 912 * These blocks were eliminated from the model due to optimizations: 913 * 914 * Block '<S6>/zoh' : Eliminated since input and output rates are identical 915 * Block '<S10>/zoh' : Eliminated since input and output rates are identical 916 */ 917 918 /* 919 * The generated code includes comments that allow you to trace directly 920 * back to the appropriate location in the model. The basic format 921 * is <system>/block_name, where system is the system number (uniquely 922 * assigned by Simulink) and block_name is the name of the block. 923 * 924 * Use the MATLAB hilite_system command to trace the generated code back 925 * to the model. For example, 926 * 927 * hilite_system('<S3>') - opens system 3 928 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 929 * 930 * Here is the system hierarchy for this model 931 * 932 * '<Root>' : fadingchannelconstructed 933 * '<S1>' : fadingchannelconstructed/Analytic Signal 934 * '<S2>' : fadingchannelconstructed/Gaussian Noise Generator 1 935 * '<S3>' : fadingchannelconstructed/Gaussian Noise Generator 2 936 * '<S4>' : fadingchannelconstructed/Model Info1 937 * '<S5>' : fadingchannelconstructed/Analytic Signal/Remez FIR Filter Design 938 * '<S6>' : fadingchannelconstructed/Gaussian Noise Generator 1/Discrete Constant 939 * '<S7>' : fadingchannelconstructed/Gaussian Noise Generator 1/Discrete Matrix Gain 940 * '<S8>' : fadingchannelconstructed/Gaussian Noise Generator 1/Frame Status Conversion 941 * '<S9>' : fadingchannelconstructed/Gaussian Noise Generator 1/Discrete Constant/Frame Status Conversion 942 * '<S10>' : fadingchannelconstructed/Gaussian Noise Generator 2/Discrete Constant 943 * '<S11>' : fadingchannelconstructed/Gaussian Noise Generator 2/Discrete Matrix Gain 944 * '<S12>' : fadingchannelconstructed/Gaussian Noise Generator 2/Frame Status Conversion 945 * '<S13>' : fadingchannelconstructed/Gaussian Noise Generator 2/Discrete Constant/Frame Status Conversion 946 */ 947 948 #endif /* _RTW_HEADER_fadingchannelconstructed_h_ */ |