#include <checksum.h>
|
|
| STATIC_ASSERT (is_unsigned< TSum >::value,"Signed TSum template parameter") |
| |
|
| checksum () |
| | Default constructor.
|
| |
| template<typename TIterator > |
| | checksum (TIterator begin, const TIterator end) |
| |
|
void | reset () |
| | Resets the CRC to the initial state.
|
| |
| template<typename TValue > |
| void | add (TValue value) |
| |
| void | add (uint8_t value) |
| |
| template<typename TIterator > |
| void | add (TIterator begin, const TIterator end) |
| |
|
value_type | value () const |
| | Gets the checksum value.
|
| |
| template<typename TValue > |
| checksum< TSum, ENDIANNESS > & | operator+= (TValue value) |
| |
|
| operator value_type () const |
| | Conversion operator to value_type.
|
| |
template<typename TSum, const int ENDIANNESS = endian::little>
class etl::checksum< TSum, ENDIANNESS >
Calculates the checksum.
- Template Parameters
-
| TSum | The type used for the sum. |
| ENDIANNESS | The endianness of the calculation for input types larger than uint8_t. Default = endian::little. |
template<typename TSum , const int ENDIANNESS = endian::little>
template<typename TIterator >
Constructor from range.
- Parameters
-
| begin | Start of the range. |
| end | End of the range. |
template<typename TSum , const int ENDIANNESS = endian::little>
template<typename TValue >
- Parameters
-
| value | The value to add to the checksum. |
template<typename TSum , const int ENDIANNESS = endian::little>
- Parameters
-
| value | The char to add to the checksum. |
template<typename TSum , const int ENDIANNESS = endian::little>
template<typename TIterator >
| void etl::checksum< TSum, ENDIANNESS >::add |
( |
TIterator |
begin, |
|
|
const TIterator |
end |
|
) |
| |
|
inline |
- Parameters
-
| begin | Start of the range. |
| end | End of the range. |
- Returns
- The checksum result.
template<typename TSum , const int ENDIANNESS = endian::little>
template<typename TValue >
- Parameters
-
| value | The value to add to the checksum. |
The documentation for this class was generated from the following file: