Files
Aaru/Aaru.Images/SuperCardPro/Constants.cs

50 lines
2.2 KiB
C#

// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Constants.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Disk image plugins.
//
// --[ Description ] ----------------------------------------------------------
//
// Contains constants for SuperCardPro flux 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-2025 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Images;
public sealed partial class SuperCardPro
{
/// <summary>SuperCardPro footer signature: "FPCS"</summary>
const uint FOOTER_SIGNATURE = 0x53435046;
/// <summary>SuperCardPro device default capture resolution: 25 nanoseconds.</summary>
const ushort DEFAULT_RESOLUTION = 25000;
/// <summary>SuperCardPro format full (with track offsets) header length.</summary>
const uint FULL_HEADER_OFFSET = 0x2b0;
/// <summary>SuperCardPro format header length (without track offsets).</summary>
const byte HEADER_OFFSET = 0x10;
/// <summary>SuperCardPro header signature: "SCP"</summary>
readonly byte[] _scpSignature = "SCP"u8.ToArray();
/// <summary>SuperCardPro track header signature: "TRK"</summary>
readonly byte[] _trkSignature = "TRK"u8.ToArray();
}