SignalProcessingブロックの作成:C++

「SignalProcessingブロックの作成:C++」の編集履歴(バックアップ)一覧に戻る

SignalProcessingブロックの作成:C++ - (2011/04/27 (水) 00:52:23) のソース

*Pythonとの切り分けは?
From the Python point of view, GNU Radio provides a data flow abstraction.
パイソンはデータフロウの概要を提供する。
From the high level point-of-view, infinite streams of data flow through the ports. At the C++ level, streams are dealt with in convenient sized pieces, represented as contiguous arrays of the underlying type.
C++ブロックは潜在に潜む配列によって切り分けられたストリームが扱われる。
*3つのファイルが必要
-xxx.h, xxx.cc #新しいクラスを定義するのに必要。
-xxx.i, SwigにどうやってクラスをPythonにインポートさせるかを教えるのに必要。
*型の指定
-f - single precision floating point
-c - complex<float>
-s - short (16-bit integer)
-i - integer (32-bit integer)
----