LinuxQMISDK-Lite  SLQS04.00.23
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 #ifdef ULONG_AS_EIGHT_BYTES_ON_64BIT // on 32bit, long & int has same length
27 typedef unsigned long ULONG;
28 #else
29 typedef unsigned int ULONG;
30 #endif
31 typedef unsigned long long ULONGLONG;
32 typedef signed char INT8;
33 typedef unsigned char BYTE;
34 typedef char CHAR;
35 typedef unsigned short WORD;
36 typedef unsigned short USHORT;
37 typedef const char * LPCSTR;
38 typedef int BOOL;
39 typedef signed short SHORT;
40 typedef signed int INT32;
41 typedef float FLOAT;
42 
43 typedef unsigned short qmuint16; /* 16 bit integer unsigned */
44 typedef unsigned long qmulong; /* at least 32 bit integer unsigned */
45 
46 /*************
47  *
48  * Name: qmTlvResult
49  *
50  * Purpose: QMI result TLV structure
51  *
52  * Members: TlvResultCode - SDK QMI request processing result code
53  * DevicuResult - Device result code
54  * DeivceError - Device error code
55  * TlvPresenceMask - TLV Presence bitmask
56  *
57  * Notes:
58  *
59  **************/
61 {
66 };
67 
72 #define UNUSEDPARAM( x ) (void)x
73 
79 #define MEMSET_STATIC_OUTPUT_STRUCT(OUTPUT_PARA,STRUCT_OF_OUTPUT_PARA) \
80  memset(OUTPUT_PARA,0,sizeof(STRUCT_OF_OUTPUT_PARA));\
81 
82 #endif /* __SWI_DATA_TYPES_H */
char CHAR
Definition: SwiDataTypes.h:34
unsigned char BYTE
Definition: SwiDataTypes.h:33
signed char INT8
Definition: SwiDataTypes.h:32
swi_uint256_t TlvPresenceMask
Definition: SwiDataTypes.h:62
qmulong TlvResultCode
Definition: SwiDataTypes.h:63
Definition: SwiDataTypes.h:60
signed short SHORT
Definition: SwiDataTypes.h:39
const char * LPCSTR
Definition: SwiDataTypes.h:37
signed int INT32
Definition: SwiDataTypes.h:40
unsigned short USHORT
Definition: SwiDataTypes.h:36
unsigned long qmulong
Definition: SwiDataTypes.h:44
unsigned long long ULONGLONG
Definition: SwiDataTypes.h:31
qmuint16 DeviceResult
Definition: SwiDataTypes.h:64
float FLOAT
Definition: SwiDataTypes.h:41
unsigned short qmuint16
Definition: SwiDataTypes.h:43
int BOOL
Definition: SwiDataTypes.h:38
Definition: switype_256bit.h:15
unsigned int ULONG
Definition: SwiDataTypes.h:29
unsigned short WORD
Definition: SwiDataTypes.h:35
qmuint16 DeviceError
Definition: SwiDataTypes.h:65

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved