Commit e1e8ab40 authored by vladislav's avatar vladislav
Browse files

unknown p_type + extern C

parent 3d9709f8
#include <gateway_protocol.h>
#include <gateway_protocol/gateway_protocol.h>
void gateway_protocol_packet_encode (
......
......@@ -6,13 +6,18 @@
#define GATEWAY_PROTOCOL_PACKET_SIZE_MAX 128
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
GATEWAY_PROTOCOL_PACKET_TYPE_DATA_SEND = 0x00,
GATEWAY_PROTOCOL_PACKET_TYPE_PEND_REQ = 0x04,
GATEWAY_PROTOCOL_PACKET_TYPE_PEND_SEND = 0x05,
GATEWAY_PROTOCOL_PACKET_TYPE_STAT = 0x10,
GATEWAY_PROTOCOL_PACKET_TYPE_TIME_REQ = 0x20,
GATEWAY_PROTOCOL_PACKET_TYPE_TIME_SEND = 0x21
GATEWAY_PROTOCOL_PACKET_TYPE_TIME_SEND = 0x21,
GATEWAY_PROTOCOL_PACKET_TYPE_UNKNOWN = 0xFF
} gateway_protocol_packet_type_t;
typedef enum {
......@@ -37,4 +42,8 @@ uint8_t gateway_protocol_packet_decode (
const uint8_t packet_length,
const uint8_t *packet);
#ifdef __cplusplus
}
#endif
#endif // __GATEWAY_PROTOCOL_H__
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment