Template Function pn532::compute_checksum(ByteIterator, ByteIterator)
Defined in File checksum.hpp
Function Documentation
-
template<class ByteIterator>
std::uint8_t pn532::compute_checksum(ByteIterator begin, ByteIterator end) Computes the checksum of a sequence of bytes.
- Template Parameters:
ByteIterator – Any forward iterator type that yields
std::uint8_t
.- Parameters:
begin – Iterator pointing to the first element.
end – Past-the-end iterator.
- Returns:
The checksum, i.e. \( 1+\neg\sum_{i=\text{begin}}^{\text{end}} *i \)