/***********************************************************************************************************
 * Copyright (c)  2024 - 2025, Unicmicro Co.,Ltd .
 * All rights reserved.
 * Filename    : typedefs.h
 * Description : typedefs header file
 * Author(s)   : yanhaihua
 * version     : V1.0
 * Modify date : 2025-09-23
 ***********************************************************************************************************/
#ifndef __TYPEDEFS_H__
#define __TYPEDEFS_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned          	char 		u8_t;
typedef unsigned short     	int 		u16_t;
typedef unsigned           	int 		u32_t;

typedef signed          	char 		s8_t;
typedef signed short     	int 		s16_t;
typedef signed           	int 		s32_t;

#define BOOL 							u8_t
#define TRUE 							1
#define FALSE 							0

typedef enum
{
	RET_OK 								= 0,																	/* ³É¹¦ */
	RET_ERR 							= 1,																	/* Ê§°Ü */
	RET_CRC 							= 2,																	/* CRC´íÎó */
	RET_TIMEOUT							= 3,																	/* ³¬Ê± */
}em_ret_t;

typedef enum
{
	TIME_WAITTING_FOREVER 				= 0,																	/* ×èÈû */
	TIME_WAITTING_NO 					= 1																		/* ·Ç×èÈû */
}em_time_t;

typedef enum
{
	LEVEL_LOW							= 0,
	LEVEL_HIGH							= 1,
}em_level_t;

#ifdef __cplusplus
}
#endif

#endif
