Added CRC initializing constructor

This commit is contained in:
Pavel Kirienko
2014-02-11 12:36:54 +04:00
parent 78ff31f9ad
commit d4e4f1a416
2 changed files with 10 additions and 3 deletions
@@ -24,6 +24,12 @@ public:
: value_(0x0000)
{ }
Crc16(const uint8_t* bytes, int len)
: value_(0x0000)
{
add(bytes, len);
}
uint16_t add(uint8_t byte);
uint16_t add(const uint8_t* bytes, int len);