xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/hal_str_proc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2019 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #include "hal_headers.h"
16 
17 
18 #define hal_getLinefrombuffer(buffer)	_os_strsep(&buffer, "\r\n")
19 
20 bool hal_is_comment_string(char *szStr);
21 
22 bool hal_is_alpha(char ch_tmp);
23 
24 bool hal_ishexdigit(char chTmp);
25 
26 bool hal_get_hexvalue_fromstring(char	*szStr, u32 *pu4bVal, u32 *pu4bMove);
27 
28 bool hal_get_fractionvalue_fromstring(
29 		char			*szStr,
30 		u8				*pInteger,
31 		u8				*pFraction,
32 		u32			*pu4bMove);
33 
34 bool hal_is_allspace_tab(char	*data, u8	size);
35 
36 u32 hal_mapchar_tohexdigit(char 		chTmp);
37 
38 bool hal_parse_fiedstring(char	*in_str, u32	*start, char	*out_str, char lqualifier, char rqualifier);
39 
40 bool hal_get_u1bint_fromstr_indec(char	*str, u8	*pint);
41 
42 bool hal_get_s1bint_fromstr_indec(char	*str,	s8 *val);
43 
44