Searched refs:Crc16Ccitt (Results 1 – 8 of 8) sorted by relevance
38 EXPECT_EQ(Crc16Ccitt::Calculate(std::span<std::byte>()), in TEST()39 Crc16Ccitt::kInitialValue); in TEST()43 uint16_t crc = Crc16Ccitt::kInitialValue; in TEST()45 crc = Crc16Ccitt::Calculate(std::byte{kBytes[i]}, crc); in TEST()51 EXPECT_EQ(Crc16Ccitt::Calculate(std::as_bytes(std::span(kBytes))), in TEST()56 EXPECT_EQ(Crc16Ccitt::Calculate(std::as_bytes(std::span(kString))), in TEST()61 Crc16Ccitt crc16; in TEST()67 Crc16Ccitt crc16; in TEST()
28 void Reset() override { crc_ = checksum::Crc16Ccitt::kInitialValue; } in Reset()31 crc_ = checksum::Crc16Ccitt::Calculate(data, crc_); in Update()35 uint16_t crc_ = checksum::Crc16Ccitt::kInitialValue;
45 class Crc16Ccitt {63 constexpr Crc16Ccitt() : value_(kInitialValue) {} in Crc16Ccitt() function
123 checksum_ = checksum::Crc16Ccitt::kInitialValue; in clear()132 return checksum_ == checksum::Crc16Ccitt::Calculate(ConstByteSpan( in has_value()
158 return checksum::Crc16Ccitt::Calculate( in CalculateCrc()
42 value = pw::checksum::Crc16Ccitt::Calculate( in main()
36 checksum_ = checksum::Crc16Ccitt::Calculate( in DoWrite()
351 const uint16_t crc = checksum::Crc16Ccitt::Calculate(flash.memory.buffer()); in TEST()355 EXPECT_EQ(crc, checksum::Crc16Ccitt::Calculate(flash.memory.buffer())); in TEST()