commit-gnuradio
[Top][All Lists]
Advanced

[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()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]