2012-12-12 18:04:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __AP_HAL_AVR_SITL_STORAGE_H__
|
|
|
|
#define __AP_HAL_AVR_SITL_STORAGE_H__
|
|
|
|
|
|
|
|
#include <AP_HAL.h>
|
|
|
|
#include "AP_HAL_AVR_SITL_Namespace.h"
|
|
|
|
|
2012-12-13 18:57:01 -04:00
|
|
|
class AVR_SITL::SITLEEPROMStorage : public AP_HAL::Storage {
|
2012-12-12 18:04:27 -04:00
|
|
|
public:
|
|
|
|
SITLEEPROMStorage() {
|
|
|
|
_eeprom_fd = -1;
|
|
|
|
}
|
|
|
|
void init(void* machtnichts) {}
|
2014-08-13 01:59:28 -03:00
|
|
|
void read_block(void *dst, uint16_t src, size_t n);
|
2013-06-04 01:02:13 -03:00
|
|
|
void write_block(uint16_t dst, const void* src, size_t n);
|
2012-12-12 18:04:27 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
int _eeprom_fd;
|
|
|
|
void _eeprom_open(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __AP_HAL_AVR_SITL_STORAGE_H__
|