//----------------------------------------------------
/**
	\file		appiodef.h

	\brief		Namapovani IO na konkretni vstupy a vystupy
				<<< HCC02 >>>

	\author		ConTeK s.r.o., Jakub Kastner
	\version	01.01
	\date		23.5.2012
*/
//----------------------------------------------------

#ifndef _APPIODEF_H_
#define _APPIODEF_H_

#include <ioboard.h>
#include "XmlTypes.h"

#define		IOBOARD_DINP_BASE		0
#define		IOBOARD_DOUTP_BASE		0
#define		IOBOARD_AINP_BASE		0
#define		IOBOARD_AOUTP_BASE		0

//----------------------------------------------------
//! digitalni vstupy

typedef enum _APP_DINP
{
	DI_0	= _HW_DI_0 + IOBOARD_DINP_BASE,
	DI_1	= _HW_DI_1 + IOBOARD_DINP_BASE,
	DI_2	= _HW_DI_2 + IOBOARD_DINP_BASE,
	DI_3	= _HW_DI_3 + IOBOARD_DINP_BASE,
	DI_4	= _HW_DI_4 + IOBOARD_DINP_BASE,
	DI_5	= _HW_DI_5 + IOBOARD_DINP_BASE,
	DI_6	= _HW_DI_6 + IOBOARD_DINP_BASE,
	DI_7	= _HW_DI_7 + IOBOARD_DINP_BASE,

	STS		= _HW_DI_STS + IOBOARD_DINP_BASE,
} APP_DINP;


//----------------------------------------------------
//! digitalni vystupy

typedef enum _APP_DOUTP
{
	DO_0	= _HW_DO_0 + IOBOARD_DOUTP_BASE,
	DO_1	= _HW_DO_1 + IOBOARD_DOUTP_BASE,
	DO_2	= _HW_DO_2 + IOBOARD_DOUTP_BASE,
	DO_3	= _HW_DO_3 + IOBOARD_DOUTP_BASE,
	DO_4	= _HW_DO_4 + IOBOARD_DOUTP_BASE,
	DO_5	= _HW_DO_5 + IOBOARD_DOUTP_BASE,
	DO_6	= _HW_DO_6 + IOBOARD_DOUTP_BASE,
	DO_7	= _HW_DO_7 + IOBOARD_DOUTP_BASE,

	nOUT_EN			= _HW_OUT_EN + IOBOARD_DOUTP_BASE,
	LAMBDA_POWER	= _HW_LAMBDA_POWER+ IOBOARD_DOUTP_BASE

} APP_DOUTP;


//----------------------------------------------------
//! analogove vstupy

typedef enum _APP_AINP
{
	AI_THERMOCOUPLE		= _HW_AI_0 + IOBOARD_AINP_BASE,
	AI_CONNTEMP			= _HW_AI_1 + IOBOARD_AINP_BASE,
	AI_LAMBDA_CURRENT	= _HW_AI_2 + IOBOARD_AINP_BASE,
	AI_RESERVED			= _HW_AI_3 + IOBOARD_AINP_BASE,
	AI_LAMBDA			= _HW_AI_4 + IOBOARD_AINP_BASE,
	AI_PHOTORES			= _HW_AI_5 + IOBOARD_AINP_BASE,
	AI_PHOTOTRANS		= _HW_AI_6 + IOBOARD_AINP_BASE,
} APP_AINP;


//----------------------------------------------------
//! analogove vystupy

typedef enum _APP_AOUTP
{
	AO_0	= _HW_AO_0 + IOBOARD_AOUTP_BASE,
} APP_AOUTP;

#endif	// _APPIODEF_H_
