Add ASCII View

Closes #27
but only for SCSI and SATA, NVMe ASCII View is not yet implemented
This commit is contained in:
spiros
2025-02-06 00:20:21 +02:00
parent 3dcb98be15
commit 36f554c9be
37 changed files with 1106 additions and 37 deletions

19
src/asciiview.h Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include <QString>
#include <QVector>
#define SMART_READ_CMD_LEN 12
#define INQUIRY_CMD_LEN 6
#define SMART_READ_RESP_LEN 512
#define INQUIRY_RESP_LEN 96
#define SENSE_BUFFER_LEN 32
class AsciiView
{
public:
AsciiView() = default;
QVector<unsigned char> readSMARTData(const QString& device_path);
QString hexDump(const QVector<unsigned char> &data);
};