Lines Matching refs:CustomBitStruct
62 struct CustomBitStruct { struct
63 CustomBitStruct() = default;
64 explicit CustomBitStruct(int8_t data) : data(data) {} in CustomBitStruct() function
74 CustomBitStruct expected(0b1111); in TEST()
76 BitStructField<CustomBitStruct, /*lsb=*/4, /*width=*/4> f{}; in TEST()
80 f = CustomBitStruct(0b1111); in TEST()
82 CustomBitStruct read_out = f; in TEST()
89 BitStructField<CustomBitStruct, /*lsb=*/0, /*width=*/4> f4_a;
90 BitStructField<CustomBitStruct, /*lsb=*/4, /*width=*/4> f4_b;
101 cst.f4_a = CustomBitStruct(0b0110); in TEST()
102 cst.f4_b = CustomBitStruct(0b0101); in TEST()
104 int8_t read_out = static_cast<CustomBitStruct>(cst.f4_a).data; in TEST()
105 int8_t read_out_b = static_cast<CustomBitStruct>(cst.f4_b).data; in TEST()
113 cst.f4_a = CustomBitStruct(0); in TEST()
115 read_out = static_cast<CustomBitStruct>(cst.f4_a).data; in TEST()
116 read_out_b = static_cast<CustomBitStruct>(cst.f4_b).data; in TEST()