control scanning and record frequency domain statistics
sink that checks if its input stream consists of a counting sequence.
This sink is typically used to test the USRP “Counting Mode” or “Counting mode 32 bit”.
Parameters: | do_32bit – expect an interleaved 32 bit counter in stead of 16 bit counter (default false) |
---|
sink that checks if its input stream consists of a lfsr_32k sequence.
This sink is typically used along with gr_lfsr_32k_source_s to test the USRP using its digital loopback mode.
Given a stream of bits and access_code flags, assemble packets.
input: stream of bytes from gr_correlate_access_code_bb output: none. Pushes assembled packet into target queue.
The framer expects a fixed length header of 2 16-bit shorts containing the payload length, followed by the payload. If the 2 16-bit shorts are not identical, this packet is ignored. Better algs are welcome.
The input data consists of bytes that have two bits used. Bit 0, the LSB, contains the data bit. Bit 1 if set, indicates that the corresponding bit is the the first bit of the packet. That is, this bit is the first one after the access code.
Bit bucket.
process received bits looking for packet sync, header, and process bits into packet
return true if we detect carrier
compute avg magnitude squared.
input: gr_complex
Compute a running average of the magnitude squared of the the input. The level and indication as to whether the level exceeds threshold can be retrieved with the level and unmuted accessors.
compute avg magnitude squared.
input: gr_complex output: gr_float
Compute a running average of the magnitude squared of the the input. The level and indication as to whether the level exceeds threshold can be retrieved with the level and unmuted accessors.
compute avg magnitude squared.
input: float
Compute a running average of the magnitude squared of the the input. The level and indication as to whether the level exceeds threshold can be retrieved with the level and unmuted accessors.
Sink that allows a sample to be grabbed from Python.
unsigned char sink that writes to a vector
gr_complex sink that writes to a vector
float sink that writes to a vector
int sink that writes to a vector
short sink that writes to a vector
Write stream to file descriptor.
Write stream to file.
Close current output file.
Closes current output file and ignores any output until open is called to connect to another file.
if we’ve had an update, do it now.
Open filename and begin output to it.
turn on unbuffered writes for slower outputs
Histogram module.
Gather received items into messages and insert into msgq.
Building block for python oscilloscope module.
Accepts multiple float streams.
Write stream to an UDP socket.
Parameters: |
|
---|
Change the connection to a new destination.
Calls disconnect() to terminate any current connection first.
Send zero-length packet (if eof is requested) then stop sending.
Zero-byte packets can be interpreted as EOF by gr_udp_source. Note that disconnect occurs automatically when the sink is destroyed, but not when its top_block stops.
return the PAYLOAD_SIZE of the socket
Write stream to a Microsoft PCM (.wav) file.
Values must be floats within [-1;1]. Check gr_make_wavfile_sink() for extra info.
Closes the currently active file and completes the WAV header. Thread-safe.
Opens a new file and writes a WAV header. Thread-safe.
Set bits per sample. This will not affect the WAV file currently opened (see set_sample_rate()). If the value is neither 8 nor 16, the call is ignored and the current value is kept.
Set the sample rate. This will not affect the WAV file currently opened. Any following open() calls will use this new sample rate.