8#define hex_asc_lo(x) hex_asc[((x) & 0x0f)]
9#define hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4]
11static inline char *hex_byte_pack(
char *buf,
u8 byte)
19#define hex_asc_upper_lo(x) hex_asc_upper[((x) & 0x0f)]
20#define hex_asc_upper_hi(x) hex_asc_upper[((x) & 0xf0) >> 4]
22static inline char *hex_byte_pack_upper(
char *buf,
u8 byte)
31extern char *
bin2hex(
char *dst,
const void *src,
size_t count);
uint8_t mac[6]
Definition main.cpp:127
#define __must_check
Definition compiler.h:114
char * bin2hex(char *dst, const void *src, size_t count)
const char hex_asc_upper[]
#define hex_asc_hi(x)
Definition hex.h:9
#define hex_asc_lo(x)
Definition hex.h:8
int __must_check hex2bin(u8 *dst, const char *src, size_t count)
#define hex_asc_upper_hi(x)
Definition hex.h:20
int hex_to_bin(unsigned char ch)
#define hex_asc_upper_lo(x)
Definition hex.h:19
bool mac_pton(const char *s, u8 *mac)
uint8_t u8
Definition kernel.h:14