📄 dspilbc_mic_duplex.mdl
字号:
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Concatenate
NumInputs "2"
ConcatenateDimension "1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Reshape
OutputDimensionality "1-D array"
OutputDimensions "[1,1]"
}
Block {
BlockType Squeeze
}
Block {
BlockType Abs
ZeroCross on
SampleTime "-1"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "fixdt(1,16,0)"
ConRadixGroup "Use specified scaling"
OutScaling "[]"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Lookup
InputValues "[-4:5]"
Table " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType MinMax
Function "min"
Inputs "1"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit via internal rule"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
}
Block {
BlockType DSPFlip
dim "Columns"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Courier New"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Courier New"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "dspilbc_dsp_mic_duplex"
Location [309, 399, 1482, 987]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "157"
ReportName "simulink-default.rpt"
Block {
BlockType FrameConversion
Name "Frame Conversion"
Position [210, 260, 265, 300]
ShowName off
OutFrame "Frame based"
}
Block {
BlockType Reference
Name "From Audio\nDevice"
Ports [0, 1]
Position [155, 104, 210, 156]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspsrcs4/From Audio\nDevice"
SourceType "From Audio Device"
deviceName "Default"
numChannels "1"
sampleRate "8000"
deviceDatatype "Determine from output data type"
autoBufferSize on
bufferSize "4096"
queueDuration "1.0"
frameSize "240"
outputDatatype "int16"
}
Block {
BlockType Reference
Name "To Audio Device"
Ports [1]
Position [525, 254, 580, 306]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/To Audio\nDevice"
SourceType "To Audio Device"
deviceName "Default"
inheritSampleRate off
sampleRate "8000"
deviceDatatype "Determine from input data type"
autoBufferSize on
bufferSize "4096"
queueDuration "0.5"
}
Block {
BlockType "M-S-Function"
Name "UDP Receive"
Ports [0, 1]
Position [95, 254, 170, 306]
ShowName off
FunctionName "dspUDPReceive"
Parameters "port, outputLength, sampleTime"
MaskPromptString "Port|Output signal length|Sample time (seconds)"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "port=@1;outputLength=@2;sampleTime=@3;"
MaskDisplay "disp(sprintf('UDP Receive'));\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "25000|98|0.03"
MaskTabNameString ",,"
}
Block {
BlockType "M-S-Function"
Name "UDP Send"
Ports [1]
Position [565, 105, 645, 155]
ShowName off
FunctionName "dspUDPSend"
Parameters "url, port"
MaskPromptString "URL|Port"
MaskStyleString "edit,edit"
MaskTunableValueString "off,off"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "url=&1;port=@2;"
MaskDisplay "disp(sprintf('UDP Send'));\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "localhost|25000"
MaskTabNameString ","
}
Block {
BlockType Reference
Name "iLBC Decoder"
Ports [1, 1]
Position [305, 243, 485, 317]
BackgroundColor "lightBlue"
ShowName off
SourceBlock "dspilbclib/iLBC Decoder"
SourceType "iLBC Decoder"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ilbcMode "13.33 kbits/sec (1 packet every 30 ms)"
PLCEnabled on
DataTypeIndex "Double precision"
}
Block {
BlockType Reference
Name "iLBC Encoder"
Ports [1, 1]
Position [300, 93, 480, 167]
BackgroundColor "lightBlue"
ShowName off
SourceBlock "dspilbclib/iLBC Encoder"
SourceType "iLBC Encoder"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ilbcMode "13.33 kbits/sec (1 packet every 30 ms)"
DataTypeIndex "Double precision"
}
Line {
SrcBlock "From Audio\nDevice"
SrcPort 1
DstBlock "iLBC Encoder"
DstPort 1
}
Line {
SrcBlock "iLBC Encoder"
SrcPort 1
DstBlock "UDP Send"
DstPort 1
}
Line {
SrcBlock "iLBC Decoder"
SrcPort 1
DstBlock "To Audio Device"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "iLBC Decoder"
DstPort 1
}
Line {
SrcBlock "UDP Receive"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Annotation {
Name "Original\nspeech"
Position [269, 107]
FontName "Arial"
}
Annotation {
Name "iLBC\npackets"
Position [614, 87]
FontName "Arial"
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . N 8 ( 0 % \" $ \" 0 . 0 8 ( ! % \" $ - 0 0 #0 %1O075D:6]$979I8V4 . 0 8 ( ! % \" $ ) 0 0 \"0 &1S<&1I86QO9P "
}
DataRecord {
Tag DataTag0
Data " %)30 . N 8 ( 0 % \" $ \" 0 . 0 8 ( ! % \" $ / 0 0 #P $9R;VU!=61I;T1E=FEC90 . 0 8 ( ! % \" $ ) 0 0 \"0 &1S<&1I86QO9P "
}
}
# Finite State Machines
#
# Stateflow Version 6.7 (R2007b) dated Aug 7 2007, 16:48:14
#
#
Stateflow {
machine {
id 1
name "dspilbc_dsp_mic_duplex"
created "07-Jun-2005 15:41:39"
isLibrary 0
firstTarget 2
sfVersion 67014000.000001
sfDemoChecksum [1140158880 2505281949 2648588033 2405528603]
}
target {
id 2
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 3]
}
target {
id 3
name "rtw"
codeFlags " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 elseifdetection=1 constantfolding=1 redundantloadelimination=0 preservenames=0 preservenameswithparent=0 exportcharts=0"
machine 1
linkNode [1 2 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -