@@ -51,28 +51,31 @@ template <typename S> constexpr auto to_module() {
51
51
namespace logging ::mipi {
52
52
namespace defn {
53
53
using msg::at;
54
+ using msg::dword_index_t ;
54
55
using msg::field;
55
56
using msg::message;
56
- using msg::operator " " _dw;
57
57
using msg::operator " " _msb;
58
58
using msg::operator " " _lsb;
59
59
60
60
enum struct type : uint8_t { Build = 0 , Short32 = 1 , Catalog = 3 };
61
61
enum struct build_subtype : uint8_t { Compact32 = 0 , Compact64 = 1 , Long = 2 };
62
62
enum struct catalog_subtype : uint8_t { Id32_Pack32 = 1 };
63
63
64
- using type_f = field<" type" , type>::located<at{0_dw, 3_msb, 0_lsb}>;
65
- using opt_len_f = field<" opt_len" , bool >::located<at{0_dw, 9_msb, 9_lsb}>;
64
+ using type_f = field<" type" , type>::located<at{dword_index_t {0 }, 3_msb, 0_lsb}>;
65
+ using opt_len_f =
66
+ field<" opt_len" , bool >::located<at{dword_index_t {0 }, 9_msb, 9_lsb}>;
66
67
using payload_len_f =
67
- field<" payload_len" , std::uint16_t >::located<at{1_dw, 15_msb, 0_lsb}>;
68
+ field<" payload_len" ,
69
+ std::uint16_t >::located<at{dword_index_t {1 }, 15_msb, 0_lsb}>;
68
70
69
71
using build_subtype_f =
70
- field<" subtype" , build_subtype>::located<at{0_dw, 29_msb, 24_lsb}>;
71
- using compact32_build_id_f =
72
- field<" build_id" , std::uint32_t >::located<at{0_dw, 31_msb, 30_lsb},
73
- at{0_dw , 23_msb, 4_lsb}>;
72
+ field<" subtype" ,
73
+ build_subtype>::located<at{ dword_index_t { 0 }, 29_msb, 24_lsb}>;
74
+ using compact32_build_id_f = field<" build_id" , std::uint32_t >::located<
75
+ at{ dword_index_t { 0 }, 31_msb, 30_lsb}, at{dword_index_t { 0 } , 23_msb, 4_lsb}>;
74
76
using compact64_build_id_f = field<" build_id" , std::uint64_t >::located<
75
- at{1_dw, 31_msb, 0_lsb}, at{0_dw, 31_msb, 30_lsb}, at{0_dw, 23_msb, 4_lsb}>;
77
+ at{dword_index_t {1 }, 31_msb, 0_lsb}, at{dword_index_t {0 }, 31_msb, 30_lsb},
78
+ at{dword_index_t {0 }, 23_msb, 4_lsb}>;
76
79
77
80
using normal_build_msg_t =
78
81
message<" normal_build" , type_f::with_required<type::Build>,
@@ -88,16 +91,19 @@ using compact64_build_msg_t =
88
91
compact64_build_id_f>;
89
92
90
93
using short32_payload_f =
91
- field<" payload" , std::uint32_t >::located<at{0_dw, 31_msb, 4_lsb}>;
94
+ field<" payload" ,
95
+ std::uint32_t >::located<at{dword_index_t {0 }, 31_msb, 4_lsb}>;
92
96
using short32_msg_t =
93
97
message<" short32" , type_f::with_required<type::Short32>, short32_payload_f>;
94
98
95
99
using catalog_subtype_f =
96
- field<" subtype" , catalog_subtype>::located<at{0_dw, 29_msb, 24_lsb}>;
97
- using severity_f =
98
- field<" severity" , std::uint8_t >::located<at{0_dw, 6_msb, 4_lsb}>;
100
+ field<" subtype" ,
101
+ catalog_subtype>::located<at{dword_index_t {0 }, 29_msb, 24_lsb}>;
102
+ using severity_f = field<" severity" , std::uint8_t >::located<at{dword_index_t {0 },
103
+ 6_msb, 4_lsb}>;
99
104
using module_id_f =
100
- field<" module_id" , std::uint8_t >::located<at{0_dw, 22_msb, 16_lsb}>;
105
+ field<" module_id" ,
106
+ std::uint8_t >::located<at{dword_index_t {0 }, 22_msb, 16_lsb}>;
101
107
102
108
using catalog_msg_t =
103
109
message<" catalog" , type_f::with_required<type::Catalog>, severity_f,
0 commit comments