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.
31 lines
798 B
31 lines
798 B
//
|
|
// Created by MightyPork on 2018/02/03.
|
|
//
|
|
|
|
#ifndef GEX_F072_TPL_SETTINGS_H
|
|
#define GEX_F072_TPL_SETTINGS_H
|
|
|
|
#ifndef TPL_INTERNAL
|
|
#error bad include!
|
|
#endif
|
|
|
|
#include "unit_base.h"
|
|
|
|
/** Allocate data structure and set defaults */
|
|
error_t TPL_preInit(Unit *unit);
|
|
|
|
/** Load from a binary buffer stored in Flash */
|
|
void TPL_loadBinary(Unit *unit, PayloadParser *pp);
|
|
|
|
/** Write to a binary buffer for storing in Flash */
|
|
void TPL_writeBinary(Unit *unit, PayloadBuilder *pb);
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
/** Parse a key-value pair from the INI file */
|
|
error_t TPL_loadIni(Unit *unit, const char *key, const char *value);
|
|
|
|
/** Generate INI file section for the unit */
|
|
void TPL_writeIni(Unit *unit, IniWriter *iw);
|
|
|
|
#endif //GEX_F072_TPL_SETTINGS_H
|
|
|