GEX core repository.
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.
gex-core/units/template/_tpl_internal.h

47 lines
1.1 KiB

//
// Created by MightyPork on 2018/02/03.
//
#ifndef GEX_F072_TPL_INTERNAL_H
#define GEX_F072_TPL_INTERNAL_H
#ifndef TPL_INTERNAL
#error bad include!
#endif
#include "unit_base.h"
/** Private data structure */
struct priv {
// settings
// internal state
};
6 years ago
/** Allocate data structure and set defaults */
6 years ago
error_t UTPL_preInit(Unit *unit);
6 years ago
/** Load from a binary buffer stored in Flash */
6 years ago
void UTPL_loadBinary(Unit *unit, PayloadParser *pp);
6 years ago
/** Write to a binary buffer for storing in Flash */
6 years ago
void UTPL_writeBinary(Unit *unit, PayloadBuilder *pb);
6 years ago
// ------------------------------------------------------------------------
/** Parse a key-value pair from the INI file */
6 years ago
error_t UTPL_loadIni(Unit *unit, const char *key, const char *value);
6 years ago
/** Generate INI file section for the unit */
6 years ago
void UTPL_writeIni(Unit *unit, IniWriter *iw);
6 years ago
// ------------------------------------------------------------------------
/** Finalize unit set-up */
6 years ago
error_t UTPL_init(Unit *unit);
6 years ago
/** Tear down the unit */
6 years ago
void UTPL_deInit(Unit *unit);
6 years ago
#endif //GEX_F072_TPL_INTERNAL_H