📄 rfcomm_client_rx_freeport0_5.mdl
字号:
Position [295, 146, 330, 174]
Value "[double('0') double('0') double('0') double('0'"
") double('0')]"
}
Block {
BlockType Display
Name "Display Rx"
Ports [1]
Position [455, 203, 535, 307]
Decimation "1"
}
Block {
BlockType SubSystem
Name "FreePortComms_TX"
Tag "MC9S12Target_FreePortCom"
Ports [1]
Position [420, 54, 580, 156]
AncestorBlock "mc9S12tool/Send user data"
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_FPRXD_In_blkref')"
MaskPromptString "Sample time|Communication port|Baudrate|Channel"
" number|Number of elements|Data Type|Block sends raw data"
MaskStyleString "edit,popup(SCI0|SCI1|COM1|COM2|COM3|COM4),popup"
"(300|600|1200|2400|4800|9600|19200|38400|57600|115200),edit,edit,popup(SINGLE"
"|INT8|UINT8|INT16|UINT16|INT32|UINT32|BOOLEAN),checkbox"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,off,on,off,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "sampletime=@1;port=@2;baudrate=@3;channel=@4;bu"
"f_size=@5;data_type=@6;format=@7;"
MaskInitialization "[buf_sizestr, portNamestr, baudratestr, channel"
"str, data_type_str, sampletime_str] = mbc_freeporttxd(sampletime, port, baudr"
"ate, channel, buf_size, data_type, format);\n"
MaskDisplay "fprintf('Transmit %s element(s)\\nComm port: %s"
"\\nBaudrate: %s bps\\nChannel: %s\\nData type: %s\\n Sample rate: %s', buf_si"
"zestr, portNamestr, baudratestr, channelstr, data_type_str, sampletime_str)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1|SCI0|115200|0|5|UINT8|on"
System {
Name "FreePortComms_TX"
Location [542, 167, 996, 332]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 60, 65, 80]
FontSize 12
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [160, 56, 215, 84]
DataType "uint8"
}
Block {
BlockType "S-Function"
Name "SEND_VIA_FREE_PORT"
Tag "MC9S12target"
Ports [1]
Position [280, 49, 420, 91]
List {
ListType RTWdata
portStr "0"
portNameStr "SCI0"
baudrateStr "115200"
formatStr "1"
}
FontSize 12
FunctionName "freePortComms_txd"
Parameters "sampletime, channel, buf_size, data_type, p"
"ort, baudrate, format"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "SEND_VIA_FREE_PORT"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [355, 95, 375, 115]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType SubSystem
Name "rfComms_Client1"
Tag "MC9S12target_RFCOMMS"
Ports [0, 1]
Position [30, 30, 205, 180]
AncestorBlock "mc9S12tool/Send user data"
List {
ListType RTWdata
format "1"
RXTXmode "RX"
serverAddress "0xe7e7e7e7"
clientAddress "0xc2c2c2c2"
RFchannel "12"
ClientNum "1"
clientflagmask "2"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_FPRXD_In_blkref')"
MaskPromptString "Sample time|Communication mode (TX, RX)|RF chan"
"nel number (0 - 127)|Client number|Server address (4 bytes, hexadecimal notat"
"ion, e.g. 0xe7e7e7e7)|Client address (4 bytes, hexadecimal notation, e.g.: 0x"
"c2c2c2c2)|User channel number (1 - 10)|Number of elements to be sent/received"
"|Data Type|Block sends/receives raw data|Block output is 'double'"
MaskStyleString "edit,popup(Reception (RX)|Transmission (TX)),ed"
"it,popup(1|2|3|4|5),edit,edit,edit,edit,popup(SINGLE|INT8|UINT8|INT16|UINT16|"
"INT32|UINT32|BOOLEAN),checkbox,checkbox"
MaskTunableValueString "on,on,on,on,off,off,on,on,on,on,on"
MaskCallbackString "||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,off,on,off,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,"
MaskVariables "sampletime=@1;RXTXmode=@2;RFchannel=@3;clientNu"
"m=@4;serverAddress=&5;clientAddress=&6;channel=@7;buf_size=@8;data_type=@9;fo"
"rmat=@10;outformat=@11;"
MaskInitialization "[buf_sizestr, RXTXmodestr, RFchannelstr, client"
"str, serverAddressstr, clientAddressstr, channelstr, data_type_str, sampletim"
"e_str] = mbc_rfComms_client(sampletime, RXTXmode, RFchannel, clientNum, serve"
"rAddress, clientAddress, channel, buf_size, data_type, format, outformat);\n"
MaskDisplay "fprintf('RF mode: %s\\nRF channel: %s\\nClient:"
" %s\\nServer address: %s\\nClient address: %s\\nUser channel: %s\\nElements: "
"%s\\nData type: %s\\n Sample rate: %s', RXTXmodestr, RFchannelstr, clientstr,"
" serverAddressstr, clientAddressstr, channelstr, buf_sizestr, data_type_str, "
"sampletime_str)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1|Reception (RX)|12|1|0xe7e7e7e7|0xc2c2c2c2|0"
"|5|UINT8|on|on"
System {
Name "rfComms_Client1"
Location [416, 177, 1130, 342]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType DataTypeConversion
Name "Data Type Conversion Out"
Position [470, 52, 540, 88]
FontSize 12
DataType "double"
}
Block {
BlockType "S-Function"
Name "rfComms_client_sfnc"
Tag "MC9S12target_RFCOMMS"
Ports [0, 1]
Position [280, 49, 420, 91]
List {
ListType RTWdata
format "1"
RXTXmode "RX"
serverAddress "0xe7e7e7e7"
clientAddress "0xc2c2c2c2"
RFchannel "12"
ClientNum "1"
clientflagmask "2"
}
FontSize 12
FunctionName "rfComms_client"
Parameters "sampletime, RXTXmode, channel, buf_size, da"
"ta_type"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Outport
Name "Out1"
Position [590, 60, 610, 80]
FontSize 12
}
Line {
SrcBlock "rfComms_client_sfnc"
SrcPort 1
DstBlock "Data Type Conversion Out"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion Out"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "rfComms_Client1"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 150]
DstBlock "Display Rx"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "FreePortComms_TX"
DstPort 1
}
Line {
SrcBlock "'0'"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Annotation {
Name "receives 5 bytes via the \nradio link and sends"
" them to a terminal\nconnected to SCI0 (raw format)"
Position [155, 300]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -