[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/07: grc: Added bits (unpacked bytes) as
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/07: grc: Added bits (unpacked bytes) as a data type |
Date: |
Wed, 11 May 2016 17:41:07 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit e5fb26672309ed35046bcbe776bd62ee6a6e955c
Author: Martin Braun <address@hidden>
Date: Sat Apr 30 17:07:01 2016 -0700
grc: Added bits (unpacked bytes) as a data type
Note: Sizeof is left at 1, so this causes no warnings where flow graphs
used to work.
---
grc/blocks/pad_sink.xml | 5 +++++
grc/blocks/pad_source.xml | 5 +++++
grc/core/Constants.py | 11 +++++++----
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/grc/blocks/pad_sink.xml b/grc/blocks/pad_sink.xml
index b022fa3..8ea8871 100644
--- a/grc/blocks/pad_sink.xml
+++ b/grc/blocks/pad_sink.xml
@@ -44,6 +44,11 @@
<opt>size:gr.sizeof_char</opt>
</option>
<option>
+ <name>Bits</name>
+ <key>bit</key>
+ <opt>size:gr.sizeof_char</opt>
+ </option>
+ <option>
<name>Message</name>
<key>message</key>
<opt>size:0</opt>
diff --git a/grc/blocks/pad_source.xml b/grc/blocks/pad_source.xml
index c0fb19e..3d8ccbe 100644
--- a/grc/blocks/pad_source.xml
+++ b/grc/blocks/pad_source.xml
@@ -44,6 +44,11 @@
<opt>size:gr.sizeof_char</opt>
</option>
<option>
+ <name>Bits</name>
+ <key>bit</key>
+ <opt>size:gr.sizeof_char</opt>
+ </option>
+ <option>
<name>Message</name>
<key>message</key>
<opt>size:0</opt>
diff --git a/grc/core/Constants.py b/grc/core/Constants.py
index 9fe805f..1d1a17e 100644
--- a/grc/core/Constants.py
+++ b/grc/core/Constants.py
@@ -1,5 +1,5 @@
"""
-Copyright 2008-2015 Free Software Foundation, Inc.
+Copyright 2008-2016 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
@@ -86,7 +86,8 @@ GRC_COLOR_LIME = '#CDDC39'
GRC_COLOR_TEAL = '#009688'
GRC_COLOR_YELLOW = '#FFEB3B'
GRC_COLOR_PINK = '#F50057'
-GRC_COLOR_LIGHT_PURPLE = '#E040FB'
+GRC_COLOR_PURPLE_A100 = '#EA80FC'
+GRC_COLOR_PURPLE_A400 = '#D500F9'
GRC_COLOR_DARK_GREY = '#72706F'
GRC_COLOR_GREY = '#BDBDBD'
GRC_COLOR_WHITE = '#FFFFFF'
@@ -103,7 +104,8 @@ CORE_TYPES = ( # name, key, sizeof, color
('Integer 64', 's64', 8, GRC_COLOR_LIME),
('Integer 32', 's32', 4, GRC_COLOR_TEAL),
('Integer 16', 's16', 2, GRC_COLOR_YELLOW),
- ('Integer 8', 's8', 1, GRC_COLOR_LIGHT_PURPLE),
+ ('Integer 8', 's8', 1, GRC_COLOR_PURPLE_A400),
+ ('Bits (unpacked byte)', 'bit', 1, GRC_COLOR_PURPLE_A100),
('Message Queue', 'msg', 0, GRC_COLOR_DARK_GREY),
('Async Message', 'message', 0, GRC_COLOR_GREY),
('Bus Connection', 'bus', 0, GRC_COLOR_WHITE),
@@ -115,7 +117,8 @@ ALIAS_TYPES = {
'float': (4, GRC_COLOR_ORANGE),
'int': (4, GRC_COLOR_TEAL),
'short': (2, GRC_COLOR_YELLOW),
- 'byte': (1, GRC_COLOR_LIGHT_PURPLE),
+ 'byte': (1, GRC_COLOR_PURPLE_A400),
+ 'bits': (1, GRC_COLOR_PURPLE_A100),
}
TYPE_TO_COLOR = dict()
- [Commit-gnuradio] [gnuradio] branch master updated (6c2851d -> 2aec2ff), git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 06/07: Merge branch 'maint', git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 04/07: grc: Added bits (unpacked bytes) as a data type,
git <=
- [Commit-gnuradio] [gnuradio] 03/07: added options to query the full configuration as read by gr::prefs, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 05/07: Merge remote-tracking branch 'mmueller/gr-conf-info-add-config-queries', git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 02/07: added user settings directory as a gr::-accessible path, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 07/07: Merge remote-tracking branch 'nwest/uhd-add-tag-cmd', git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 01/07: uhd: add command handler to add a time tag, git, 2016/05/11