
#ifndef _FLASH_SAVE_H
#define _FLASH_SAVE_H

#include <stdint.h>

// Definice
#define FLASHSAVE_INIT			0
#define FLASHSAVE_PWMMAX_1		1
#define FLASHSAVE_PWMMAX_2		2
#define FLASHSAVE_PWMMAX_3		3
#define FLASHSAVE_PWMMAX_4		4
#define FLASHSAVE_PWMMAX_5		5
#define FLASHSAVE_IP_0_1		6
#define FLASHSAVE_IP_2_3		7
#define FLASHSAVE_MASKA_0_1		8
#define FLASHSAVE_MASKA_2_3		9
#define FLASHSAVE_GATE_0_1		10
#define FLASHSAVE_GATE_2_3		11
#define FLASHSAVE_MAC_0_1		12
#define FLASHSAVE_MAC_2_3		13
#define FLASHSAVE_MAC_4_5		14
#define FLASHSAVE_FANTEMP_0		15
#define FLASHSAVE_FANTEMP_1		16
#define FLASHSAVE_FANTEMP_2		17
#define FLASHSAVE_FANTEMP_3		18
#define FLASHSAVE_FANVAL_0		19
#define FLASHSAVE_FANVAL_1		20
#define FLASHSAVE_FANVAL_2		21
#define FLASHSAVE_FANVAL_3		22
#define FLASHSAVE_SHUTDOWNTEMP	23
#define FLASHSAVE_LEDREZIM		24
#define FLASHSAVE_HTTPPORT		25
#define FLASHSAVE_UDPPORT		26
#define FLASHSAVE_TELNETPORT	27
#define FLASHSAVE_SERVERENABLE	28

// Prototypy funkci
uint8_t FlashSave_Save16(uint16_t adresa, uint16_t hodnota);
uint8_t FlashSave_Save8_high(uint16_t adresa, uint8_t hodnota);
uint8_t FlashSave_Save8_low(uint16_t adresa, uint8_t hodnota);
uint8_t FlashSave_Load16(uint16_t adresa, uint16_t *hodnota);
uint8_t FlashSave_Load8_high(uint16_t adresa, uint8_t *hodnota);
uint8_t FlashSave_Load8_low(uint16_t adresa, uint8_t *hodnota);
void FlashSave_LoadConfig(void);
#endif

/* Konec souboru */
