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

Struct_Reg_Device.h

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