ThingPlug GMMP library for mbed
Dependents: ThingPlug_WiFi_Example_2 ThingPlug_Ethernet_Example ThingPlug_Ethernet_Example_temp_V2
Fork of GMMP_2 by
Operation/Heartbeat/Struct_Heartbeat.h@10:84a748b7d1f6, 2015-08-14 (annotated)
- Committer:
- lesmin
- Date:
- Fri Aug 14 09:11:32 2015 +0000
- Revision:
- 10:84a748b7d1f6
- Parent:
- 0:7e575e5f88ec
added TCP retry codes by WIZnet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lesmin | 0:7e575e5f88ec | 1 | /** GMMP Operation 중 Heartbeat 명령에 사용되는 구조체 |
lesmin | 0:7e575e5f88ec | 2 | * @file Struct_Heartbeat.h |
lesmin | 0:7e575e5f88ec | 3 | * @date 2013/11/21 |
lesmin | 0:7e575e5f88ec | 4 | * @version 0.0.0.1 |
lesmin | 0:7e575e5f88ec | 5 | * @ref GMMPHeader참조 |
lesmin | 0:7e575e5f88ec | 6 | **/ |
lesmin | 0:7e575e5f88ec | 7 | |
lesmin | 0:7e575e5f88ec | 8 | #ifndef STRUCT_HEARTBEAT_H_ |
lesmin | 0:7e575e5f88ec | 9 | #define STRUCT_HEARTBEAT_H_ |
lesmin | 0:7e575e5f88ec | 10 | |
lesmin | 0:7e575e5f88ec | 11 | #include "Define.h" |
lesmin | 0:7e575e5f88ec | 12 | #include "Struct_Common.h" |
lesmin | 0:7e575e5f88ec | 13 | |
lesmin | 0:7e575e5f88ec | 14 | #pragma pack(1) |
lesmin | 0:7e575e5f88ec | 15 | /** |
lesmin | 0:7e575e5f88ec | 16 | * @struct stHeartBeatMsgReqHdr |
lesmin | 0:7e575e5f88ec | 17 | * @brief GMMP TCP Packet 구조 중 Request 수행 시 Message Header와 Message Body 영역 |
lesmin | 0:7e575e5f88ec | 18 | * OMP에 Heartbeat 보고 명령을 전송 시 사용된다. |
lesmin | 0:7e575e5f88ec | 19 | * @warning (TCP Always On mode에서만 동작한다.) |
lesmin | 0:7e575e5f88ec | 20 | */ |
lesmin | 0:7e575e5f88ec | 21 | typedef struct { |
lesmin | 0:7e575e5f88ec | 22 | /** |
lesmin | 0:7e575e5f88ec | 23 | *@var usDomainCode |
lesmin | 0:7e575e5f88ec | 24 | *@brief 서비스 영역별 구분 코드\n |
lesmin | 0:7e575e5f88ec | 25 | - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n |
lesmin | 0:7e575e5f88ec | 26 | */ |
lesmin | 0:7e575e5f88ec | 27 | /** |
lesmin | 0:7e575e5f88ec | 28 | *@var usGWID |
lesmin | 0:7e575e5f88ec | 29 | *@brief M2M GW ID |
lesmin | 0:7e575e5f88ec | 30 | */ |
lesmin | 0:7e575e5f88ec | 31 | U8 usDomainCode[LEN_DOMAIN_CODE]; |
lesmin | 0:7e575e5f88ec | 32 | U8 usGWID[LEN_GW_ID]; |
lesmin | 0:7e575e5f88ec | 33 | }stHeartBeatMsgReqHdr; //Heartbeat Request |
lesmin | 0:7e575e5f88ec | 34 | |
lesmin | 0:7e575e5f88ec | 35 | /** |
lesmin | 0:7e575e5f88ec | 36 | * @struct stHeartBeatMsgRspHdr |
lesmin | 0:7e575e5f88ec | 37 | * @brief GMMP TCP Packet 구조 중 Request 수행 시 Message Header와 Message Body 영역 |
lesmin | 0:7e575e5f88ec | 38 | * OMP에 Heartbeat 보고 응답 명령을 수신 시 사용된다. |
lesmin | 0:7e575e5f88ec | 39 | * @warning (TCP Always On mode에서만 동작한다.) |
lesmin | 0:7e575e5f88ec | 40 | */ |
lesmin | 0:7e575e5f88ec | 41 | typedef struct { |
lesmin | 0:7e575e5f88ec | 42 | /** |
lesmin | 0:7e575e5f88ec | 43 | *@var usDomainCode |
lesmin | 0:7e575e5f88ec | 44 | *@brief 서비스 영역별 구분 코드\n |
lesmin | 0:7e575e5f88ec | 45 | - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n |
lesmin | 0:7e575e5f88ec | 46 | */ |
lesmin | 0:7e575e5f88ec | 47 | /** |
lesmin | 0:7e575e5f88ec | 48 | *@var usGWID |
lesmin | 0:7e575e5f88ec | 49 | *@brief M2M GW ID |
lesmin | 0:7e575e5f88ec | 50 | */ |
lesmin | 0:7e575e5f88ec | 51 | U8 usDomainCode[LEN_DOMAIN_CODE]; |
lesmin | 0:7e575e5f88ec | 52 | U8 usGWID[LEN_GW_ID]; |
lesmin | 0:7e575e5f88ec | 53 | }stHeartBeatMsgRspHdr; //Heartbeat Response |
lesmin | 0:7e575e5f88ec | 54 | |
lesmin | 0:7e575e5f88ec | 55 | /** |
lesmin | 0:7e575e5f88ec | 56 | * @struct HB_Req |
lesmin | 0:7e575e5f88ec | 57 | * @brief GMMP TCP Packet 구조 중 Request Heartbeat 구조체 |
lesmin | 0:7e575e5f88ec | 58 | * OMP에 Heartbeat 보고 명령을 전송한다. |
lesmin | 0:7e575e5f88ec | 59 | */ |
lesmin | 0:7e575e5f88ec | 60 | typedef struct { |
lesmin | 0:7e575e5f88ec | 61 | /** |
lesmin | 0:7e575e5f88ec | 62 | *@var header |
lesmin | 0:7e575e5f88ec | 63 | *@brief @ref GMMPHeader 참조 |
lesmin | 0:7e575e5f88ec | 64 | */ |
lesmin | 0:7e575e5f88ec | 65 | /** |
lesmin | 0:7e575e5f88ec | 66 | *@var body |
lesmin | 0:7e575e5f88ec | 67 | *@brief @ref stHeartBeatMsgReqHdr 참조 |
lesmin | 0:7e575e5f88ec | 68 | */ |
lesmin | 0:7e575e5f88ec | 69 | GMMPHeader header; |
lesmin | 0:7e575e5f88ec | 70 | stHeartBeatMsgReqHdr body; |
lesmin | 0:7e575e5f88ec | 71 | }HB_Req; |
lesmin | 0:7e575e5f88ec | 72 | |
lesmin | 0:7e575e5f88ec | 73 | /** |
lesmin | 0:7e575e5f88ec | 74 | * @struct HB_Rsp |
lesmin | 0:7e575e5f88ec | 75 | * @brief GMMP TCP Packet 구조 중 Response Heartbeat 구조체 |
lesmin | 0:7e575e5f88ec | 76 | * OMP에 Heartbeat 보고 응답 명령을 수신한다. |
lesmin | 0:7e575e5f88ec | 77 | */ |
lesmin | 0:7e575e5f88ec | 78 | typedef struct { |
lesmin | 0:7e575e5f88ec | 79 | /** |
lesmin | 0:7e575e5f88ec | 80 | *@var header |
lesmin | 0:7e575e5f88ec | 81 | *@brief @ref GMMPHeader 참조 |
lesmin | 0:7e575e5f88ec | 82 | */ |
lesmin | 0:7e575e5f88ec | 83 | /** |
lesmin | 0:7e575e5f88ec | 84 | *@var body |
lesmin | 0:7e575e5f88ec | 85 | *@brief @ref stHeartBeatMsgRspHdr 참조 |
lesmin | 0:7e575e5f88ec | 86 | */ |
lesmin | 0:7e575e5f88ec | 87 | GMMPHeader header; |
lesmin | 0:7e575e5f88ec | 88 | stHeartBeatMsgRspHdr body; |
lesmin | 0:7e575e5f88ec | 89 | }HB_Rsp; |
lesmin | 0:7e575e5f88ec | 90 | #pragma pack(0) |
lesmin | 0:7e575e5f88ec | 91 | |
lesmin | 0:7e575e5f88ec | 92 | #endif /* STRUCT_HEARTBEAT_H_ */ |