COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs
Crc.h File Reference

Contains definition of comms::protocol::checksum::Crc. More...

#include <cstdint>
#include <array>
#include <limits>
#include <type_traits>
#include "comms/util/type_traits.h"
#include "comms/details/tag.h"
#include "comms/cast.h"

Go to the source code of this file.

Classes

class  comms::protocol::checksum::Crc< TResult, TPoly, TInit, TFin, TReflect, TRefrectRem >
 Calculate CRC values of all the bytes in the sequence. More...
 

Namespaces

namespace  comms
 Main namespace for all classes / functions of COMMS library.
 
namespace  comms::protocol
 Namespace that contains definition of layers that can be used to wrap message data with transport data.
 
namespace  comms::protocol::checksum
 Namespace that contains definition of checksum calculator classes which can be used with comms::protocol::ChecksumLayer transport layer class.
 

Typedefs

using comms::protocol::checksum::Crc_16 = Crc< std::uint16_t, 0x8005, 0, 0, true, true >
 Alias to Crc checksum calculator for standard CRC-16.
 
using comms::protocol::checksum::Crc_32 = Crc< std::uint32_t, 0x04c11db7, 0xffffffff, 0xffffffff, true, true >
 Alias to Crc checksum calculator for standard CRC-32.
 
using comms::protocol::checksum::Crc_CCITT = Crc< std::uint16_t, 0x1021, 0xffff >
 Alias to Crc checksum calculator for CRC-CCITT.
 

Detailed Description

Contains definition of comms::protocol::checksum::Crc.