2018-09-01 19:22:46 +01:00
|
|
|
// /***************************************************************************
|
2020-02-27 12:31:25 +00:00
|
|
|
// Aaru Data Preservation Suite
|
2018-09-01 19:22:46 +01:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : Plextor.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
|
|
|
|
// Component : Core.
|
|
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Structures for Plextor features.
|
|
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as
|
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program 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 General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2020-12-31 23:08:23 +00:00
|
|
|
// Copyright © 2011-2021 Natalia Portillo
|
2018-09-01 19:22:46 +01:00
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
namespace Aaru.Core.Devices.Info
|
2018-09-01 19:22:46 +01:00
|
|
|
{
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Contains information about Plextor features
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public class Plextor
|
|
|
|
|
{
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Access time limit
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public byte AccessTimeLimit;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports setting book type bit for DVD+R
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool BitSetting;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports setting book type bit for DVD+R DL
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool BitSettingDl;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// CD read speed limit
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public byte CdReadSpeedLimit;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Time drive has spent reading CDs
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public uint CdReadTime;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// CD write speed limit
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public byte CdWriteSpeedLimit;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Time drive has spent writing CDs
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public uint CdWriteTime;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Total number of loaded discs
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public ushort Discs;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports test writing DVD+
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool DvdPlusWriteTest;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// DVD read limit
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public byte DvdReadSpeedLimit;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Time drive has spent reading DVDs
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public uint DvdReadTime;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Time drive has spent writing DVDs
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public uint DvdWriteTime;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Raw contents of EEPROM
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public byte[] Eeprom;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports GigaRec
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool GigaRec;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive will show recordable CDs as embossed
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool HidesRecordables;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive will hide sessions
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool HidesSessions;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports hiding recordable CDs and sessions
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool Hiding;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive is a DVD capable drive
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool IsDvd;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports PoweRec
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool PoweRec;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive has PoweRec enabled
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool PoweRecEnabled;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Last used PoweRec in KiB/sec
|
|
|
|
|
/// </summary>
|
2018-12-31 13:17:27 +00:00
|
|
|
public ushort PoweRecLast;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum supported PoweRec for currently inserted media in KiB/sec
|
|
|
|
|
/// </summary>
|
2018-12-31 13:17:27 +00:00
|
|
|
public ushort PoweRecMax;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Recommended supported PoweRec for currently inserted media in KiB/sec
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public ushort PoweRecRecommendedSpeed;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Selected supported PoweRec for currently inserted media in KiB/sec
|
|
|
|
|
/// </summary>
|
2018-12-31 13:17:27 +00:00
|
|
|
public ushort PoweRecSelected;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports SecuRec
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool SecuRec;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports SilentMode
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool SilentMode;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive has SilentMode enabled
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool SilentModeEnabled;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports SpeedRead
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool SpeedRead;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive has SpeedRead enabled
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool SpeedReadEnabled;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports VariRec
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool VariRec;
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Drive supports VariRec for DVDs
|
|
|
|
|
/// </summary>
|
2018-09-01 19:22:46 +01:00
|
|
|
public bool VariRecDvd;
|
|
|
|
|
}
|
|
|
|
|
}
|