#ifndef __TYPE_H__
#define __TYPE_H__

#ifndef BYTE
#define BYTE unsigned char
#endif

#ifndef UINT8
#define UINT8 unsigned char
#endif

#ifndef UINT16
#define UINT16 unsigned short
#endif

#ifndef UINT32
#define UINT32 unsigned int
#endif

//#ifndef UINT64
//#define UINT64 long long
//#endif

#ifndef INT8
#define INT8 char
#endif

#ifndef INT16
#define INT16 short
#endif


#ifndef INT32
#define INT32 int
#endif

#ifndef U8
#define U8 unsigned char
#endif


#ifndef U16
#define U16 unsigned short
#endif

#ifndef U32
#define U32 unsigned int
#endif

#ifndef U64
#define U64 long long
#endif

#ifndef S8
#define S8 char
#endif

#ifndef S16
#define S16 short
#endif


#ifndef S32
#define S32 int
#endif

#ifndef ULONG
#define ULONG          unsigned long
#endif

#ifndef BOOL
#define BOOL		int
#endif


#ifndef VOID
#define VOID		void
#endif

#ifndef NULL
	#define NULL    	0
#endif

#ifndef false
	#define false		0
#endif

#ifndef true
	#define true		1
#endif

#ifndef FALSE
	#define FALSE	0
#endif

#ifndef TRUE
	#define TRUE		1
#endif

#ifndef DWORD
	#define DWORD		unsigned long
#endif

#ifndef HANDLE
	#define HANDLE		int
#endif

#ifndef WINAPI
	#define WINAPI		
#endif

#ifndef LPVOID
	#define LPVOID		void*
#endif


#ifndef SUCCESS
#define SUCCESS  (0)
#endif
#ifndef FAILURE
#define FAILURE  (-1)
#endif


#define FAIL_MPEGTS_OPEN			(0X01)
#define FAIL_MPEGTS_POWER_ON		(0X02)
#define FAIL_MPEGTS_GET_CFG			(0X03)
#define FAIL_MPEGTS_SET_CFG			(0X04)
#define FAIL_MPEGTS_START			(0X05)
#define FAIL_MPEGTS_STOP			(0X06)
#define FAIL_MPEGTS_CLOSE			(0X07)

#define FAIL_I2C_OPEN				(0X10)

#define FAIL_GPIO_OPERATE			(0X20)

#define FAIL_DMD_INIT				(0X30)
#define FAIL_DMD_SET_CFG			(0X31)
#define FAIL_DMD_GET_STATUS			(0X32)
#define FAIL_DMD_UNLOCKED			(0X33)

#define FAIL_TS_CALLBACK			(0X40)



#endif
