Files
Aaru/Aaru.Images/KryoFlux/Constants.cs
2026-04-04 21:11:46 +02:00

58 lines
2.3 KiB
C#

// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Constants.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Disk image plugins.
//
// --[ Description ] ----------------------------------------------------------
//
// Contains constants for KryoFlux STREAM images.
//
// --[ License ] --------------------------------------------------------------
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2026 Natalia Portillo
// ****************************************************************************/
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Images;
[SuppressMessage("ReSharper", "UnusedMember.Local")]
public sealed partial class KryoFlux
{
const string HOST_DATE = "host_date";
const string HOST_TIME = "host_time";
const string KF_NAME = "name";
const string KF_VERSION = "version";
const string KF_DATE = "date";
const string KF_TIME = "time";
const string KF_HW_ID = "hwid";
const string KF_HW_RV = "hwrv";
const string KF_SCK = "sck";
const string KF_ICK = "ick";
// Per KryoFlux spec: Clock frequencies for current hardware
// mck = Master Clock Frequency = ((18432000 * 73) / 14) / 2
// sck = Sample Frequency = mck / 2
// ick = Index Frequency = mck / 16
const double MCK = (18432000.0 * 73.0 / 14.0) / 2.0;
const double SCK = MCK / 2.0;
const double ICK = MCK / 16.0;
}