nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
crc.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0 */
2 /* Copyright 2018-2019 Peter A. Bigot */
3 
8 #ifndef NRFCXX_CRC_HPP
9 #define NRFCXX_CRC_HPP
10 #pragma once
11 
12 #include <pabigot/crc.hpp>
13 
14 #include <nrfcxx/core.hpp>
15 
16 namespace nrfcxx {
17 
21 namespace crc {
22 
31 using crc16dnp_type = pabigot::crc::crc<16, 0x3d65, true, true, 0, -1>;
32 
34 extern crc16dnp_type::tabler_type crc16dnp;
35 
42 using crc32_type = pabigot::crc::CRC32; // crc<32, 0x04c11db7, true, true, -1, -1>;
43 
45 extern crc32_type::tabler_type crc32;
46 
47 } // ns crc
48 } // ns nrfcxx
49 
50 #endif /* NRFCXX_CRC_HPP */
nrfcxx::crc::crc16dnp_type
pabigot::crc::crc< 16, 0x3d65, true, true, 0, -1 > crc16dnp_type
CRC-16/DNP.
Definition: crc.hpp:31
nrfcxx::crc::crc32_type
pabigot::crc::CRC32 crc32_type
CRC-32 for standard operations.
Definition: crc.hpp:42
nrfcxx::crc::crc16dnp
crc16dnp_type::tabler_type crc16dnp
The tabler to use for CRC-16/DNP.
core.hpp
Primary header for nrfcxx interface dependencies.
nrfcxx
Primary namespace for nrfcxx functionality.
Definition: clock.hpp:17
nrfcxx::crc::crc32
crc32_type::tabler_type crc32
The tabler to use for CRC-32.