software/drivers/sd8887/src/wlan/mapp/mlanevent/mlanevent.c
/**
 *    @brief Convert char to hex integer
 *
 *    @param chr          Char
 *    @return             Hex integer
 */
@brief Convert char to hex integer
@param chr          Char
@return             Hex integer
@brief Convert char to hex integer @param chr Char @return Hex integer
unsigned char
hexc2bin(char chr)
{
	if (chr >= '0' && chr <= '9')
		chr -= '0';
	else if (chr >= 'A' && chr <= 'F')
		chr -= ('A' - 10);
	else if (chr >= 'a' && chr <= 'f')
		chr -= ('a' - 10);
	return chr;
}
unsigned char hexc2bin ( char chr ) { if ( chr >= ' ' && chr <= ' ' ) chr -= ' ' ; else if ( chr >= ' ' && chr <= ' ' ) chr -= ( ' ' - 10 ) ; else if ( chr >= ' ' && chr <= ' ' ) chr -= ( ' ' - 10 ) ; return chr ; }
@brief Convert char to hex integer
    @param chr          Char
    @return             Hex integer
@brief Convert char to hex integer @param chr Char @return Hex integer