COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/protocol/checksum/Crc.h"
Calculate CRC values of all the bytes in the sequence.
TResult | Type of the checksum result value. |
TPoly | Polynomial value |
TInit | Initial value |
TFin | Final XOR value |
TReflect | Perform reflection of every byte |
TReflectRem | Perform reflection of the final value |
Public Member Functions | |
template<typename TIter > | |
TResult | operator() (TIter &iter, std::size_t len) const |
Operator that is invoked to calculate the checksum value. | |
TResult comms::protocol::checksum::Crc< TResult, TPoly, TInit, TFin, TReflect, TRefrectRem >::operator() | ( | TIter & | iter, |
std::size_t | len | ||
) | const |
Operator that is invoked to calculate the checksum value.
[in,out] | iter | Input iterator, |
[in] | len | Number of bytes to summarise. |