ardupilot/libraries/AP_HAL/Storage.h

17 lines
357 B
C++

#ifndef __AP_HAL_STORAGE_H__
#define __AP_HAL_STORAGE_H__
#include <stdint.h>
#include "AP_HAL_Namespace.h"
class AP_HAL::Storage {
public:
virtual void init(void *) = 0;
virtual void read_block(void *dst, uint16_t src, size_t n) = 0;
virtual void write_block(uint16_t dst, const void* src, size_t n) = 0;
};
#endif // __AP_HAL_STORAGE_H__