Linux SDK (lite-qmi)  MBPL_SDK_R25_ENG3
SwiDataTypes.h
Go to the documentation of this file.
1 
8 /*
9  * Copyright: © 2011-2015 Sierra Wireless Inc., all rights reserved
10  */
11 
12 #ifndef __SWI_DATA_TYPES_H
13 #define __SWI_DATA_TYPES_H
14 
15 #include "common/switype_256bit.h"
16 #ifndef SWI_API
17 #define SWI_API
18 #endif /* SWI_API */
19 
20 /* Define for LTE specific implementation */
21 /* Need to remove both the defines when the FW has support for LTE */
22 #define QMI_NO_LTE_FW_SUPPORT 0
23 #define QMI_TLV_PLACEHOLDER 0x8F
24 
25 /* Type Definitions */
26 typedef uint32_t ULONG;
27 typedef uint64_t ULONGLONG;
28 typedef int8_t INT8;
29 typedef uint8_t BYTE;
30 typedef uint16_t WORD;
31 typedef uint16_t USHORT;
32 typedef int BOOL;
33 typedef int16_t SHORT;
34 typedef int32_t INT32;
35 typedef float FLOAT;
36 typedef uint16_t qmuint16; /* 16 bit integer unsigned */
37 typedef uint32_t qmulong; /* at least 32 bit integer unsigned */
38 
39 
40 typedef char CHAR;
41 typedef const char * LPCSTR;
42 
43 /*************
44  *
45  * Name: qmTlvResult
46  *
47  * Purpose: QMI result TLV structure
48  *
49  * Members: TlvResultCode - SDK QMI request processing result code
50  * DevicuResult - Device result code
51  * DeivceError - Device error code
52  * TlvPresenceMask - TLV Presence bitmask
53  *
54  * Notes:
55  *
56  **************/
58 {
59  swi_uint256_t TlvPresenceMask;
60  qmulong TlvResultCode;
61  qmuint16 DeviceResult;
62  qmuint16 DeviceError;
63 };
64 
69 #define UNUSEDPARAM( x ) (void)x
70 
76 #define MEMSET_STATIC_OUTPUT_STRUCT(OUTPUT_PARA,STRUCT_OF_OUTPUT_PARA) \
77  memset(OUTPUT_PARA,0,sizeof(STRUCT_OF_OUTPUT_PARA));\
78 
79 #endif /* __SWI_DATA_TYPES_H */
Definition: SwiDataTypes.h:57