endian_func.h

来自「Atheros AP Test with Agilent N4010A sour」· C头文件 代码 · 共 74 行

H
74
字号
// endian_func.h - contians endian conversion functions 

// Copyright (c) 2000 Atheros Communications, Inc., All Rights Reserved */


// modification history
// --------------------
// 21Jan02	sharmat		Created.

// description
// -----------
// Contains functions which converts short and long integers from big endian
// to little endian and vice versa. 


#ifndef __INCendian_funch
#define __INCendian_funch

#include "wlantype.h"

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus 

A_UINT32 ltob_l
(
	A_UINT32 num
);

A_UINT16 ltob_s
(
	A_UINT16 num
);

A_UINT32 btol_l
(
	A_UINT32 num
);

A_UINT16 btol_s
(
	A_UINT16 num
);

A_UINT32 swap_l
(
	A_UINT32 num
);

A_UINT16 swap_s
(
	A_UINT16 num
);

void swapAndCopyBlock_l
(	
	void *dest,
	void *src,
	A_UINT32 size
);

void swapBlock_l
(
	void *src,
	A_UINT32 size
);

#ifdef __cplusplus
}
#endif // __cplusplus 

#endif // __INCendian_funch

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?