32 #ifndef STORAGE_INTERFACE_H 33 #define STORAGE_INTERFACE_H 35 #include <aditof/status_definitions.h> 69 const size_t bytesCount) = 0;
79 const size_t bytesCount) = 0;
97 #endif // STORAGE_INTERFACE_H
virtual aditof::Status open(void *handle)=0
Open the communication channel with the storage.
virtual aditof::Status write(const uint32_t address, const uint8_t *data, const size_t bytesCount)=0
Write data to storage.
virtual ~StorageInterface()=default
Destructor.
virtual aditof::Status read(const uint32_t address, uint8_t *data, const size_t bytesCount)=0
Read data from storage.
virtual aditof::Status getName(std::string &name) const =0
Retrieves the name of the storage.
Interface for storage of data. For example: EEPROM, Flash, file on disk, etc.
virtual aditof::Status close()=0
Close the communication channel with the storage.
Status
Status of any operation that the TOF sdk performs.