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

Struct_DeReg_Device.h

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