You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
462 B
15 lines
462 B
#pragma once |
|
|
|
#include <stdint.h> |
|
#include "AP_HAL_Namespace.h" |
|
|
|
class AP_HAL::Storage { |
|
public: |
|
virtual void init() = 0; |
|
virtual bool erase(); |
|
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; |
|
virtual void _timer_tick(void) {}; |
|
virtual bool healthy(void) { return true; } |
|
virtual bool get_storage_ptr(void *&ptr, size_t &size) { return false; } |
|
};
|
|
|