2017-06-17 18:36:10 -05:00
|
|
|
#ifndef _PERSISTENT_STORE_H_
|
|
|
|
#define _PERSISTENT_STORE_H_
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace HAL {
|
|
|
|
namespace PersistentStore {
|
|
|
|
|
|
|
|
bool access_start();
|
|
|
|
bool access_finish();
|
|
|
|
bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc);
|
2017-10-18 14:00:29 -05:00
|
|
|
bool read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc);
|
2017-06-17 18:36:10 -05:00
|
|
|
|
2017-09-06 06:28:32 -05:00
|
|
|
} // PersistentStore
|
|
|
|
} // HAL
|
2017-06-17 18:36:10 -05:00
|
|
|
|
2017-09-06 06:28:32 -05:00
|
|
|
#endif // _PERSISTENT_STORE_H_
|