summaryrefslogtreecommitdiff
path: root/implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp')
-rw-r--r--implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp25
1 files changed, 16 insertions, 9 deletions
diff --git a/implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp b/implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp
index c6cd5cf..54b2d5c 100644
--- a/implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp
+++ b/implementation/e2e_protection/include/e2e/profile/profile01/profile_01.hpp
@@ -7,6 +7,9 @@
#define VSOMEIP_V3_E2E_PROFILE01_PROFILE01_HPP
#include <cstdint>
+
+#include <vsomeip/defines.hpp>
+
#include "../../../buffer/buffer.hpp"
namespace vsomeip_v3 {
@@ -26,14 +29,6 @@ class profile_01 {
enum class p01_data_id_mode : uint8_t {E2E_P01_DATAID_BOTH, E2E_P01_DATAID_ALT, E2E_P01_DATAID_LOW, E2E_P01_DATAID_NIBBLE};
struct profile_config {
- // [SWS_E2E_00018]
- uint16_t crc_offset_;
- uint16_t data_id_;
- p01_data_id_mode data_id_mode_;
- uint16_t data_length_;
- uint16_t counter_offset_;
- uint16_t data_id_nibble_offset_;
-
profile_config() = delete;
profile_config(uint16_t _crc_offset, uint16_t _data_id,
@@ -43,10 +38,22 @@ struct profile_config {
: crc_offset_(_crc_offset), data_id_(_data_id),
data_id_mode_(_data_id_mode), data_length_(_data_length),
counter_offset_(_counter_offset),
- data_id_nibble_offset_(_data_id_nibble_offset) {
+ data_id_nibble_offset_(_data_id_nibble_offset),
+ base_(VSOMEIP_FULL_HEADER_SIZE) {
}
profile_config(const profile_config &_config) = default;
profile_config &operator=(const profile_config &_config) = default;
+
+ // [SWS_E2E_00018]
+ uint16_t crc_offset_;
+ uint16_t data_id_;
+ p01_data_id_mode data_id_mode_;
+ uint16_t data_length_;
+ uint16_t counter_offset_;
+ uint16_t data_id_nibble_offset_;
+
+ // SOME/IP base
+ size_t base_;
};
} // namespace profile01