From 8ab957667f38ee94630076c7f7b0bedfb758a728 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oskar=20=C5=9Awitalski?= Date: Tue, 31 May 2016 18:24:17 +0200 Subject: [PATCH] Add magic protocol codes Change-Id: I9b7d1b1174f6fc467b77244012664d606693b5ae --- src/common/types/Protocol.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/common/types/Protocol.h diff --git a/src/common/types/Protocol.h b/src/common/types/Protocol.h new file mode 100644 index 0000000..dafd277 --- /dev/null +++ b/src/common/types/Protocol.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2016 Samsung Electronics Co. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License + */ +/** + * @file src/common/types/Protocol.h + * @author Oskar Świtalski + * @brief Definition of common types and consts + */ + +#pragma once + +#include + +namespace AskUser { +namespace Protocol { + +constexpr uint8_t dissmisCode = 0xDE; +constexpr uint8_t ackCode = 0xAC; + +} // namespace Protocol +} // namespace AskUser -- 2.7.4