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