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.
18 lines
394 B
18 lines
394 B
#pragma once |
|
|
|
#include <AP_HAL/AP_HAL.h> |
|
#include "AP_HAL_SITL_Namespace.h" |
|
|
|
class HALSITL::EEPROMStorage : public AP_HAL::Storage { |
|
public: |
|
EEPROMStorage() { |
|
_eeprom_fd = -1; |
|
} |
|
void init() {} |
|
void read_block(void *dst, uint16_t src, size_t n); |
|
void write_block(uint16_t dst, const void* src, size_t n); |
|
|
|
private: |
|
int _eeprom_fd; |
|
void _eeprom_open(void); |
|
};
|
|
|