-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Michaeli
committed
Jan 31, 2024
1 parent
f8e06e1
commit 0967d60
Showing
4 changed files
with
148 additions
and
83 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
software/gr-caribouLite/examples/cariboulite_source_test/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# GNU Radio C++ Flow Graph CMakeLists.txt | ||
# | ||
# Title: Cariboulite Source Test | ||
# Author: Alon and David | ||
# GNU Radio version: v3.11.0.0git-604-gd7f88722 | ||
|
||
|
||
cmake_minimum_required(VERSION 3.8) | ||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
project(cariboulite_source_test) | ||
|
||
find_package(Gnuradio "3.11" COMPONENTS | ||
blocks | ||
fec | ||
fft | ||
filter | ||
analog | ||
digital | ||
dtv | ||
audio | ||
channels | ||
qtgui | ||
trellis | ||
uhd | ||
video-sdl | ||
vocoder | ||
wavelet | ||
zeromq | ||
) | ||
|
||
|
||
|
||
|
||
find_package(gnuradio-caribouLite) | ||
add_executable(cariboulite_source_test cariboulite_source_test.cpp) | ||
target_link_libraries(cariboulite_source_test | ||
gnuradio::gnuradio-blocks | ||
gnuradio::gnuradio-caribouLite | ||
) | ||
|
44 changes: 44 additions & 0 deletions
44
software/gr-caribouLite/examples/cariboulite_source_test/cariboulite_source_test.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/******************** | ||
GNU Radio C++ Flow Graph Source File | ||
Title: Cariboulite Source Test | ||
Author: Alon and David | ||
GNU Radio version: v3.11.0.0git-604-gd7f88722 | ||
********************/ | ||
|
||
#include "cariboulite_source_test.hpp" | ||
|
||
using namespace gr; | ||
|
||
|
||
cariboulite_source_test::cariboulite_source_test () { | ||
|
||
|
||
this->tb = gr::make_top_block("Cariboulite Source Test"); | ||
|
||
// Blocks: | ||
this->caribouLite_caribouLiteSource_0 = caribouLite::caribouLiteSource::make(0, false, 40.0, 2500000.0, 4000000.0, 900000000.0); | ||
|
||
this->blocks_null_sink_0 = blocks::null_sink::make(sizeof(gr_complex)*1); | ||
|
||
|
||
// Connections: | ||
this->tb->hier_block2::connect(this->caribouLite_caribouLiteSource_0, 0, this->blocks_null_sink_0, 0); | ||
} | ||
|
||
cariboulite_source_test::~cariboulite_source_test () { | ||
} | ||
|
||
// Callbacks: | ||
|
||
int main (int argc, char **argv) { | ||
|
||
cariboulite_source_test* top_block = new cariboulite_source_test(); | ||
top_block->tb->start(); | ||
std::cout << "Press Enter to quit: "; | ||
std::cin.ignore(); | ||
top_block->tb->stop(); | ||
top_block->tb->wait(); | ||
|
||
return 0; | ||
} |
44 changes: 44 additions & 0 deletions
44
software/gr-caribouLite/examples/cariboulite_source_test/cariboulite_source_test.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#ifndef CARIBOULITE_SOURCE_TEST_HPP | ||
#define CARIBOULITE_SOURCE_TEST_HPP | ||
/******************** | ||
GNU Radio C++ Flow Graph Header File | ||
Title: Cariboulite Source Test | ||
Author: Alon and David | ||
GNU Radio version: v3.11.0.0git-604-gd7f88722 | ||
********************/ | ||
|
||
/******************** | ||
** Create includes | ||
********************/ | ||
#include <gnuradio/top_block.h> | ||
#include <gnuradio/caribouLite/caribouLiteSource.h> | ||
#include <gnuradio/blocks/null_sink.h> | ||
|
||
|
||
|
||
using namespace gr; | ||
|
||
|
||
|
||
class cariboulite_source_test { | ||
|
||
private: | ||
|
||
|
||
caribouLite::caribouLiteSource::sptr caribouLite_caribouLiteSource_0; | ||
blocks::null_sink::sptr blocks_null_sink_0; | ||
|
||
|
||
|
||
public: | ||
top_block_sptr tb; | ||
cariboulite_source_test(); | ||
~cariboulite_source_test(); | ||
|
||
|
||
}; | ||
|
||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters