ThingPlug GMMP library for mbed

Dependents:   ThingPlug_WiFi_Example

Committer:
lesmin
Date:
Thu Aug 13 07:04:29 2015 +0000
Revision:
4:bb6c1ee1d5f0
Parent:
0:32c20cfb2b30
added NTP error return

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lesmin 0:32c20cfb2b30 1 /** GMMP Operation 중 Device Registration 명령에 사용되는 구조체
lesmin 0:32c20cfb2b30 2 * @date 2013/11/21
lesmin 0:32c20cfb2b30 3 * @version 0.0.0.1
lesmin 0:32c20cfb2b30 4 * @file Struct_Reg_Device.h
lesmin 0:32c20cfb2b30 5 **/
lesmin 0:32c20cfb2b30 6
lesmin 0:32c20cfb2b30 7 #ifndef STRUCT_REG_DEVICE_H_
lesmin 0:32c20cfb2b30 8 #define STRUCT_REG_DEVICE_H_
lesmin 0:32c20cfb2b30 9
lesmin 0:32c20cfb2b30 10 #include "Define.h"
lesmin 0:32c20cfb2b30 11 #include "Struct_Common.h"
lesmin 0:32c20cfb2b30 12
lesmin 0:32c20cfb2b30 13 #pragma pack(1)
lesmin 0:32c20cfb2b30 14 /**
lesmin 0:32c20cfb2b30 15 * @struct stDeviceRegistrationReqHdr
lesmin 0:32c20cfb2b30 16 * @brief GMMP TCP Packet 구조 중 Request 수행 시 Message Header와 Message Body 영역
lesmin 0:32c20cfb2b30 17 * OMP에서 Device Registration 메시지를 OMP에 전송한다.
lesmin 0:32c20cfb2b30 18 */
lesmin 0:32c20cfb2b30 19 typedef struct {
lesmin 0:32c20cfb2b30 20 /**
lesmin 0:32c20cfb2b30 21 *@var usDomainCode
lesmin 0:32c20cfb2b30 22 *@brief 서비스 영역별 구분 코드\n
lesmin 0:32c20cfb2b30 23 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n
lesmin 0:32c20cfb2b30 24 */
lesmin 0:32c20cfb2b30 25 /**
lesmin 0:32c20cfb2b30 26 *@var usGWID
lesmin 0:32c20cfb2b30 27 *@brief M2M GW ID
lesmin 0:32c20cfb2b30 28 */
lesmin 0:32c20cfb2b30 29 /**
lesmin 0:32c20cfb2b30 30 *@var usManufactureID
lesmin 0:32c20cfb2b30 31 *@brief M2M GW의 Manufacture ID 이다.\n
lesmin 0:32c20cfb2b30 32 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.
lesmin 0:32c20cfb2b30 33 Ex) 공장 제조 Serial No. : “AVB12132SET23DT”, “SKTSerial“
lesmin 0:32c20cfb2b30 34 */
lesmin 0:32c20cfb2b30 35 U8 usDomainCode[LEN_DOMAIN_CODE];
lesmin 0:32c20cfb2b30 36 U8 usGWID[LEN_GW_ID];
lesmin 0:32c20cfb2b30 37 U8 usManufactureID[LEN_MANUFACTURE_ID];
lesmin 0:32c20cfb2b30 38 }stDeviceRegistrationReqHdr; //Device Registration Request
lesmin 0:32c20cfb2b30 39
lesmin 0:32c20cfb2b30 40 /**
lesmin 0:32c20cfb2b30 41 * @struct stDeviceRegistrationRspHdr
lesmin 0:32c20cfb2b30 42 * @brief GMMP TCP Packet 구조 중 Response 수행 시 Message Header와 Message Body 영역
lesmin 0:32c20cfb2b30 43 * OMP에서 Device Registration 메시지를 OMP에 수신한다.
lesmin 0:32c20cfb2b30 44 */
lesmin 0:32c20cfb2b30 45 typedef struct {
lesmin 0:32c20cfb2b30 46 /**
lesmin 0:32c20cfb2b30 47 *@var usDomainCode
lesmin 0:32c20cfb2b30 48 *@brief 서비스 영역별 구분 코드\n
lesmin 0:32c20cfb2b30 49 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n
lesmin 0:32c20cfb2b30 50 */
lesmin 0:32c20cfb2b30 51 /**
lesmin 0:32c20cfb2b30 52 *@var usGWID
lesmin 0:32c20cfb2b30 53 *@brief M2M GW ID
lesmin 0:32c20cfb2b30 54 */
lesmin 0:32c20cfb2b30 55 /**
lesmin 0:32c20cfb2b30 56 *@var usDeviceID
lesmin 0:32c20cfb2b30 57 *@brief M2M Device ID, 값이 0x0이면 GW 명령이다.
lesmin 0:32c20cfb2b30 58 */
lesmin 0:32c20cfb2b30 59 /**
lesmin 0:32c20cfb2b30 60 *@var ucResultCode
lesmin 0:32c20cfb2b30 61 *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조
lesmin 0:32c20cfb2b30 62 */
lesmin 0:32c20cfb2b30 63 U8 usDomainCode[LEN_DOMAIN_CODE];
lesmin 0:32c20cfb2b30 64 U8 usGWID[LEN_GW_ID];
lesmin 0:32c20cfb2b30 65 U8 usDeviceID[LEN_DEVICE_ID];
lesmin 0:32c20cfb2b30 66 U8 ucResultCode;
lesmin 0:32c20cfb2b30 67 }stDeviceRegistrationRspHdr; //Device Registration Response
lesmin 0:32c20cfb2b30 68
lesmin 0:32c20cfb2b30 69 /**
lesmin 0:32c20cfb2b30 70 * @struct DeviceRegist_Req
lesmin 0:32c20cfb2b30 71 * @brief GMMP TCP Packet 구조 중 Request Device Regist 구조체
lesmin 0:32c20cfb2b30 72 * OMP에 Request Device Regist 데이터 전송한다.
lesmin 0:32c20cfb2b30 73 */
lesmin 0:32c20cfb2b30 74 typedef struct {
lesmin 0:32c20cfb2b30 75 /**
lesmin 0:32c20cfb2b30 76 *@var header
lesmin 0:32c20cfb2b30 77 *@brief @ref GMMPHeader 참조
lesmin 0:32c20cfb2b30 78 */
lesmin 0:32c20cfb2b30 79 /**
lesmin 0:32c20cfb2b30 80 *@var body
lesmin 0:32c20cfb2b30 81 *@brief @ref stDeviceRegistrationReqHdr 참조
lesmin 0:32c20cfb2b30 82 */
lesmin 0:32c20cfb2b30 83 GMMPHeader header;
lesmin 0:32c20cfb2b30 84 stDeviceRegistrationReqHdr body;
lesmin 0:32c20cfb2b30 85 }DeviceRegist_Req;
lesmin 0:32c20cfb2b30 86
lesmin 0:32c20cfb2b30 87 /**
lesmin 0:32c20cfb2b30 88 * @struct DeviceRegist_Rsp
lesmin 0:32c20cfb2b30 89 * @brief GMMP TCP Packet 구조 중 Response Device Regist 구조체
lesmin 0:32c20cfb2b30 90 * OMP에 Response Device Regist 데이터 수신한다.
lesmin 0:32c20cfb2b30 91 */
lesmin 0:32c20cfb2b30 92 typedef struct {
lesmin 0:32c20cfb2b30 93 /**
lesmin 0:32c20cfb2b30 94 *@var header
lesmin 0:32c20cfb2b30 95 *@brief @ref GMMPHeader 참조
lesmin 0:32c20cfb2b30 96 */
lesmin 0:32c20cfb2b30 97 /**
lesmin 0:32c20cfb2b30 98 *@var body
lesmin 0:32c20cfb2b30 99 *@brief @ref stDeviceRegistrationRspHdr 참조
lesmin 0:32c20cfb2b30 100 */
lesmin 0:32c20cfb2b30 101 GMMPHeader header;
lesmin 0:32c20cfb2b30 102 stDeviceRegistrationRspHdr body;
lesmin 0:32c20cfb2b30 103 }DeviceRegist_Rsp;
lesmin 0:32c20cfb2b30 104 #pragma pack(0)
lesmin 0:32c20cfb2b30 105
lesmin 0:32c20cfb2b30 106 #endif /* STRUCT_REG_DEVICE_H_ */