Diag-Client-Lib
protocol_types.h
Go to the documentation of this file.
1 /* Diagnostic Client library
2  * Copyright (C) 2024 Avijit Dey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 #ifndef DIAGNOSTIC_CLIENT_LIB_LIB_UDS_TRANSPORT_LAYER_API_UDS_TRANSPORT_PROTOCOL_TYPES_H
9 #define DIAGNOSTIC_CLIENT_LIB_LIB_UDS_TRANSPORT_LAYER_API_UDS_TRANSPORT_PROTOCOL_TYPES_H
10 
11 #include <cstdint>
12 #include <functional>
13 #include <memory>
14 #include <string>
15 #include <string_view>
16 #include <vector>
17 
18 namespace uds_transport {
19 
20 // This is the type of ByteVector
21 using ByteVector = std::vector<std::uint8_t>;
22 // This is the type of Channel ID
23 using ChannelID = uint32_t;
24 // This is the type of Priority
25 using Priority = std::uint8_t;
26 // This is the type of Protocol Kind
27 using ProtocolKind = std::string_view;
28 
29 namespace conversion_manager {
30 // Conversion identification needed by user
31 using ConversionHandlerID = std::uint8_t;
32 } // namespace conversion_manager
33 
34 } // namespace uds_transport
35 
36 #endif // DIAGNOSTIC_CLIENT_LIB_LIB_UDS_TRANSPORT_LAYER_API_UDS_TRANSPORT_PROTOCOL_TYPES_H
std::string_view ProtocolKind
uint32_t ChannelID
std::uint8_t Priority
std::vector< std::uint8_t > ByteVector