/********* ascii.h **********/


/************ COMMANDS USED FOR TEXT COMMUNICATION ***********/
#define CR             13         /*ASCII code for carry return*/
#define LF             10         /*ASCII code for line feed*/
#define SP             32         /*ASCII code for space*/


/********************** FUNCTION PROTOTYPES *****************/
UINT8 ascii_to_nibble (UINT8 u8asciival);
void asciitohex (UINT8 *u8orig, UINT8 *u8dest);
void hextoascii (UINT8 u8hex_val);
void send_nibble_as_ascii (UINT8 u8nibble_val);
void buffer_conversion(void);
void sendOK (void);
void sendNOK (void);
void sendCR (void);

/********************** VARIABLES USED *****************/
extern UINT8  RX_status;                      /*Flag used to monitor the transsmision status*/
extern UINT8  conversion_status;              /*Flag used to monitor the conversion status*/
extern UINT16 rx_counter;                     /*Used to count received characteres*/
extern UINT16 hex_counter;
extern UINT8  received;