109int16_t
sm_init(uint8_t num_slots, uint32_t max_length_restrict);
132int16_t
sm_load(uint8_t slot,
void *save_data, uint16_t len);
150int16_t
sm_save(uint8_t slot,
const void *save_data, uint16_t len);
int16_t sm_load(uint8_t slot, void *save_data, uint16_t len)
Load previously saved data for the specified slot.
int16_t sm_save(uint8_t slot, const void *save_data, uint16_t len)
Save data to the specified slot.
int16_t sm_clear(uint8_t num_slots)
Deletes all save data from all save slots, and reinitializes the module to support the requested numb...
void sm_deinit(void)
Deinitialises save manager module. Usually you do not have to use this function.
int16_t sm_init(uint8_t num_slots, uint32_t max_length_restrict)
Initialise save manager module. Must be called once before invoking any other function in the module.
int16_t sm_delete(uint8_t slot)
Delete data from specified slot.
@ SM_STAT_ERR
Generic error.
Definition saveman.h:74
@ SM_STAT_OK
Success.
Definition saveman.h:75
@ SM_STAT_PARAM_ERR
Invalid parameter in function call.
Definition saveman.h:72
@ SM_STAT_HW_ERR
Flash chip hardware related error.
Definition saveman.h:73
@ SM_STAT_WARN_NO_DATA
Success, chip has no data saved.
Definition saveman.h:76