Root/drivers/staging/csr/csr_wifi_msgconv.h

1/*****************************************************************************
2
3            (c) Cambridge Silicon Radio Limited 2011
4            All rights reserved and confidential information of CSR
5
6            Refer to LICENSE.txt included with this source for details
7            on the license terms.
8
9*****************************************************************************/
10
11#ifndef CSR_WIFI_MSGCONV_H__
12#define CSR_WIFI_MSGCONV_H__
13
14#include "csr_prim_defs.h"
15#include "csr_sched.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
22void CsrUint16SerBigEndian(u8 *ptr, size_t *len, u16 v);
23void CsrUint24SerBigEndian(u8 *ptr, size_t *len, u32 v);
24void CsrUint32SerBigEndian(u8 *ptr, size_t *len, u32 v);
25
26void CsrUint16DesBigEndian(u16 *v, u8 *buffer, size_t *offset);
27void CsrUint24DesBigEndian(u32 *v, u8 *buffer, size_t *offset);
28void CsrUint32DesBigEndian(u32 *v, u8 *buffer, size_t *offset);
29
30void CsrUint24Ser(u8 *ptr, size_t *len, u32 v);
31void CsrUint24Des(u32 *v, u8 *buffer, size_t *offset);
32
33
34size_t CsrWifiEventSizeof(void *msg);
35u8* CsrWifiEventSer(u8 *ptr, size_t *len, void *msg);
36void* CsrWifiEventDes(u8 *buffer, size_t length);
37
38size_t CsrWifiEventCsrUint8Sizeof(void *msg);
39u8* CsrWifiEventCsrUint8Ser(u8 *ptr, size_t *len, void *msg);
40void* CsrWifiEventCsrUint8Des(u8 *buffer, size_t length);
41
42size_t CsrWifiEventCsrUint16Sizeof(void *msg);
43u8* CsrWifiEventCsrUint16Ser(u8 *ptr, size_t *len, void *msg);
44void* CsrWifiEventCsrUint16Des(u8 *buffer, size_t length);
45
46size_t CsrWifiEventCsrUint32Sizeof(void *msg);
47u8* CsrWifiEventCsrUint32Ser(u8 *ptr, size_t *len, void *msg);
48void* CsrWifiEventCsrUint32Des(u8 *buffer, size_t length);
49
50size_t CsrWifiEventCsrUint16CsrUint8Sizeof(void *msg);
51u8* CsrWifiEventCsrUint16CsrUint8Ser(u8 *ptr, size_t *len, void *msg);
52void* CsrWifiEventCsrUint16CsrUint8Des(u8 *buffer, size_t length);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* CSR_WIFI_MSGCONV_H__ */
59

Archive Download this file



interactive