17 #ifndef GNSS_SDR_BYTE_TO_SHORT_H 18 #define GNSS_SDR_BYTE_TO_SHORT_H 21 #include <gnuradio/blocks/char_to_short.h> 22 #include <gnuradio/blocks/file_sink.h> 44 std::string role,
unsigned int in_streams,
45 unsigned int out_streams);
49 inline std::string role()
override 57 return "Byte_To_Short";
60 inline size_t item_size()
override 62 return sizeof(int8_t);
65 void connect(gr::top_block_sptr top_block)
override;
66 void disconnect(gr::top_block_sptr top_block)
override;
67 gr::basic_block_sptr get_left_block()
override;
68 gr::basic_block_sptr get_right_block()
override;
71 gr::blocks::char_to_short::sptr gr_char_to_short_;
72 gr::blocks::file_sink::sptr file_sink_;
73 std::string dump_filename_;
74 std::string input_item_type_;
75 std::string output_item_type_;
77 unsigned int in_streams_;
78 unsigned int out_streams_;
85 #endif // GNSS_SDR_BYTE_TO_SHORT_H 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)