|
COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/frame/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::frame::checksum::Crc< TResult, TPoly, TInit, TFin, TReflect, TReflectRem >::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. |