add packet_pad, string_to_blob, pdu_to_blob and periodic_msg_source

This commit is contained in:
Bastian Bloessl
2013-06-02 11:48:46 +02:00
parent f6678c7624
commit 777f104199
16 changed files with 778 additions and 0 deletions
+4
View File
@@ -20,6 +20,10 @@
install(FILES
ccs_burst_tagger.xml
ccs_packet_dropper.xml
ccs_packet_pad.xml
ccs_pdu_to_blob.xml
ccs_periodic_msg_source.xml
ccs_string_to_blob.xml
ccs_wireshark_connector.xml
DESTINATION share/gnuradio/grc/blocks
)
+52
View File
@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<block>
<name>Packet Pad</name>
<key>ccs_packet_pad</key>
<category>CCS</category>
<import>import ccs</import>
<make>ccs.packet_pad($debug, $pad_front, $pad_tail)</make>
<param>
<name>Debug</name>
<key>debug</key>
<value>False</value>
<type>bool</type>
<option>
<name>Enable</name>
<key>True</key>
</option>
<option>
<name>Disable</name>
<key>False</key>
</option>
</param>
<param>
<name>Pad Front</name>
<key>pad_front</key>
<value>0</value>
<type>int</type>
</param>
<param>
<name>Pad Tail</name>
<key>pad_tail</key>
<value>0</value>
<type>int</type>
</param>
<sink>
<name>in</name>
<type>complex</type>
<nports>1</nports>
</sink>
<source>
<name>out</name>
<type>complex</type>
<nports>1</nports>
</source>
</block>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<block>
<name>PDU to Blob</name>
<key>ccs_pdu_to_blob</key>
<category>CCS</category>
<import>import ccs</import>
<make>ccs.pdu_to_blob()</make>
<sink>
<name>in</name>
<type>message</type>
</sink>
<source>
<name>out</name>
<type>message</type>
</source>
</block>
+47
View File
@@ -0,0 +1,47 @@
<?xml version="1.0"?>
<block>
<name>Periodic Message Source</name>
<key>ccs_periodic_msg_source</key>
<category>CCS</category>
<import>import ccs</import>
<make>ccs..periodic_msg_source($msg, $interval, $num, $debug)</make>
<param>
<name>Message PMT</name>
<key>msg</key>
<value>pmt.pmt_intern("Hello World!")</value>
<type>raw</type>
</param>
<param>
<name>Period (ms)</name>
<key>interval</key>
<value>1000</value>
<type>real</type>
</param>
<param>
<name>Debug</name>
<key>debug</key>
<value>False</value>
<type>bool</type>
<option>
<name>Enable</name>
<key>True</key>
</option>
<option>
<name>Disable</name>
<key>False</key>
</option>
</param>
<param>
<name>Num Messages</name>
<key>num</key>
<value>-1</value>
<type>int</type>
</param>
<source>
<name>out</name>
<type>message</type>
<optional>1</optional>
</source>
</block>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<block>
<name>String to Blob</name>
<key>ccs_string_to_blob</key>
<category>CCS</category>
<import>import cccs</import>
<make>ccs.string_to_blob()</make>
<sink>
<name>in</name>
<type>message</type>
</sink>
<source>
<name>out</name>
<type>message</type>
</source>
</block>