📄 example6_acc_common.h
字号:
/*
* example6_acc_common.h
*
* Real-Time Workshop code generation for Simulink model "example6_acc.mdl".
*
* Model Version : 1.42
* Real-Time Workshop file version : 4.1 $Date: 2001/05/16 13:59:43 $
* Real-Time Workshop file generated on : Sun May 18 17:35:27 2003
* TLC version : 4.1 (May 19 2001)
* C source code generated on : Sun May 18 17:35:27 2003
*
* Relevant TLC Options:
* InlineParameters = 0
* RollThreshold = 5
* CodeFormat = S-Function
*
* Simulink model settings:
* Solver : VariableStep
* StartTime : 0.0 s
* StopTime : 10.0 s
* Variable step solver used
*/
#ifndef _RTW_COMMON_HEADER_FILE_example6_acc_
#define _RTW_COMMON_HEADER_FILE_example6_acc_
#define S_FUNCTION_NAME simulink_only_sfcn
#define S_FUNCTION_LEVEL 2
#define RTW_GENERATED_S_FUNCTION
#ifndef TRUE
# define TRUE (1)
#endif
#ifndef FALSE
# define FALSE (0)
#endif
#define fcn_call_T real_T
#define pointer_T void*
#define action_T real_T
#define rt_VALIDATE_MEMORY(S, ptr) if(!(ptr)) {\
ssSetErrorStatus((S), RT_MEMORY_ALLOCATION_ERROR);\
return;\
}
#if !defined(_WIN32)
#define rt_FREE(ptr) if((ptr) != NULL) {\
free((ptr));\
(ptr) = NULL;\
}
#else
/* Visual and other windows compilers delcare free without const! */
#define rt_FREE(ptr) if((ptr) != NULL) {\
free((void *)(ptr));\
(ptr) = NULL;\
}
#endif
#include "dsp_rt.h" /* DSP Blockset general run time support functions */
#include "simstruc.h"
#include <stdlib.h>
#include <math.h>
/*
* Block I/O Structure
*
* Note: Individual field names are derived from the signal name when
* present, otherwise, field names are derived from the source block name
* with an optional port number appened to the block name if the block has
* multiple output ports. The comment to the right of structure field
* contains the signal source block name.
*
*/
typedef struct example6_BlockIO_tag {
creal_T M_PSK_Modulator_Baseband[6]; /* <S2>/M-PSK Modulator Baseband */
creal_T Random_Source_b[6]; /* <S1>/Random Source */
creal_T Dynamic_AWGN[6]; /* <S1>/Dynamic AWGN */
real_T Reshape[3]; /* <S3>/Reshape */
real_T Convolutional_Encoder[6]; /* <Root>/Convolutional Encoder */
real_T Viterbi_Decoder[3]; /* <Root>/Viterbi Decoder */
real_T Error_Rate_Calculation[3]; /* <Root>/Error Rate Calculation */
real_T Complex_to_Real_Imag[6]; /* <Root>/Complex to Real-Imag */
} example6_BlockIO;
/*
* Default Parameters Structure
*
* Note: The parameters structure contains all the block parameters
* in the model. Individual field names are comprised of the block and
* parameter name.
*
*/
typedef struct example6_Parameters_tag {
real_T Random_Source_a_Min; /* Expression: Min
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Random Source
*/
real_T Random_Source_a_Max; /* Expression: Max
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Random Source
*/
real_T Random_Source_a_InitSeed; /* Expression: SFcnSeed
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Random Source
*/
real_T Random_Source_a_DialogSeed; /* Expression: Seed
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Random Source
*/
real_T Constant_Value[3]; /* Expression: Value
* External Mode Tunable: yes
* Referenced by block:
* <S4>/Constant
*/
real_T Frame_Status_Conversion_a_P1; /* Expression: growRefPort
* External Mode Tunable: yes
* Referenced by block:
* <S4>/Frame Status Conversion
*/
real_T Frame_Status_Conversion_a_P2; /* Expression: outframe
* External Mode Tunable: yes
* Referenced by block:
* <S4>/Frame Status Conversion
*/
real_T Frame_Status_Conversion_b_P1; /* Expression: growRefPort
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Frame Status Conversion
*/
real_T Frame_Status_Conversion_b_P2; /* Expression: outframe
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Frame Status Conversion
*/
real_T Reshape_P1; /* Expression: OutputDimensionality
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Reshape
*/
real_T Reshape_P2[2]; /* Expression: OutputDimensions
* External Mode Tunable: yes
* Referenced by block:
* <S3>/Reshape
*/
real_T Convolutional_Encoder_P1_Size[2];/* Computed Parameter: P1Size
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P1; /* Expression: s.k
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P2_Size[2];/* Computed Parameter: P2Size
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P2; /* Expression: s.n
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P3_Size[2];/* Computed Parameter: P3Size
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P3; /* Expression: s.numStates
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P4_Size[2];/* Computed Parameter: P4Size
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P4[128];/* Expression: s.outputs
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P5_Size[2];/* Computed Parameter: P5Size
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P5[128];/* Expression: s.nextStates
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P6_Size[2];/* Computed Parameter: P6Size
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T Convolutional_Encoder_P6; /* Expression: s.reset
* External Mode Tunable: yes
* Referenced by block:
* <Root>/Convolutional Encoder
*/
real_T M_PSK_Modulator_Baseband_P1_Siz[2];/* Computed Parameter: P1Size
* External Mode Tunable: yes
* Referenced by block:
* <S2>/M-PSK Modulator Baseband
*/
real_T M_PSK_Modulator_Baseband_P1; /* Expression: M
* External Mode Tunable: yes
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -