Modified for W5500 Ethernet initialize
Fork of GMMP_mbed by
Operation/Reg/Struct_Reg_GW.h@0:7e575e5f88ec, 2015-08-09 (annotated)
- Committer:
- lesmin
- Date:
- Sun Aug 09 14:11:35 2015 +0000
- Revision:
- 0:7e575e5f88ec
forked from GMMP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lesmin | 0:7e575e5f88ec | 1 | /** GMMP Operation 중 GW 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_GW.h |
lesmin | 0:7e575e5f88ec | 5 | **/ |
lesmin | 0:7e575e5f88ec | 6 | |
lesmin | 0:7e575e5f88ec | 7 | #ifndef STRUCT_REG_GW_H_ |
lesmin | 0:7e575e5f88ec | 8 | #define STRUCT_REG_GW_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 stGwRegistrationReqHdr |
lesmin | 0:7e575e5f88ec | 16 | * @brief GMMP TCP Packet 구조 중 Request 수행 시 Message Header와 Message Body 영역 |
lesmin | 0:7e575e5f88ec | 17 | * OMP에서 GW 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 usManufactureID |
lesmin | 0:7e575e5f88ec | 27 | *@brief M2M GW의 Manufacture ID 이다.\n |
lesmin | 0:7e575e5f88ec | 28 | - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다. |
lesmin | 0:7e575e5f88ec | 29 | Ex) 공장 제조 Serial No. : “AVB12132SET23DT”, “SKTSerial“ |
lesmin | 0:7e575e5f88ec | 30 | */ |
lesmin | 0:7e575e5f88ec | 31 | U8 usDomainCode[LEN_DOMAIN_CODE]; |
lesmin | 0:7e575e5f88ec | 32 | U8 usManufactureID[LEN_MANUFACTURE_ID]; |
lesmin | 0:7e575e5f88ec | 33 | }stGwRegistrationReqHdr; //GW Registration Request |
lesmin | 0:7e575e5f88ec | 34 | |
lesmin | 0:7e575e5f88ec | 35 | /** |
lesmin | 0:7e575e5f88ec | 36 | * @struct stGwRegistrationRspHdr |
lesmin | 0:7e575e5f88ec | 37 | * @brief GMMP TCP Packet 구조 중 Response 수행 시 Message Header와 Message Body 영역 |
lesmin | 0:7e575e5f88ec | 38 | * OMP에서 GW Registration 메시지를 OMP에 수신한다. |
lesmin | 0:7e575e5f88ec | 39 | */ |
lesmin | 0:7e575e5f88ec | 40 | typedef struct { |
lesmin | 0:7e575e5f88ec | 41 | /** |
lesmin | 0:7e575e5f88ec | 42 | *@var usDomainCode |
lesmin | 0:7e575e5f88ec | 43 | *@brief 서비스 영역별 구분 코드\n |
lesmin | 0:7e575e5f88ec | 44 | - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n |
lesmin | 0:7e575e5f88ec | 45 | */ |
lesmin | 0:7e575e5f88ec | 46 | /** |
lesmin | 0:7e575e5f88ec | 47 | *@var usGWID |
lesmin | 0:7e575e5f88ec | 48 | *@brief M2M GW ID |
lesmin | 0:7e575e5f88ec | 49 | */ |
lesmin | 0:7e575e5f88ec | 50 | /** |
lesmin | 0:7e575e5f88ec | 51 | *@var ucResultCode |
lesmin | 0:7e575e5f88ec | 52 | *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조 |
lesmin | 0:7e575e5f88ec | 53 | */ |
lesmin | 0:7e575e5f88ec | 54 | U8 usDomainCode[LEN_DOMAIN_CODE]; |
lesmin | 0:7e575e5f88ec | 55 | U8 usGWID[LEN_GW_ID]; |
lesmin | 0:7e575e5f88ec | 56 | U8 ucResultCode; |
lesmin | 0:7e575e5f88ec | 57 | }stGwRegistrationRspHdr; //GW Registration Response |
lesmin | 0:7e575e5f88ec | 58 | |
lesmin | 0:7e575e5f88ec | 59 | /** |
lesmin | 0:7e575e5f88ec | 60 | * @struct GwRegist_Req |
lesmin | 0:7e575e5f88ec | 61 | * @brief GMMP TCP Packet 구조 중 Request GW Regist 구조체 |
lesmin | 0:7e575e5f88ec | 62 | * OMP에 Request GW Regist 데이터 전송한다. |
lesmin | 0:7e575e5f88ec | 63 | */ |
lesmin | 0:7e575e5f88ec | 64 | typedef struct { |
lesmin | 0:7e575e5f88ec | 65 | /** |
lesmin | 0:7e575e5f88ec | 66 | *@var header |
lesmin | 0:7e575e5f88ec | 67 | *@brief @ref GMMPHeader 참조 |
lesmin | 0:7e575e5f88ec | 68 | */ |
lesmin | 0:7e575e5f88ec | 69 | /** |
lesmin | 0:7e575e5f88ec | 70 | *@var body |
lesmin | 0:7e575e5f88ec | 71 | *@brief @ref stGwRegistrationReqHdr 참조 |
lesmin | 0:7e575e5f88ec | 72 | */ |
lesmin | 0:7e575e5f88ec | 73 | GMMPHeader header; |
lesmin | 0:7e575e5f88ec | 74 | stGwRegistrationReqHdr body; |
lesmin | 0:7e575e5f88ec | 75 | }GwRegist_Req; |
lesmin | 0:7e575e5f88ec | 76 | |
lesmin | 0:7e575e5f88ec | 77 | /** |
lesmin | 0:7e575e5f88ec | 78 | * @struct GwRegist_Rsp |
lesmin | 0:7e575e5f88ec | 79 | * @brief GMMP TCP Packet 구조 중 Response Gw Regist 구조체 |
lesmin | 0:7e575e5f88ec | 80 | * OMP에 Response Gw Regist 데이터 수신한다. |
lesmin | 0:7e575e5f88ec | 81 | */ |
lesmin | 0:7e575e5f88ec | 82 | typedef struct { |
lesmin | 0:7e575e5f88ec | 83 | /** |
lesmin | 0:7e575e5f88ec | 84 | *@var header |
lesmin | 0:7e575e5f88ec | 85 | *@brief @ref GMMPHeader 참조 |
lesmin | 0:7e575e5f88ec | 86 | */ |
lesmin | 0:7e575e5f88ec | 87 | /** |
lesmin | 0:7e575e5f88ec | 88 | *@var body |
lesmin | 0:7e575e5f88ec | 89 | *@brief @ref stGwRegistrationRspHdr 참조 |
lesmin | 0:7e575e5f88ec | 90 | */ |
lesmin | 0:7e575e5f88ec | 91 | GMMPHeader header; |
lesmin | 0:7e575e5f88ec | 92 | stGwRegistrationRspHdr body; |
lesmin | 0:7e575e5f88ec | 93 | }GwRegist_Rsp; |
lesmin | 0:7e575e5f88ec | 94 | #pragma pack(0) |
lesmin | 0:7e575e5f88ec | 95 | |
lesmin | 0:7e575e5f88ec | 96 | #endif /* STRUCT_REG_GW_H_ */ |