59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
if (ssGetNumSFcnParams(S) != ssGetSFcnParamsCount(S)) {
return;
}
ssSetNumContStates(S, MTTNX);
ssSetNumDiscStates(S, 0);
if (!ssSetNumInputPorts(S, 1)) return;
ssSetInputPortWidth(S, 0, 1);
for (int i = 0; i < MTTNU; i++) {
ssSetInputPortDirectFeedThrough(S, i, 1);
}
if (!ssSetNumOutputPorts(S, MTTNY)) return;
for (int i = 0; i < MTTNY; i++) {
ssSetOutputPortWidth(S, i, 1);
}
|
|
<
>
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
if (ssGetNumSFcnParams(S) != ssGetSFcnParamsCount(S)) {
return;
}
ssSetNumContStates(S, MTTNX);
ssSetNumDiscStates(S, 0);
if (!ssSetNumInputPorts(S, MTTNU)) return;
for (int i = 0; i < MTTNU; i++) {
ssSetInputPortWidth(S, i, 1);
ssSetInputPortDirectFeedThrough(S, i, 1);
}
if (!ssSetNumOutputPorts(S, MTTNY)) return;
for (int i = 0; i < MTTNY; i++) {
ssSetOutputPortWidth(S, i, 1);
}
|