LinuxQMISDK-Lite  SLQS04.00.06
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
swiavms.h
Go to the documentation of this file.
1 
7 #ifndef __LITEQMI_SWIAVMS_H__
8 #define __LITEQMI_SWIAVMS_H__
9 #include <stdint.h>
10 #include "common.h"
11 #include "msgid.h"
12 
13 #define LITEQMI_MAX_SWIOMA_STR_LEN 255
14 
24 typedef struct {
25  uint8_t sessionType;
27 
53  pack_qmi_t *pCtx,
54  uint8_t *pReqBuf,
55  uint16_t *pLen,
57  );
67 typedef struct {
68  uint32_t sessionResponse;
69  uint32_t resultcode;
71 
92  uint8_t *pResp,
93  uint16_t respLen,
95  );
96 
106 typedef struct {
107  uint8_t sessionType;
109 
135  pack_qmi_t *pCtx,
136  uint8_t *pReqBuf,
137  uint16_t *pLen,
139  );
140 
141 
146 typedef struct {
147  uint32_t resultcode;
149 
169  uint8_t *pResp,
170  uint16_t respLen,
172  );
173 
179 {
180  uint32_t ulMin;
181  uint32_t ulMax;
183 
184 
185 #define MAX_PACK_SWI_AVMS_SET_SETTING_APN_LENGTH 49
186 #define MAX_PACK_SWI_AVMS_SET_SETTING_UNAME_LENGTH 29
187 #define MAX_PACK_SWI_AVMS_SET_SETTING_PWD_LENGTH 29
188 
197 {
198  uint8_t bAPNLength;
200  uint8_t bUnameLength;
202  uint8_t bPWDLength;
205 
206 
207 #define MAX_PACK_SWI_AVMS_SET_SETTING_CONNECTION_RETRY_TIMMERS 8
208 /*
209  * This structure contains the SLQSAVMSSetSettings Polling timer to connect to AVMS server.
210  *
211  * @param Timers[0] - Timer 1.
212  * - 0-20160 (min)
213  * - 0:retry disabled
214  * @param Timers[1] - Timer 2.
215  * - 1-20160 (min)
216  * @param Timers[2] - Timer 3.
217  * - 1-20160 (min)
218  * @param Timers[3] - Timer 4.
219  * - 1-20160 (min)
220  * @param Timers[4] - Timer 5.
221  * - 1-20160 (min)
222  * @param Timers[5] - Timer 6.
223  * - 1-20160 (min)
224  * @param Timers[6] - Timer 7.
225  * - 1-20160 (min)
226  * @param Timers[7] - Timer 8.
227  * - 1-20160 (min)
228  *
229  */
230 
232 {
234 
236 
237 
288 typedef struct {
289  uint8_t FwAutodownload;
290  uint8_t FwAutoUpdate;
291  uint8_t AutoConnect;
292  uint8_t AutoReboot;
293  uint8_t *pFwAutoSDM;
294  uint32_t *pPollingTimer;
297  uint8_t *pNotifStore;
300 
326  pack_qmi_t *pCtx,
327  uint8_t *pReqBuf,
328  uint16_t *pLen,
330  );
331 
332 
337 typedef struct {
338  uint32_t resultcode;
340 
360  uint8_t *pResp,
361  uint16_t respLen,
363  );
364 
390  pack_qmi_t *pCtx,
391  uint8_t *pReqBuf,
392  uint16_t *pLen,
394  );
395 
418  pack_qmi_t *pCtx,
419  uint8_t *pReqBuf,
420  uint16_t *pLen
421 );
422 
423 /*
424  * This structure contains the SLQSAVMSGetSettings APN Info to connect to AVMS server.
425  *
426  * \param bAPNLength - APN Length(Max 49).
427  *
428  * \param szAPN - APN.
429  *
430  * \param bUnameLength - User Name Length (Max 29).
431  *
432  * \param szUname - User Name.
433  *
434  * \param bPWDLength - Password Length (Max 29).
435  *
436  * \param szPWD - Password.
437  *
438  */
440 {
441  uint8_t bAPNLength;
442  uint8_t *pAPN;
443  uint8_t bUnameLength;
444  uint8_t *pUname;
445  uint8_t bPWDLength;
446  uint8_t *pPWD;
448 #define MAX_AVMS_SETTINGS_RETRY_TIMER_NUMBER 8
449 /*
450  * This structure contains the SLQSAVMSGetSettings Polling timer to connect to AVMS server.
451  *
452  * \param Timers[0] - Timer 1.
453  * - 0-20160 (min)
454  * - 0:retry disabled
455  * \param Timers[1] - Timer 2.
456  * - 1-20160 (min)
457  * \param Timers[2] - Timer 3.
458  * - 1-20160 (min)
459  * \param Timers[3] - Timer 4.
460  * - 1-20160 (min)
461  * \param Timers[4] - Timer 5.
462  * - 1-20160 (min)
463  * \param Timers[5] - Timer 6.
464  * - 1-20160 (min)
465  * \param Timers[6] - Timer 7.
466  * - 1-20160 (min)
467  * \param Timers[7] - Timer 8.
468  * - 1-20160 (min)
469  *
470  */
472 {
475 
476 /*
477  * This structure contains the SLQSAVMSSettings Min/Max Period of an Observation.
478  *
479  * \param min - Min period in seconds.
480  *
481  * \param max - Max period in seconds.
482  *
483  */
485 {
486  uint32_t min;
487  uint32_t max;
489 
494 typedef struct {
495  uint32_t OMADMEnabled;
496  uint8_t AutoConnect;
497  uint8_t AutoReboot;
498  uint8_t FwAutodownload;
499  uint8_t FwAutoUpdate;
500  uint8_t FwAutoSDM;
501  uint32_t *pPollingTimer;
506  uint32_t resultcode;
508 
528  uint8_t *pResp,
529  uint16_t respLen,
531  );
532 
558 typedef struct {
559  uint8_t selection;
560  uint32_t *pDeferTime;
562  uint8_t *pPackageID;
563  uint16_t *pRejectReason;
565 
591  pack_qmi_t *pCtx,
592  uint8_t *pReqBuf,
593  uint16_t *pLen,
595  );
596 
597 
602 typedef struct {
603  uint32_t resultcode;
605 
625  uint8_t *pResp,
626  uint16_t respLen,
628  );
629 
652  pack_qmi_t *pCtx,
653  uint8_t *pReqBuf,
654  uint16_t *pLen
655  );
656 
657 
662 typedef struct {
663  uint32_t resultcode;
665 
685  uint8_t *pResp,
686  uint16_t respLen,
688  );
689 
712  pack_qmi_t *pCtx,
713  uint8_t *pReqBuf,
714  uint16_t *pLen
715 );
716 
717 #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_VERSION_LENGTH 128
718 #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_NAME_LENGTH 128
719 #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_DESC_LENGTH 1024
720 
760 {
761  uint8_t bBinaryType;
762  uint8_t bState;
768  uint8_t bSerity;
769  uint16_t wVersionLength;
771  uint16_t wNameLength;
775  uint8_t TlvPresent;
777 
778 #define MAX_PACK_SWI_AVMS_SESSIONGETINFO_CONFIG_ALERT_MSG_LENGTH 200
779 
797 {
798  uint8_t bState;
801  uint16_t wAlertMsgLength;
803  uint8_t TlvPresent;
805 
841 {
842  uint8_t bNotification;
843  uint16_t wSessionStatus;
844  uint8_t TlvPresent;
846 
858 {
861  uint8_t TlvPresent;
863 
879 {
880  uint16_t wWamsChangeMask;
881  uint8_t TlvPresent;
883 
892 {
893  uint8_t bPackageID;
894  uint8_t TlvPresent;
896 
908 {
909  uint8_t bRegStatus;
910  uint8_t TlvPresent;
912 
926 {
927  uint8_t bType;
928  uint16_t wErrorCode;
929  uint8_t TlvPresent;
931 
941 {
942  uint8_t bType;
943  uint8_t TlvPresent;
945 
994 {
995  uint16_t wHTTPStatus;
996  uint8_t TlvPresent;
998 
1004  /* UnpackSwiAvmsEventReportBinaryUpdateSessionInfo response parameters */
1006 
1007  /* UnpackSwiAvmsEventReportConfig response parameters */
1009 
1010  /* UnpackSwiAvmsEventReportNotification response parameters */
1012 
1013  /* UnpackSwiAvmsEventReportPackageID response parameters */
1015 
1016  uint32_t resultcode;
1018 
1038  uint8_t *pResp,
1039  uint16_t respLen,
1041 );
1042 
1043 
1044 
1081  /* UnpackSwiAvmsEventReportBinaryUpdateSessionInfo response parameters */
1083 
1084  /* UnpackSwiAvmsEventReportConfig response parameters */
1086 
1087  /* UnpackSwiAvmsEventReportNotification response parameters */
1089 
1090  /* UnpackSwiAvmsEventReportPackageID response parameters */
1092 
1093  /* UnpackSwiAvmsEventReportConnectionRequest response parameters */
1095 
1096  /* UnpackSwiAvmsEventReportWAMSParamChange response parameters */
1098 
1099  /* UnpackSwiAvmsEventReportRegStatus response parameters */
1101 
1102  /* UnpackSwiAvmsEventReportDataSessionStatus response parameters */
1104 
1105  /* UnpackSwiAvmsEventReportSessionType response parameters */
1107 
1108  /* UnpackSwiAvmsEventReportHTTPStatus response parameters */
1110 
1111  uint32_t resultcode;
1113 
1133  uint8_t *pResp,
1134  uint16_t respLen,
1136 );
1137 
1138 
1139 
1140 #endif //__LITEQMI_SWIAVMS_H__
Definition: swiavms.h:840
#define MAX_PACK_SWI_AVMS_SESSIONGETINFO_CONFIG_ALERT_MSG_LENGTH
Definition: swiavms.h:778
uint32_t OMADMEnabled
Definition: swiavms.h:495
UnpackSwiAvmsEventReportHTTPStatus * pHTTPStatus
Definition: swiavms.h:1109
uint8_t * pAPN
Definition: swiavms.h:442
Definition: swiavms.h:337
uint16_t wUpdateCompeteStatus
Definition: swiavms.h:767
uint8_t AutoReboot
Definition: swiavms.h:292
uint8_t sessionType
Definition: swiavms.h:107
PackSwiAVMSSettingsPeriodsInfo * pPeroidsInfo
Definition: swiavms.h:505
uint16_t wDescriptionLength
Definition: swiavms.h:773
struct _UnpackSwiAvmsEventReportDataSessionStatus UnpackSwiAvmsEventReportDataSessionStatus
uint32_t resultcode
Definition: swiavms.h:1111
uint8_t * pPackageID
Definition: swiavms.h:562
uint8_t bUnameLength
Definition: swiavms.h:443
uint16_t wUserInputTimeout
Definition: swiavms.h:764
uint8_t FwAutoUpdate
Definition: swiavms.h:499
uint8_t bNotification
Definition: swiavms.h:842
PackSwiAVMSSettingsAPNInfo * pAPNInfo
Definition: swiavms.h:503
int unpack_swiavms_SLQSAVMSSendSelection(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSSendSelection_t *pResponse)
uint8_t szDescription[1024]
Definition: swiavms.h:774
int unpack_swiavms_SLQSAVMSStopSession(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSStopSession_t *pResponse)
uint8_t bType
Definition: swiavms.h:942
uint8_t AutoConnect
Definition: swiavms.h:496
uint16_t wVersionLength
Definition: swiavms.h:769
uint32_t ulPkgDownloadComplete
Definition: swiavms.h:766
Definition: swiavms.h:288
#define MAX_PACK_SWI_AVMS_SET_SETTING_PWD_LENGTH
Definition: swiavms.h:187
uint8_t szPWD[29]
Definition: swiavms.h:203
struct _unpack_swiavms_SLQSAVMSSessionGetInfo_t unpack_swiavms_SLQSAVMSSessionGetInfo_t
struct _PackSwiAVMSSettingsConnectionRetryTimers PackSwiAVMSSettingsConnectionRetryTimers
uint8_t bAPNLength
Definition: swiavms.h:198
Definition: swiavms.h:196
Definition: swiavms.h:146
PackSwiAvmsSetSettingsPeriodInfo * pPeriodInfo
Definition: swiavms.h:298
#define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_NAME_LENGTH
Definition: swiavms.h:718
uint8_t TlvPresent
Definition: swiavms.h:844
struct _UnpackSwiAvmsEventReportPackageID UnpackSwiAvmsEventReportPackageID
uint8_t bAPNLength
Definition: swiavms.h:441
uint8_t szUname[29]
Definition: swiavms.h:201
struct _PackSwiAvmsSetSettingsPeriodInfo PackSwiAvmsSetSettingsPeriodInfo
Definition: swiavms.h:558
struct _UnpackSwiAvmsEventReportNotification UnpackSwiAvmsEventReportNotification
uint8_t bPWDLength
Definition: swiavms.h:445
UnpackSwiAvmsEventReportNotification * pNotification
Definition: swiavms.h:1011
uint8_t szAPN[49]
Definition: swiavms.h:199
uint16_t wNameLength
Definition: swiavms.h:771
uint32_t min
Definition: swiavms.h:486
int pack_swiavms_SLQSAVMSSetSettings(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSSetSettings_t reqParam)
int pack_swiavms_SLQSAVMSSendSelection(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSSendSelection_t reqParam)
Definition: swiavms.h:907
#define MAX_PACK_SWI_AVMS_SET_SETTING_CONNECTION_RETRY_TIMMERS
Definition: swiavms.h:207
uint32_t resultcode
Definition: swiavms.h:69
int unpack_swiavms_SLQSAVMSGetSettings(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSGetSettings_t *pResponse)
UnpackSwiAvmsEventReportConfig * pConfig
Definition: swiavms.h:1008
UnpackSwiAvmsEventReportBinaryUpdateSessionInfo * pBinaryUpdateSessionInfo
Definition: swiavms.h:1082
Definition: swiavms.h:439
uint8_t bPackageID
Definition: swiavms.h:893
uint32_t sessionResponse
Definition: swiavms.h:68
uint32_t * pPollingTimer
Definition: swiavms.h:294
struct _unpack_swiavms_SLQSAVMSEventReportInd_t unpack_swiavms_SLQSAVMSEventReportInd_t
Definition: swiavms.h:484
UnpackSwiAvmsEventReportSessionType * pSessionType
Definition: swiavms.h:1106
int pack_swiavms_SLQSAVMSSessionGetInfo(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen)
uint8_t sessionType
Definition: swiavms.h:25
uint16_t wUserInputTimeout
Definition: swiavms.h:800
uint8_t bState
Definition: swiavms.h:798
uint8_t FwAutodownload
Definition: swiavms.h:289
uint8_t bBinaryType
Definition: swiavms.h:761
struct _PackSwiAvmsSetSettingsAPNInfo PackSwiAvmsSetSettingsAPNInfo
uint32_t max
Definition: swiavms.h:487
PackSwiAVMSSettingsConnectionRetryTimers * pConnectionRetryTimers
Definition: swiavms.h:502
int pack_swiavms_SLQSAVMSSetSettingsNoAutoRebootField(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSSetSettings_t reqParam)
int unpack_swiavms_SLQSAvmsSetEventReport(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAvmsSetEventReport_t *pResponse)
uint8_t selection
Definition: swiavms.h:559
uint8_t TlvPresent
Definition: swiavms.h:996
uint16_t wAlertMsgLength
Definition: swiavms.h:801
uint16_t Timers[8]
Definition: swiavms.h:233
uint8_t TlvPresent
Definition: swiavms.h:943
uint8_t bSerity
Definition: swiavms.h:768
uint32_t ulMin
Definition: swiavms.h:180
uint8_t AutoConnect
Definition: swiavms.h:291
uint8_t TlvPresent
Definition: swiavms.h:910
uint16_t wErrorCode
Definition: swiavms.h:928
UnpackSwiAvmsEventReportNotification * pNotification
Definition: swiavms.h:1088
UnpackSwiAvmsEventReportBinaryUpdateSessionInfo * pBinaryUpdateSessionInfo
Definition: swiavms.h:1005
uint8_t * pPWD
Definition: swiavms.h:446
uint32_t * pPollingTimer
Definition: swiavms.h:501
#define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_DESC_LENGTH
Definition: swiavms.h:719
struct _PackSwiAVMSSettingsPeriodsInfo PackSwiAVMSSettingsPeriodsInfo
int unpack_swiavms_SLQSAVMSSessionGetInfo(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSSessionGetInfo_t *pResponse)
uint8_t TlvPresent
Definition: swiavms.h:881
uint16_t wHTTPStatus
Definition: swiavms.h:995
int unpack_swiavms_SLQSAVMSSetSettings(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSSetSettings_t *pResponse)
int pack_swiavms_SLQSAVMSStopSession(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSStopSession_t reqParam)
uint8_t FwAutoUpdate
Definition: swiavms.h:290
struct _UnpackSwiAvmsEventReportSessionType UnpackSwiAvmsEventReportSessionType
Definition: swiavms.h:106
UnpackSwiAvmsEventReportConfig * pConfig
Definition: swiavms.h:1085
uint8_t bUserInputRequest
Definition: swiavms.h:799
Definition: swiavms.h:24
Definition: swiavms.h:796
uint16_t wWamsChangeMask
Definition: swiavms.h:880
uint8_t TlvPresent
Definition: swiavms.h:929
uint32_t resultcode
Definition: swiavms.h:1016
uint8_t bUserInputRequest
Definition: swiavms.h:859
uint8_t bState
Definition: swiavms.h:762
uint16_t Timers[8]
Definition: swiavms.h:473
UnpackSwiAvmsEventReportPackageID * pPackageID
Definition: swiavms.h:1091
uint32_t resultcode
Definition: swiavms.h:338
uint8_t TlvPresent
Definition: swiavms.h:894
uint16_t * pRejectReason
Definition: swiavms.h:563
int pack_swiavms_SLQSAVMSStartSession(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_swiavms_SLQSAVMSStartSession_t reqParam)
UnpackSwiAvmsEventReportRegStatus * pRegStatus
Definition: swiavms.h:1100
uint32_t ulPkgDownloadSize
Definition: swiavms.h:765
UnpackSwiAvmsEventReportPackageID * pPackageID
Definition: swiavms.h:1014
uint8_t bPWDLength
Definition: swiavms.h:202
uint8_t * pUname
Definition: swiavms.h:444
PackSwiAvmsSetSettingsAPNInfo * pAPNInfo
Definition: swiavms.h:296
struct _UnpackSwiAvmsEventReportBinaryUpdateSessionInfo UnpackSwiAvmsEventReportBinaryUpdateSessionInfo
uint8_t bType
Definition: swiavms.h:927
UnpackSwiAvmsEventReportDataSessionStatus * pDataSessionStatus
Definition: swiavms.h:1103
uint8_t * pClientPerformOperationFlag
Definition: swiavms.h:561
uint8_t * pFwAutoSDM
Definition: swiavms.h:293
uint8_t FwAutoSDM
Definition: swiavms.h:500
int pack_swiavms_SLQSAvmsSetEventReport(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen)
struct _UnpackSwiAvmsEventReportRegStatus UnpackSwiAvmsEventReportRegStatus
int unpack_swiavms_SLQSAVMSEventReportInd(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSEventReportInd_t *pResponse)
uint8_t szName[128]
Definition: swiavms.h:772
uint8_t TlvPresent
Definition: swiavms.h:861
#define MAX_PACK_SWI_AVMS_SET_SETTING_UNAME_LENGTH
Definition: swiavms.h:186
uint8_t TlvPresent
Definition: swiavms.h:803
uint8_t bRegStatus
Definition: swiavms.h:909
PackSwiAvmsSetSettingsConnectionRetryTimers * pConnectionRetryTimers
Definition: swiavms.h:295
uint8_t szAlertMsg[200]
Definition: swiavms.h:802
struct _PackSwiAVMSSettingsAPNInfo PackSwiAVMSSettingsAPNInfo
uint32_t ulMax
Definition: swiavms.h:181
uint8_t szVersion[128]
Definition: swiavms.h:770
uint32_t resultcode
Definition: swiavms.h:506
#define MAX_AVMS_SETTINGS_RETRY_TIMER_NUMBER
Definition: swiavms.h:448
Definition: swiavms.h:891
#define MAX_PACK_SWI_AVMS_SESSIONGETINFO_BINARYUPDATESESSIONINFO_VERSION_LENGTH
Definition: swiavms.h:717
uint16_t wUserInputTimeout
Definition: swiavms.h:860
#define MAX_PACK_SWI_AVMS_SET_SETTING_APN_LENGTH
Definition: swiavms.h:185
struct _UnpackSwiAvmsEventReportConnectionRequest UnpackSwiAvmsEventReportConnectionRequest
UnpackSwiAvmsEventReportConnectionRequest * pConnectionRequest
Definition: swiavms.h:1094
Definition: swiavms.h:178
uint8_t FwAutodownload
Definition: swiavms.h:498
UnpackSwiAvmsEventReportWAMSParamChange * pWAMSParaChanged
Definition: swiavms.h:1097
Definition: swiavms.h:993
uint8_t TlvPresent
Definition: swiavms.h:775
Definition: swiavms.h:494
uint32_t * pDeferTime
Definition: swiavms.h:560
uint32_t resultcode
Definition: swiavms.h:147
uint32_t resultcode
Definition: swiavms.h:603
Definition: swiavms.h:940
uint8_t * pNotifStore
Definition: swiavms.h:297
struct _UnpackSwiAvmsEventReportConfig UnpackSwiAvmsEventReportConfig
uint8_t * pNotificationStore
Definition: swiavms.h:504
struct _UnpackSwiAvmsEventReportHTTPStatus UnpackSwiAvmsEventReportHTTPStatus
Definition: common.h:110
uint32_t resultcode
Definition: swiavms.h:663
int pack_swiavms_SLQSAVMSGetSettings(pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen)
int unpack_swiavms_SLQSAVMSStartSession(uint8_t *pResp, uint16_t respLen, unpack_swiavms_SLQSAVMSStartSession_t *pResponse)
struct _UnpackSwiAvmsEventReportWAMSParamChange UnpackSwiAvmsEventReportWAMSParamChange
uint8_t bUnameLength
Definition: swiavms.h:200
uint16_t wSessionStatus
Definition: swiavms.h:843
struct _PackSwiAvmsSetSettingsConnectionRetryTimers PackSwiAvmsSetSettingsConnectionRetryTimers
uint8_t AutoReboot
Definition: swiavms.h:497
uint8_t bUserInputRequest
Definition: swiavms.h:763

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