ECU/Application/dist/src/HexDataProcessor_prog.c
u8 u8CharacterToHex(u8 u8Character)
{
	u8 u8Return = DEF_u8OXFF;
	if ( (u8Character >= '0') && (u8Character <= '9') )
	{
		u8Return = u8Character - '0';
	}
	else if ( (u8Character >= 'A') && (u8Character <= 'F') )
	{
		u8Return = u8Character - 'A' + 0x0A;
	}
	else
	{

	}
	return u8Return;
}
/****************************************************************************************/
/* Description: Convert Character form to Hex Form. EX. from 'A' to 0x0A				*/
/* Input      : u8 u8Character															*/
/*				Description: Character to be converted									*/
/* Output     : u8	                                                                 	*/
/*				Description: The Character after conversion to hex						*/
/*							 It returns 0xFF if the character is an invalid hex format	*/
/* Scope      : Private                                                                	*/
/****************************************************************************************/
Convert Character form to Hex Form. EX.
Convert Character form to Hex Form . EX .
u8 u8CharacterToHex(u8 u8Character)
{
	u8 u8Return = DEF_u8OXFF;
	if ( (u8Character >= '0') && (u8Character <= '9') )
	{
		u8Return = u8Character - '0';
	}
	else if ( (u8Character >= 'A') && (u8Character <= 'F') )
	{
		u8Return = u8Character - 'A' + 0x0A;
	}
	else
	{
	}
	return u8Return;
}
u8 u8CharacterToHex ( u8 u8Character ) { u8 u8Return = DEF_u8OXFF ; if ( ( u8Character >= ' ' ) && ( u8Character <= ' ' ) ) { u8Return = u8Character - ' ' ; } else if ( ( u8Character >= ' ' ) && ( u8Character <= ' ' ) ) { u8Return = u8Character - ' ' + 0x0A ; } else { } return u8Return ; }
Description: Convert Character form to Hex Form.
Description : Convert Character form to Hex Form .