/*
 * setting.h
 *
 *  Created on: Feb 16, 2012
 *      Author: RomanM
 */

#ifndef SETTING_H_
#define SETTING_H_

#include "../uIP/uip.h"

typedef struct {
	uip_ipaddr_t serverAddress;
	char devName[9];
	char password[9];
	uint16_t doorTimeout;
	uint16_t calibCh1;
	uint16_t calibCh2;
	uint16_t doorLockVoltage;
} setting_t;

extern setting_t setting;

void Setting_Load(void);
void Setting_Save(void);

#endif /* SETTING_H_ */
