COSA
An Object-Oriented Platform for Arduino Programming
VWI_Receiver.cpp File Reference
#include "VWI.hh"
#include "Cosa/RTT.hh"
#include "Cosa/Power.hh"
#include <util/crc16.h>
Include dependency graph for VWI_Receiver.cpp:

Go to the source code of this file.

Functions

static bool is_valid_crc (uint8_t *ptr, uint8_t count)
 

Detailed Description

Version
1.0

License

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.

Function Documentation

static bool is_valid_crc ( uint8_t *  ptr,
uint8_t  count 
)
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).

Parameters
[in]ptrbuffer pointer.
[in]countnumber of bytes in buffer.
Returns
bool.

Definition at line 37 of file VWI_Receiver.cpp.