LinuxQMISDK: qaGobiApiDcs.h Source File

LinuxQMISDK SLQS03.03.07

- Main Page
- Modules
- References
- Data Structures

- File List
- Globals

qaGobiApiDcs.h
Go to the documentation of this file.
1
11 #ifndef __GOBI_API_DCS_H__
12 #define __GOBI_API_DCS_H__
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #define LEN 10
19
36 #define PORTNAM_LEN 32
37 struct DcsUsbPortNames
38 {
39 CHAR AtCmdPort[PORTNAM_LEN];
40 CHAR NmeaPort [PORTNAM_LEN];
41 CHAR DmPort [PORTNAM_LEN];
42 };
43
57 struct QosMap
58 {
59 BYTE dscp;
60 ULONG qos_id;
61 BYTE state;
62 };
63
92 struct NetStats
93 {
94 ULONG rx_packets;
95 ULONG tx_packets;
96 ULONGLONG rx_bytes;
97 ULONGLONG tx_bytes;
98 ULONG rx_errors;
99 ULONG tx_errors;
100 ULONG rx_overflows;
101 ULONG tx_overflows;
102 };
103
107 enum eAPI_DCS_GET_DEVICE_MODE {
108 DCS_DEVICE_MODE_DISCONNECTED,
109 DCS_DEVICE_MODE_READY,
110 DCS_DEVICE_MODE_BOOT_READY
111 };
112
133 ULONG QCWWAN2kEnumerateDevices(
134 BYTE *pDevicesSize,
135 BYTE *pDevices );
136
153 ULONG QCWWAN2kConnect(
154 CHAR *pDeviceID,
155 CHAR *pDeviceKey );
156
168 ULONG QCWWANDisconnect();
169
193 ULONG QCWWAN2kGetConnectedDeviceID(
194 ULONG deviceIDSize,
195 CHAR *pDeviceID,
196 ULONG deviceKeySize,
197 CHAR *pDeviceKey );
198
220 ULONG QCWWANEnumerateDevices(
221 BYTE *pDevicesSize,
222 BYTE *pDevices );
223
240 ULONG QCWWANConnect(
241 CHAR *pDeviceID,
242 CHAR *pDeviceKey);
243
255 ULONG SetSDKImagePath (
256 LPCSTR pPath );
257
271 ULONG SLQSGetUsbPortNames(
272 struct DcsUsbPortNames *pUsbPortNames );
273
274
287 ULONG SLQSStart_AVAgent(BYTE modem_index);
288
313 ULONG SLQSStart(BYTE modem_index, CHAR* usb_path);
314
331 ULONG SLQSKillSDKProcess();
332
346 ULONG SLQSGetDeviceMode(
347 BYTE *pDeviceMode );
348
374 ULONG SLQSStartSrv( BYTE action, BYTE mask );
375
389 ULONG SLQSSetLoggingMask(
390 BYTE mask );
391
407 ULONG SLQSQosMap(
408 BYTE instance,
409 BYTE dscp,
410 ULONG qos_id
411 );
412
428 ULONG SLQSQosEditMap(
429 BYTE instance,
430 BYTE dscp,
431 ULONG qos_id
432 );
433
449 ULONG SLQSQosReadMap(
450 BYTE instance,
451 BYTE dscp,
452 ULONG *qos_id
453 );
454
472 ULONG SLQSQosDumpMap(
473 BYTE instance,
474 struct QosMap *pmap,
475 BYTE *plen
476 );
477
491 ULONG SLQSQosUnmap(
492 BYTE instance,
493 BYTE dscp
494 );
495
507 ULONG SLQSQosClearMap(
508 BYTE instance
509 );
510
511 /*
512 * Internal Wrapper function for enabling invocation of SLQS implementation
513 * pidof() function
514 *
515 * \param pProcName[IN]
516 * - Process name whose PID is to be retrieved
517 *
518 * \return pid if process exists else 0
519 *
520 * \sa NA
521 *
522 * \note NA
523 *
524 */
525 int SLQSGetPidof( CHAR* pProcName );
526
543 ULONG SLQSGetNetStatistic(
544 struct NetStats *pNetStatistic, BYTE instance );
545
546 #ifdef __cplusplus
547 } /* extern "C" { */
548 #endif
549
550 #endif /* __GOBI_API_DCS_H__ */
SLQSQosUnmap
ULONG SLQSQosUnmap(BYTE instance, BYTE dscp)
SLQSGetNetStatistic
ULONG SLQSGetNetStatistic(struct NetStats *pNetStatistic, BYTE instance)
DCS_DEVICE_MODE_BOOT_READY
Definition: qaGobiApiDcs.h:110
CHAR
char CHAR
Definition: SwiDataTypes.h:27
NetStats::rx_errors
ULONG rx_errors
Definition: qaGobiApiDcs.h:98
NetStats
Definition: qaGobiApiDcs.h:92
NetStats::rx_packets
ULONG rx_packets
Definition: qaGobiApiDcs.h:94
SLQSSetLoggingMask
ULONG SLQSSetLoggingMask(BYTE mask)
SLQSStart_AVAgent
ULONG SLQSStart_AVAgent(BYTE modem_index)
BYTE
unsigned char BYTE
Definition: SwiDataTypes.h:26
NetStats::rx_overflows
ULONG rx_overflows
Definition: qaGobiApiDcs.h:100
SLQSGetUsbPortNames
ULONG SLQSGetUsbPortNames(struct DcsUsbPortNames *pUsbPortNames)
NetStats::tx_overflows
ULONG tx_overflows
Definition: qaGobiApiDcs.h:101
DcsUsbPortNames::AtCmdPort
CHAR AtCmdPort[32]
Definition: qaGobiApiDcs.h:39
PORTNAM_LEN
#define PORTNAM_LEN
Definition: qaGobiApiDcs.h:36
SLQSQosClearMap
ULONG SLQSQosClearMap(BYTE instance)
QosMap::dscp
BYTE dscp
Definition: qaGobiApiDcs.h:59
SLQSQosReadMap
ULONG SLQSQosReadMap(BYTE instance, BYTE dscp, ULONG *qos_id)
SLQSQosDumpMap
ULONG SLQSQosDumpMap(BYTE instance, struct QosMap *pmap, BYTE *plen)
LPCSTR
const char * LPCSTR
Definition: SwiDataTypes.h:30
eAPI_DCS_GET_DEVICE_MODE
eAPI_DCS_GET_DEVICE_MODE
Definition: qaGobiApiDcs.h:107
SetSDKImagePath
ULONG SetSDKImagePath(LPCSTR pPath)
SLQSKillSDKProcess
ULONG SLQSKillSDKProcess()
NetStats::tx_bytes
ULONGLONG tx_bytes
Definition: qaGobiApiDcs.h:97
SLQSStart
ULONG SLQSStart(BYTE modem_index, CHAR *usb_path)
DCS_DEVICE_MODE_DISCONNECTED
Definition: qaGobiApiDcs.h:108
QCWWAN2kGetConnectedDeviceID
ULONG QCWWAN2kGetConnectedDeviceID(ULONG deviceIDSize, CHAR *pDeviceID, ULONG deviceKeySize, CHAR *pDeviceKey)
SLQSQosEditMap
ULONG SLQSQosEditMap(BYTE instance, BYTE dscp, ULONG qos_id)
QosMap::state
BYTE state
Definition: qaGobiApiDcs.h:61
DcsUsbPortNames
Definition: qaGobiApiDcs.h:37
QosMap
Definition: qaGobiApiDcs.h:57
SLQSStartSrv
ULONG SLQSStartSrv(BYTE action, BYTE mask)
QCWWAN2kEnumerateDevices
ULONG QCWWAN2kEnumerateDevices(BYTE *pDevicesSize, BYTE *pDevices)
SLQSGetDeviceMode
ULONG SLQSGetDeviceMode(BYTE *pDeviceMode)
ULONGLONG
unsigned long long ULONGLONG
Definition: SwiDataTypes.h:24
ULONG
unsigned long ULONG
Definition: SwiDataTypes.h:23
QCWWANEnumerateDevices
ULONG QCWWANEnumerateDevices(BYTE *pDevicesSize, BYTE *pDevices)
NetStats::rx_bytes
ULONGLONG rx_bytes
Definition: qaGobiApiDcs.h:96
NetStats::tx_packets
ULONG tx_packets
Definition: qaGobiApiDcs.h:95
SLQSQosMap
ULONG SLQSQosMap(BYTE instance, BYTE dscp, ULONG qos_id)
QosMap::qos_id
ULONG qos_id
Definition: qaGobiApiDcs.h:60
SLQSGetPidof
int SLQSGetPidof(CHAR *pProcName)
QCWWANConnect
ULONG QCWWANConnect(CHAR *pDeviceID, CHAR *pDeviceKey)
NetStats::tx_errors
ULONG tx_errors
Definition: qaGobiApiDcs.h:99
DcsUsbPortNames::NmeaPort
CHAR NmeaPort[32]
Definition: qaGobiApiDcs.h:40
QCWWAN2kConnect
ULONG QCWWAN2kConnect(CHAR *pDeviceID, CHAR *pDeviceKey)
DCS_DEVICE_MODE_READY
Definition: qaGobiApiDcs.h:109
QCWWANDisconnect
ULONG QCWWANDisconnect()
DcsUsbPortNames::DmPort
CHAR DmPort[32]
Definition: qaGobiApiDcs.h:41