SDR File Reader Library
sdr_file_reader is a Rust library for reading and parsing Software Defined Radio (SDR) files. It supports a wide range of sample formats, including unsigned and signed 8-bit and 16-bit integers, as well as 32-bit and 64-bit floating-point numbers. The library provides an easy interface for converting raw SDR data into complex samples that can be used for further processing.
Features
- Supports multiple sample types:
u8,i8,i16,u16,f32, andf64. - Converts raw SDR data into complex samples (
Complex<f32>orComplex<f64>). - Efficient reading of SDR files in configurable chunks.
Installation
Add the following to your Cargo.toml:
[]
= "0.1.0"
Usage
Here is an example of how to use the sdr_file_reader library to read SDR data from a file:
use ;
Sample Types
The SampleType enum represents the different formats of samples that can be used in SDR files:
U8: Unsigned 8-bit integerI8: Signed 8-bit integerI16: Signed 16-bit integerU16: Unsigned 16-bit integerF32: 32-bit floating pointF64: 64-bit floating point
License
This project is licensed under the MIT License.