20 #ifndef GNSS_SDR_BYTE_TO_SHORT_H 21 #define GNSS_SDR_BYTE_TO_SHORT_H 24 #include <gnuradio/blocks/char_to_short.h> 25 #include <gnuradio/blocks/file_sink.h> 39 std::string role,
unsigned int in_streams,
40 unsigned int out_streams);
44 inline std::string role()
override 52 return "Byte_To_Short";
55 inline size_t item_size()
override 57 return sizeof(int8_t);
60 void connect(gr::top_block_sptr top_block)
override;
61 void disconnect(gr::top_block_sptr top_block)
override;
62 gr::basic_block_sptr get_left_block()
override;
63 gr::basic_block_sptr get_right_block()
override;
66 gr::blocks::char_to_short::sptr gr_char_to_short_;
67 gr::blocks::file_sink::sptr file_sink_;
68 std::string dump_filename_;
69 std::string input_item_type_;
70 std::string output_item_type_;
72 unsigned int in_streams_;
73 unsigned int out_streams_;
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
std::string implementation() override
Returns "Byte_To_Short".
This abstract class represents an interface to GNSS blocks.
Adapts an 8-bits sample stream (IF) to a short int stream (IF)