34 #include <itpp/itexports.h>
78 CRC_Code(
const std::string &code) { reverse_parity =
false; set_code(code); }
81 void set_generator(
const bvec &
poly);
84 void set_code(
const std::string &code);
87 void parity(
const bvec &in_bits, bvec &out)
const;
90 bool check_parity(
const bvec &coded_bits)
const;
93 void encode(
const bvec &in_bits, bvec &out)
const;
96 bvec encode(
const bvec &in_bits)
const;
99 bool decode(
const bvec &coded_bits, bvec &out)
const;
102 bool decode(bvec &bits)
const;
112 #endif // #ifndef CRC_H