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 Struct_Notification.h Source File

Struct_Notification.h

Go to the documentation of this file.
00001 /** GMMP Operation 중 제어 명령 수행 결과 보고 명령에 사용되는 구조체
00002 * @file Struct_Notification.h
00003 * @date 2013/11/21
00004 * @version 0.0.0.1
00005 * @ref GMMPHeader참조
00006 **/
00007 
00008 #ifndef STRUCT_NOTIFICATION_H_
00009 #define STRUCT_NOTIFICATION_H_
00010 
00011 #include "Define.h"
00012 #include "Struct_Common.h"
00013 
00014 #pragma pack(1)
00015 /**
00016  * @struct stNotificationReqHdr
00017  * @brief GMMP TCP Packet  구조 중 Request 수행 시 Message Header와 Message Body 영역
00018  * OMP에서 제어 메시지를 수행 후 제어 메시지 결과를 OMP에 보고한다.
00019  */
00020 
00021 typedef struct {
00022 /**
00023 *@var usDomainCode
00024 *@brief 서비스 영역별 구분 코드\n
00025 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n
00026 */
00027 /**
00028 *@var usGWID
00029 *@brief M2M GW ID
00030 */
00031 /**
00032 *@var usDeviceID
00033 *@brief M2M Device ID, 값이 0x0이면 GW 명령이다.
00034 */
00035 /**
00036 *@var ucControlType
00037 *@brief 제어 명령 수신 메시지에 수신한 값과 동일한 값을 사용한다. @ref Define_Control.h 참조
00038 */
00039 /**
00040 *@var ucResultCode
00041 *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조
00042 */
00043 /**
00044 *@var usMessageBody
00045 *@brief Data [2048byte] ucControlType 정의에 의해 세부 내용이 변경 된다.
00046 *@brief  @ref Struct_Control_Opt.h 참조
00047 *@warning 옵션으로 사용하지 않을 수 있다.
00048 */
00049     U8  usDomainCode[LEN_DOMAIN_CODE];
00050     U8  usGWID[LEN_GW_ID];
00051     U8  usDeviceID[LEN_DEVICE_ID];
00052     U8  ucControlType;
00053     U8  ucResultCode;
00054     U8  usMessageBody[MAX_MSG_BODY];
00055 }stNotificationReqHdr; //Notification Request
00056 
00057 /**
00058  * @struct stNotificationRspHdr
00059  * @brief GMMP TCP Packet  구조 중 Response 수행 시 Message Header와 Message Body 영역
00060   * 제어 메시지 결과 응답을를 수신한다.
00061  */
00062 typedef struct {
00063  /**
00064 *@var usDomainCode
00065 *@brief 서비스 영역별 구분 코드\n
00066 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n
00067 */
00068 /**
00069 *@var usGWID
00070 *@brief M2M GW ID
00071 */
00072 /**
00073 *@var usDeviceID
00074 *@brief M2M Device ID, 값이 0x0이면 GW 명령이다.
00075 */
00076 /**
00077 *@var ucControlType
00078 *@brief 제어 명령 수신 메시지에 수신한 값과 동일한 값을 사용한다 @ref Define_Control.h 참조
00079 *@ref Define_Control.h 참조
00080 */
00081 /**
00082 *@var ucResultCode
00083 *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조
00084 */
00085     U8  usDomainCode[LEN_DOMAIN_CODE];
00086     U8  usGWID[LEN_GW_ID];
00087     U8  usDeviceID[LEN_DEVICE_ID];
00088     U8  ucControlType;
00089     U8  ucResultCode;
00090 }stNotificationRspHdr; //Notification Response
00091 
00092 /**
00093  * @struct Notifi_Req
00094  * @brief GMMP TCP Packet  구조 중 Request Notification 구조체
00095  * OMP에 Request Notification 데이터 전송한다.
00096  */
00097 typedef struct {
00098 /**
00099 *@var header
00100 *@brief @ref GMMPHeader 참조
00101 */
00102 /**
00103 *@var body
00104 *@brief @ref stNotificationReqHdr 참조
00105 */
00106     GMMPHeader              header;
00107     stNotificationReqHdr    body;
00108 }Notifi_Req;
00109 
00110 /**
00111  * @struct Notifi_Rsp
00112  * @brief GMMP TCP Packet  구조 중 Response Notification 구조체
00113   * OMP에 Response Notification 데이터 수신한다.
00114  */
00115 typedef struct {
00116 /**
00117 *@var header
00118 *@brief @ref GMMPHeader 참조
00119 */
00120 /**
00121 *@var body
00122 *@brief @ref stNotificationRspHdr 참조
00123 */
00124     GMMPHeader              header;
00125     stNotificationRspHdr    body;
00126 }Notifi_Rsp;
00127 #pragma pack(0)
00128 
00129 #endif /* STRUCT_NOTIFICATION_H_ */