Eric Jung / GMMP_mbed_Ethernet_Reinit

Dependents:   ThingPlug_Ethernet_Example

Fork of GMMP_mbed by Eric Jung

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GMMP_Operation.h Source File

GMMP_Operation.h

Go to the documentation of this file.
00001 /** GMMP 내부함수 및 변수 설명
00002   * @date 2013/11/21
00003  * @version 0.0.0.1
00004  * @file GMMP_Operation.h
00005  **/
00006 
00007 #ifndef GMMP_OPERATION_H_
00008 #define GMMP_OPERATION_H_
00009 
00010 #include "GMMP_Control.h"
00011 #include "GMMP_Delivery.h"
00012 #include "GMMP_Heartbeat.h"
00013 #include "GMMP_Notification.h"
00014 #include "GMMP_ProfileInfo.h"
00015 #include "GMMP_Reg.h"
00016 #include "Network.h"
00017 #include "GMMP.h "
00018 
00019 /**
00020  * @brief GW/Device 등록/해지 Request 기능
00021  * @param pszAuthID Auth ID 문자열 입력
00022  * @param pszAuthKey Auth Key 문자열 입력
00023  * @param pszDomainCode Domain Code
00024  * @param pszGWID GW ID
00025  * @param pszManufactureID
00026  * @return
00027  */
00028 int GMMP_SetReg(const char* pszAuthID,
00029         const char* pszAuthKey,
00030         const char* pszDomainCode,
00031         const char* pszGWID,
00032         const char* pszManufactureID);
00033 
00034 /**
00035  *
00036  * @param pszAuthID
00037  * @param pszAuthKey
00038  * @param pszDomainCode
00039  * @param pszGWID
00040  * @param pszDeviceID
00041  * @return
00042  */
00043 /**
00044  *
00045  * @param pszAuthID
00046  * @param pszAuthKey
00047  * @param pszDomainCode
00048  * @param pszGWID
00049  * @param pszDeviceID
00050  * @return
00051  */
00052 /**
00053  *
00054  * @param pszAuthID
00055  * @param pszAuthKey
00056  * @param pszDomainCode
00057  * @param pszGWID
00058  * @param pszDeviceID
00059  * @return
00060  */
00061 /**
00062  *
00063  * @param pszAuthID
00064  * @param pszAuthKey
00065  * @param pszDomainCode
00066  * @param pszGWID
00067  * @param pszDeviceID
00068  * @return
00069  */
00070 int GMMP_SetDeReg (const char* pszAuthID,
00071         const char* pszAuthKey,
00072         const char* pszDomainCode,
00073         const char* pszGWID,
00074         const char* pszDeviceID);
00075 /**
00076  *
00077  * @param pstGwRegist_Rsp
00078  * @param pstDeviceRegist_Rsp
00079  * @return
00080  */
00081 int GMMP_GetReg (GwRegist_Rsp* pstGwRegist_Rsp, DeviceRegist_Rsp* pstDeviceRegist_Rsp);
00082 
00083 /**
00084  *
00085  * @param pstGwRegist_Rsp
00086  * @param pstDeviceDeRegist_Rsp
00087  * @return
00088  */
00089 int GMMP_GetDeReg (GwDeRegist_Rsp* pstGwRegist_Rsp, DeviceDeRegist_Rsp* pstDeviceDeRegist_Rsp);
00090 
00091 /**
00092  *
00093  * @param pszAuthID
00094  * @param pszAuthKey
00095  * @param pszDomainCode
00096  * @param pszGWID
00097  * @param pszDeviceID
00098  * @return
00099  */
00100 int GMMP_SetProfile (const char* pszAuthID,
00101         const char* pszAuthKey,
00102         const char* pszDomainCode,
00103         const char* pszGWID,
00104         const char* pszDeviceID);
00105 /**
00106  *
00107  * @param pstProfile_Rsp
00108  * @return
00109  */
00110 int GMMP_GetProfile (Profile_Rsp* pstProfile_Rsp);
00111 /**
00112  *
00113  * @param pszAuthID
00114  * @param pszAuthKey
00115  * @param pszDomainCode
00116  * @param pszGWID
00117  * @param pszDeviceID
00118  * @param cReportType
00119  * @param cMediaType
00120  * @param pszMessageBody
00121  * @param nTotalCount
00122  * @param nCurrentCount
00123  * @return
00124  */
00125 int GMMP_SetDelivery (const char* pszAuthID,
00126         const char* pszAuthKey,
00127         const char* pszDomainCode,
00128         const char* pszGWID,
00129         const char* pszDeviceID,
00130         const char cReportType,
00131         const char cMediaType,
00132         const char* pszMessageBody,
00133         const int nTotalCount,
00134         const int nCurrentCount);
00135 /**
00136  *
00137  * @param pstDelivery_Rsp
00138  * @return
00139  */
00140 int GMMP_GetDelivery (Delivery_Rsp* pstDelivery_Rsp);
00141 
00142 /**
00143  *
00144  * @param pszAuthID
00145  * @param pszAuthKey
00146  * @param pszDomainCode
00147  * @param pszGWID
00148  * @param pszDeviceID
00149  * @param cControlType
00150  * @param cResultCode
00151  * @return
00152  */
00153 int GMMP_SetControl (const char* pszAuthID,
00154         const char* pszAuthKey,
00155         const char* pszDomainCode,
00156         const char* pszGWID,
00157         const char* pszDeviceID,
00158         const char cControlType,
00159         const char cResultCode);
00160 
00161 /**
00162  *
00163  * @param pszAuthID
00164  * @param pszAuthKey
00165  * @param pszDomainCode
00166  * @param pszGWID
00167  * @param pszDeviceID
00168  * @param cControlType
00169  * @param cResultCode
00170  * @param pszMessageBody
00171  * @param nMessageSize
00172  * @return
00173  */
00174 int GMMP_SetNotifi (const char* pszAuthID,
00175         const char* pszAuthKey,
00176         const char* pszDomainCode,
00177         const char* pszGWID,
00178         const char* pszDeviceID,
00179         const char cControlType,
00180         const char cResultCode,
00181         const char* pszMessageBody,
00182         const int nMessageSize);
00183 
00184 /**
00185  *
00186  * @param pstNotifi_Rsp
00187  * @return
00188  */
00189 int GMMP_GetNotifi (Notifi_Rsp* pstNotifi_Rsp);
00190 
00191 /**
00192  *
00193  * @param pszAuthID
00194  * @param pszAuthKey
00195  * @param pszDomainCode
00196  * @param pszGWID
00197  * @return
00198  */
00199 int GMMP_SetHB (const char* pszAuthID,
00200         const char* pszAuthKey,
00201         const char* pszDomainCode,
00202         const char* pszGWID);
00203 
00204 /**
00205  *
00206  * @param pstHB_Rsp
00207  * @return
00208  */
00209 int GMMP_GetHB (HB_Rsp* pstHB_Rsp);
00210 
00211 /**
00212  *
00213  * @param pstGMMPHeader
00214  * @param pBody
00215  * @return
00216  */
00217 int GMMP_Read (GMMPHeader* pstGMMPHeader, void** pBody);
00218 int GMMP_Read2(GMMPHeader* pstGMMPHeader, void** pBody, byte blocking);
00219 /**
00220  *
00221  * @param pstGMMPHeader
00222  * @param pBody
00223  * @return
00224  */
00225 int GMMP_Recv (GMMPHeader* pstGMMPHeader, void* pBody);
00226 /**
00227  *
00228  * @param pstGMMPHeader
00229  * @param pstRspHdr
00230  * @return
00231  */
00232 int GMMP_Ctrl_Recv (GMMPHeader* pstGMMPHeader,  stControlReqHdr* pstRspHdr);
00233 /**
00234  *
00235  * @param pstGMMPHeader
00236  * @param pBody
00237  * @return
00238  */
00239 int GMMP_Trace (GMMPHeader* pstGMMPHeader, void* pBody);
00240 
00241 /**
00242  *
00243  * @param nTid
00244  */
00245 void SetTID (long nTid);
00246 /**
00247  *
00248  * @return
00249  */
00250 long GetTID ();
00251 
00252 /**
00253  *
00254  * @param pData
00255   * @param nPacketSize
00256  * @param nTotalCount
00257  * @param nCurrentCount
00258  * @param cMessageType
00259  * @param pszAuthID
00260  * @param pszAuthKey
00261  * @return
00262  */
00263 int SetHeader (void* pData,
00264         int nPacketSize,
00265         int nTotalCount,
00266         int nCurrentCount,
00267         const char cMessageType,
00268         const char* pszAuthID,
00269         const char* pszAuthKey);
00270 
00271 /**
00272  *
00273  * @return
00274  */
00275 int SetIntiSocket (void);
00276 
00277 /**
00278  *
00279  * @param Type
00280  * @param nOutBufferSize
00281  * @return
00282  */
00283 char* MallocBody (const char Type, int* nOutBufferSize);
00284 
00285 #endif /* GMMP_OPERATION_H_ */