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

Struct_Reg_GW.h

Go to the documentation of this file.
00001  /** GMMP Operation 중 GW Registration 명령에 사용되는 구조체
00002   * @date 2013/11/21
00003  * @version 0.0.0.1
00004  * @file Struct_Reg_GW.h
00005  **/
00006 
00007 #ifndef STRUCT_REG_GW_H_
00008 #define STRUCT_REG_GW_H_
00009 
00010 #include "Define.h"
00011 #include "Struct_Common.h"
00012 
00013 #pragma pack(1)
00014 /**
00015  * @struct stGwRegistrationReqHdr
00016  * @brief GMMP TCP Packet  구조 중 Request 수행 시 Message Header와 Message Body 영역
00017  * OMP에서 GW Registration 메시지를 OMP에 전송한다.
00018  */
00019 typedef struct {
00020 /**
00021 *@var usDomainCode
00022 *@brief 서비스 영역별 구분 코드\n
00023 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n
00024 */
00025 /**
00026 *@var usManufactureID
00027 *@brief M2M GW의 Manufacture ID 이다.\n
00028 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.
00029 Ex) 공장 제조 Serial No. : “AVB12132SET23DT”, “SKTSerial“
00030 */
00031     U8  usDomainCode[LEN_DOMAIN_CODE];
00032     U8  usManufactureID[LEN_MANUFACTURE_ID];
00033 }stGwRegistrationReqHdr; //GW Registration Request
00034 
00035 /**
00036  * @struct stGwRegistrationRspHdr
00037  * @brief GMMP TCP Packet  구조 중 Response 수행 시 Message Header와 Message Body 영역
00038  * OMP에서 GW Registration 메시지를 OMP에 수신한다.
00039  */
00040 typedef struct {
00041 /**
00042 *@var usDomainCode
00043 *@brief 서비스 영역별 구분 코드\n
00044 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n
00045 */
00046 /**
00047 *@var usGWID
00048 *@brief M2M GW ID
00049 */
00050 /**
00051 *@var ucResultCode
00052 *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조
00053 */
00054     U8  usDomainCode[LEN_DOMAIN_CODE];
00055     U8  usGWID[LEN_GW_ID];
00056     U8  ucResultCode;
00057 }stGwRegistrationRspHdr; //GW Registration Response
00058 
00059 /**
00060  * @struct GwRegist_Req
00061  * @brief GMMP TCP Packet  구조 중 Request GW Regist 구조체
00062  * OMP에 Request GW Regist 데이터 전송한다.
00063  */
00064 typedef struct {
00065 /**
00066 *@var header
00067 *@brief @ref GMMPHeader 참조
00068 */
00069 /**
00070 *@var body
00071 *@brief @ref stGwRegistrationReqHdr 참조
00072 */
00073     GMMPHeader              header;
00074     stGwRegistrationReqHdr  body;
00075 }GwRegist_Req;
00076 
00077 /**
00078  * @struct GwRegist_Rsp
00079  * @brief GMMP TCP Packet  구조 중 Response Gw Regist 구조체
00080   * OMP에 Response Gw Regist 데이터 수신한다.
00081  */
00082 typedef struct {
00083 /**
00084 *@var header
00085 *@brief @ref GMMPHeader 참조
00086 */
00087 /**
00088 *@var body
00089 *@brief @ref stGwRegistrationRspHdr 참조
00090 */
00091     GMMPHeader              header;
00092     stGwRegistrationRspHdr  body;
00093 }GwRegist_Rsp;
00094 #pragma pack(0)
00095 
00096 #endif /* STRUCT_REG_GW_H_ */