![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <storage.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Storage. | |
| uint32_t | storageid |
| Unique Id of this Storage in the Storage table. | |
| uint32_t | storagestate |
| Storage state (eg STORAGE_STATE_INSERTED). | |
| storage_device_read_proc | deviceread |
| A Device specific DeviceRead method implementing a standard Storage device interface. | |
| storage_device_write_proc | devicewrite |
| A Device specific DeviceWrite method implementing a standard Storage device interface. | |
| storage_device_erase_proc | deviceerase |
| A Device specific DeviceErase method implementing a standard Storage device interface. | |
| storage_device_control_proc | devicecontrol |
| A Device specific DeviceControl method implementing a standard Storage device interface. | |
| MUTEX_HANDLE | lock |
| Storage lock. | |
| uint32_t | targetid |
| SCSI ID. | |
| uint32_t | targetlun |
| LUN. | |
| uint32_t | blocksize |
| Block Size. | |
| int64_t | blockcount |
| Number of Blocks. | |
| uint32_t | blockshift |
| Shift Count for Blocks to Bytes conversion (eg 9 for 512 byte blocks). | |
| char * | vendor |
| ATA Model, SCSI Vendor. | |
| char * | product |
| ATA Serial No, SCSI Product. | |
| char * | revision |
| Firmware Revision. | |
| TIMER_HANDLE | statustimer |
| Timer for status change detection. | |
| uint64_t | readcount |
| uint64_t | readerrors |
| uint64_t | writecount |
| uint64_t | writeerrors |
| uint64_t | erasecount |
| uint64_t | eraseerrors |
| STORAGE_DEVICE * | prev |
| Previous entry in Storage table. | |
| STORAGE_DEVICE * | next |
| Next entry in Storage table. | |
| DEVICE device |
The Device entry for this Storage.
| uint32_t storageid |
Unique Id of this Storage in the Storage table.
| uint32_t storagestate |
Storage state (eg STORAGE_STATE_INSERTED).
| storage_device_read_proc deviceread |
A Device specific DeviceRead method implementing a standard Storage device interface.
| storage_device_write_proc devicewrite |
A Device specific DeviceWrite method implementing a standard Storage device interface.
| storage_device_erase_proc deviceerase |
A Device specific DeviceErase method implementing a standard Storage device interface.
| storage_device_control_proc devicecontrol |
A Device specific DeviceControl method implementing a standard Storage device interface.
| MUTEX_HANDLE lock |
Storage lock.
| uint32_t targetid |
SCSI ID.
| uint32_t targetlun |
LUN.
| uint32_t blocksize |
Block Size.
| int64_t blockcount |
Number of Blocks.
| uint32_t blockshift |
Shift Count for Blocks to Bytes conversion (eg 9 for 512 byte blocks).
| char* vendor |
ATA Model, SCSI Vendor.
| char* product |
ATA Serial No, SCSI Product.
| char* revision |
Firmware Revision.
| TIMER_HANDLE statustimer |
Timer for status change detection.
| uint64_t readcount |
| uint64_t readerrors |
| uint64_t writecount |
| uint64_t writeerrors |
| uint64_t erasecount |
| uint64_t eraseerrors |
| STORAGE_DEVICE* prev |
Previous entry in Storage table.
| STORAGE_DEVICE* next |
Next entry in Storage table.