Added FFTTerm to the StreamReader I/O.
Some checks failed
🚀 Pack skyscraper8 / make-zip (push) Failing after 37s

This commit is contained in:
feyris-tan 2026-05-09 20:38:32 +02:00
parent ecba6a5421
commit 8808dc92e0
7 changed files with 42 additions and 7 deletions

View File

@ -418,5 +418,10 @@ namespace skyscraper8.Skyscraper.FrequencyListGenerator
{
throw new NotImplementedException();
}
public bool FFTTerm()
{
throw new NotImplementedException();
}
}
}

View File

@ -504,12 +504,17 @@ namespace skyscraper8.Skyscraper.FrequencyListGenerator
public Version GetEngineVersion()
{
throw new NotImplementedException();
return ProxiedStreamReader.GetEngineVersion();
}
public string GetEngineName()
{
throw new NotImplementedException();
return ProxiedStreamReader.GetEngineName();
}
public bool FFTTerm()
{
return ProxiedStreamReader.FFTTerm();
}
}
}

View File

@ -496,7 +496,8 @@ namespace skyscraper5.Skyscraper.IO.CrazycatStreamReader
SR_AIRSCAN = 0x800000,
SR_CIRSCAN = 0x1000000,
SR_FFTSCAN = 0x2000000,
SR_CARESNO = 0x4000000
}
SR_CARESNO = 0x4000000,
SR_SETPOL = 0x8000000
}
}

View File

@ -433,5 +433,6 @@ namespace skyscraper5.Skyscraper.IO
/// </summary>
/// <returns>For example: "StreamReaderEx for BDA Tuners</returns>
string GetEngineName();
}
bool FFTTerm();
}
}

View File

@ -928,5 +928,22 @@ namespace skyscraper5.Skyscraper.IO.RemoteStreamReader
throw new NotImplementedException(result.ToString());
}
}
public bool FFTTerm()
{
TcpStream.WriteUInt32BE((uint)RemoteStreamReaderConstants.REQUEST_FFT_TERM);
TcpStream.Flush();
RemoteStreamReaderConstants result = (RemoteStreamReaderConstants)TcpStream.ReadUInt32BE();
switch (result)
{
case RemoteStreamReaderConstants.COMMAND_SUCCESSFUL:
return true;
case RemoteStreamReaderConstants.COMMAND_FAILED:
return false;
default:
throw new NotImplementedException(result.ToString());
}
}
}
}

View File

@ -41,6 +41,7 @@
REQUEST_GET_SIGNAL_EX_EX,
REQUEST_SKYSCRAPER_ENGINE_NAME,
REQUEST_SKYSCRAPER_ENGINE_VERSION,
REQUEST_RF_SCAN_2
}
REQUEST_RF_SCAN_2,
REQUEST_FFT_TERM
}
}

View File

@ -303,5 +303,10 @@ namespace skyscraper5.Skyscraper.IO.TunerInterface
{
return this.GetType().Name;
}
public bool FFTTerm()
{
return false;
}
}
}