Storage.h 359 B

12345678910111213
  1. #pragma once
  2. #include <stdint.h>
  3. #include "AP_HAL_Namespace.h"
  4. class AP_HAL::Storage {
  5. public:
  6. virtual void init() = 0;
  7. virtual void read_block(void *dst, uint16_t src, size_t n) = 0;
  8. virtual void write_block(uint16_t dst, const void* src, size_t n) = 0;
  9. virtual void _timer_tick(void) {};
  10. virtual bool healthy(void) { return true; }
  11. };