Home
last modified time | relevance | path

Searched refs:Crc16Ccitt (Results 1 – 8 of 8) sorted by relevance

/external/pigweed/pw_checksum/
Dcrc16_ccitt_test.cc38 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()
/external/pigweed/pw_kvs/public/pw_kvs/
Dcrc16_checksum.h28 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;
/external/pigweed/pw_checksum/public/pw_checksum/
Dcrc16_ccitt.h45 class Crc16Ccitt {
63 constexpr Crc16Ccitt() : value_(kInitialValue) {} in Crc16Ccitt() function
/external/pigweed/pw_persistent_ram/public/pw_persistent_ram/
Dpersistent_buffer.h123 checksum_ = checksum::Crc16Ccitt::kInitialValue; in clear()
132 return checksum_ == checksum::Crc16Ccitt::Calculate(ConstByteSpan( in has_value()
Dpersistent.h158 return checksum::Crc16Ccitt::Calculate( in CalculateCrc()
/external/pigweed/pw_persistent_ram/size_report/
Dpersistent_base_with_crc16.cc42 value = pw::checksum::Crc16Ccitt::Calculate( in main()
/external/pigweed/pw_persistent_ram/
Dpersistent_buffer.cc36 checksum_ = checksum::Crc16Ccitt::Calculate( in DoWrite()
/external/pigweed/pw_kvs/
Dkey_value_store_test.cc351 const uint16_t crc = checksum::Crc16Ccitt::Calculate(flash.memory.buffer()); in TEST()
355 EXPECT_EQ(crc, checksum::Crc16Ccitt::Calculate(flash.memory.buffer())); in TEST()