/*
 * Common.h
 *
 *  Created on: Dec 9, 2023
 *      Author: lubi
 */

/**************INCLUDE BLOCK**************/

#ifndef INC_COMMON_H_
#define INC_COMMON_H_

/***********INCLUDE BLOCK END*************/


/***** Data Type, Constant, and Macro Definitions *****/
#define Init 0
#define Available 1
#define Preparing 2
#define Charging 3
#define Error 4

#define NoError 0
#define Internet_err 1
#define Ocpp_err 2
#define Protection_err 3
#define Emergency_err 4
/* Global variables*/


/* Extern Data Declarations */

//////////////////////UART 1 variables/////////////////
extern unsigned char g_u1rxbyte;
extern char g_u1_rxbuffer[15], g_u1_rxedFrame;
extern char g_stage_level, g_error_code, g_stage_change;
///////////////////////////////////////////////////////

/* Static Data Declarations */


/***** Data Type, Constant, and Macro Definitions END *****/


/***** Public Function Bodies *****/

char Hex_ascii(char input);

/***** Public Function Bodies END *****/


#endif /* INC_COMMON_H_ */
