COSA
An Object-Oriented Platform for Arduino Programming
|
Go to the source code of this file.
Functions | |
static bool | is_valid_crc (uint8_t *ptr, uint8_t count) |
Copyright (C) 2008-2013, Mike McCauley (Author/VirtualWire rev. 1.19) Copyright (C) 2013-2015, Mikael Patel (Cosa C++ port and refactoring) Copyright (C) 2015, Mikael Patel (RF433 link quality indicator)
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
This file is part of the Arduino Che Cosa project.
Definition in file VWI_Receiver.cpp.
|
static |
Calculate check sum for given buffer and number of bytes with CRC. Return true(1) if equals correct CCITT 16b check sum else false(0).
[in] | ptr | buffer pointer. |
[in] | count | number of bytes in buffer. |
Definition at line 37 of file VWI_Receiver.cpp.