Skip to content

Commit e51d850

Browse files
authored
Merge pull request #221 from kwesthaus/file-format-documentation
File format documentation
2 parents e90393b + 7af44bc commit e51d850

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Build instructions can be found here: https://github.com/miek/inspectrum/wiki/Bu
2323
## Input
2424
inspectrum supports the following file types:
2525
* `*.sigmf-meta, *.sigmf-data` - SigMF recordings
26-
* `*.cf32`, `*.cfile` - Complex 32-bit floating point samples (GNU Radio, osmocom_fft)
27-
* `*.cf64` - Complex 64-bit floating point samples
28-
* `*.cs32` - Complex 16-bit signed integer samples (SDRAngel)
29-
* `*.cs16` - Complex 16-bit signed integer samples (BladeRF)
30-
* `*.cs8` - Complex 8-bit signed integer samples (HackRF)
31-
* `*.cu8` - Complex 8-bit unsigned integer samples (RTL-SDR)
26+
* `*.cf32`, `*.fc32`, `*.cfile` - Complex 32-bit floating point samples (GNU Radio, osmocom_fft)
27+
* `*.cf64`, `*.fc64` - Complex 64-bit floating point samples
28+
* `*.cs32`, `*.sc32`, `*.c32` - Complex 32-bit signed integer samples (SDRAngel)
29+
* `*.cs16`, `*.sc16`, `*.c16` - Complex 16-bit signed integer samples (BladeRF)
30+
* `*.cs8`, `*.sc8`, `*.c8` - Complex 8-bit signed integer samples (HackRF)
31+
* `*.cu8`, `*.uc8` - Complex 8-bit unsigned integer samples (RTL-SDR)
3232
* `*.f32` - Real 32-bit floating point samples
3333
* `*.f64` - Real 64-bit floating point samples (MATLAB)
3434
* `*.s16` - Real 16-bit signed integer samples

src/inputsource.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ void InputSource::openFile(const char *filename)
362362
else if ((suffix == "cf64") || (suffix == "fc64")) {
363363
sampleAdapter = std::make_unique<ComplexF64SampleAdapter>();
364364
}
365+
else if ((suffix == "cs32") || (suffix == "sc32") || (suffix == "c32")) {
366+
sampleAdapter = std::make_unique<ComplexS32SampleAdapter>();
367+
}
365368
else if ((suffix == "cs16") || (suffix == "sc16") || (suffix == "c16")) {
366369
sampleAdapter = std::make_unique<ComplexS16SampleAdapter>();
367370
}

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
4141
QCoreApplication::translate("main", "Hz"));
4242
parser.addOption(rateOption);
4343
QCommandLineOption formatOption(QStringList() << "f" << "format",
44-
QCoreApplication::translate("main", "Set file format."),
44+
QCoreApplication::translate("main", "Set file format, options: cfile/cf32/fc32, cf64/fc64, cs32/sc32/c32, cs16/sc16/c16, cs8/sc8/c8, cu8/uc8, f32, f64, s16, s8, u8, sigmf-meta/sigmf-data."),
4545
QCoreApplication::translate("main", "fmt"));
4646
parser.addOption(formatOption);
4747

0 commit comments

Comments
 (0)