61 #if defined(MEMORY_CONSTRAINED_SYSTEM) 102 #define DM_COMPAT_VERSION 2ULL 104 #define DM_COMPAT_KEY ((DM_COMPAT_VERSION << 32) + (sizeof(struct mission_item_s) << 24) + \ 105 (sizeof(struct mission_s) << 16) + (sizeof(struct mission_stats_entry_s) << 12) + \ 106 (sizeof(struct mission_fence_point_s) << 8) + (sizeof(struct mission_safe_point_s) << 4) + \ 107 sizeof(struct dataman_compat_s)) 123 dm_persitence_t persistence,
163 dm_reset_reason restart_type
166 #if defined(FLASH_BASED_DATAMAN) 167 typedef struct dm_sector_descriptor_t {
171 } dm_sector_descriptor_t;
181 dm_flash_sector_description_set(
182 const dm_sector_descriptor_t *description
__EXPORT void dm_unlock(dm_item_t item)
Unlock all items of a type.
Definition of a mission consisting of mission items.
dm_reset_reason
The reason for the last reset.
__EXPORT int dm_lock(dm_item_t item)
Lock all items of a type.
__EXPORT int dm_restart(dm_reset_reason restart_type)
Tell the data manager about the type of the last reset.
__EXPORT ssize_t dm_write(dm_item_t item, unsigned index, dm_persitence_t persistence, const void *buffer, size_t buflen)
write to the data manager store
dm_item_t
Types of items that the data manager can store.
__EXPORT int dm_clear(dm_item_t item)
Erase all items of this type.
dm_persitence_t
Data persistence levels.
__EXPORT ssize_t dm_read(dm_item_t item, unsigned index, void *buffer, size_t buflen)
Retrieve from the data manager store.
#define NUM_MISSIONS_SUPPORTED
__EXPORT int dm_trylock(dm_item_t item)
Try to lock all items of a type (.