mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Device: Add logical disk size accessor
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef __LOGICALDISKINFOPACKET_H__
|
||||
#define __LOGICALDISKINFOPACKET_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "icsneo/communication/message/logicaldiskinfomessage.h"
|
||||
#include "icsneo/api/eventmanager.h"
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
#pragma pack(push,2)
|
||||
struct LogicalDiskInfoPacket {
|
||||
static std::shared_ptr<LogicalDiskInfoMessage> DecodeToMessage(const std::vector<uint8_t>& bytestream);
|
||||
|
||||
uint16_t isConnected;
|
||||
uint32_t numSectors;
|
||||
uint32_t hiddenSectors;
|
||||
uint32_t bytesPerSector;
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user