-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
orgainzed more stuff. Tests failing probably due to gnuradio's stubbo…
…rn not-enough-samples issue. Added temporary patch for that but further investigation is required
- Loading branch information
1 parent
82afda2
commit d6b05b0
Showing
15 changed files
with
189 additions
and
119 deletions.
There are no files selected for viewing
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 @@ | ||
--- |
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,3 @@ | ||
Start testing: Aug 24 20:30 EDT | ||
---------------------------------------------------------- | ||
End testing: Aug 24 20:30 EDT |
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
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
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
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
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
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
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,12 @@ | ||
#include "common.h" | ||
|
||
namespace gr{ | ||
namespace UTAT_HERON{ | ||
namespace utils{ | ||
|
||
const char* access_code = "101010101010101010101010101010101010101001111110"; | ||
const char* trimmed_access_code = access_code + access_code_front_trim; | ||
|
||
} | ||
} | ||
} |
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,24 @@ | ||
#include <cstdint> | ||
#include <gnuradio/UTAT_HERON/header_format_esttc.h> | ||
|
||
namespace gr{ | ||
namespace UTAT_HERON{ | ||
namespace utils{ | ||
namespace crc{ | ||
|
||
constexpr int num_bits = 16; | ||
constexpr uint64_t poly = 0x1021; | ||
constexpr uint64_t inital_value = 0xFFFF; | ||
constexpr uint64_t final_xor = 0x0000; | ||
constexpr bool input_reflected = false; | ||
constexpr bool result_reflected = false; | ||
|
||
} | ||
|
||
extern const char* access_code; | ||
constexpr int access_code_front_trim = 8; | ||
extern const char* trimmed_access_code; | ||
|
||
} | ||
} | ||
} |
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,36 @@ | ||
#include "pdu_lambda.h" | ||
|
||
namespace gr{ | ||
namespace UTAT_HERON{ | ||
namespace utils{ | ||
|
||
pdu_lambda::sptr pdu_lambda::make(pdu_lambda::func callback){ | ||
return gnuradio::make_block_sptr<pdu_lambda>(callback); | ||
} | ||
|
||
pdu_lambda::pdu_lambda(pdu_lambda::func callback): | ||
gr::sync_block( | ||
"pdu_lambda", | ||
gr::io_signature::make(0,0,0), | ||
gr::io_signature::make(0,0,0) | ||
), | ||
callback(callback) | ||
{ | ||
message_port_register_in(pmt::mp("pdu_in")); | ||
message_port_register_out(pmt::mp("pdu_out")); | ||
|
||
set_msg_handler(pmt::mp("pdu_in"), [this](pmt::pmt_t pdu){ | ||
this->callback(pdu); | ||
message_port_pub(pmt::mp("pdu_out"), pdu); | ||
}); | ||
} | ||
|
||
int pdu_lambda::work( | ||
int noutput_items, | ||
gr_vector_const_void_star& input_items, | ||
gr_vector_void_star& output_items | ||
){ return 0; } | ||
|
||
} | ||
} | ||
} |
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,29 @@ | ||
|
||
#include <gnuradio/sync_block.h> | ||
#include <functional> | ||
|
||
namespace gr{ | ||
namespace UTAT_HERON{ | ||
namespace utils{ | ||
|
||
class pdu_lambda : public gr::sync_block{ | ||
private: | ||
typedef std::function<void(pmt::pmt_t)> func; | ||
func callback; | ||
public: | ||
|
||
pdu_lambda(func callback); | ||
|
||
int work( | ||
int noutput_items, | ||
gr_vector_const_void_star& input_items, | ||
gr_vector_void_star& output_items | ||
) override; | ||
|
||
typedef std::shared_ptr<pdu_lambda> sptr; | ||
static sptr make(func callback); | ||
}; | ||
|
||
} | ||
} | ||
} |
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
Oops, something went wrong.