Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board
LTC6602.cpp
Go to the documentation of this file.
1 /*!
2 LTC6602: Dual, Matched, High Frequency Bandpass/Lowpass Filters
3 
4 @verbatim
5 
6 The LTC6602 is a dual, matched, programmable bandpass or lowpass filter
7 and differential driver. The selectivity of the LTC6602, combined with its
8 phase matching and dynamic range, make it ideal for filtering in RFID
9 systems. With two degree phase matching between channels, the LTC6602 can
10 be used in applications requiring highly matched filters, such as
11 transceiver I and Q channels. Gain programmability, and the fully
12 differential inputs and outputs, simplify implementation in most systems.
13 
14 @endverbatim
15 
16 http://www.linear.com/product/LTC6602
17 
18 http://www.linear.com/product/LTC6602#demoboards
19 
20 
21 Copyright 2018(c) Analog Devices, Inc.
22 
23 All rights reserved.
24 
25 Redistribution and use in source and binary forms, with or without
26 modification, are permitted provided that the following conditions are met:
27  - Redistributions of source code must retain the above copyright
28  notice, this list of conditions and the following disclaimer.
29  - Redistributions in binary form must reproduce the above copyright
30  notice, this list of conditions and the following disclaimer in
31  the documentation and/or other materials provided with the
32  distribution.
33  - Neither the name of Analog Devices, Inc. nor the names of its
34  contributors may be used to endorse or promote products derived
35  from this software without specific prior written permission.
36  - The use of this software may or may not infringe the patent rights
37  of one or more patent holders. This license does not release you
38  from the requirement that you obtain separate licenses from these
39  patent holders to use this software.
40  - Use of the software either in source or binary form, must be run
41  on or directly connected to an Analog Devices Inc. component.
42 
43 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
44 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
45 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
46 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
47 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
48 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
49 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
50 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
51 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
52 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53 */
54 
55 //! @ingroup RF_Timing
56 //! @{
57 //! @defgroup LTC6602 LTC6602: Dual Matched, High Frequency Bandpass/Lowpass Filters
58 //! @}
59 
60 /*! @file
61  @ingroup LTC6602
62  Library for LTC6602: Dual Matched, High Frequency Bandpass/Lowpass Filters
63 */
64 
65 #include <stdint.h>
66 #include <Arduino.h>
67 #include "Linduino.h"
68 #include "LT_SPI.h"
69 #include "LTC6602.h"
70 #include <SPI.h>
71 
72 void LTC6602_write(uint8_t cs, uint8_t *tx, uint8_t length)
73 // Reads the LTC6602
74 {
75  uint8_t rx[4];
76  spi_transfer_block(cs, tx, rx,length); // Transfer 4 bytes=
77 }
78 
Header File for Linduino Libraries and Demo Code.
LT_SPI: Routines to communicate with ATmega328P&#39;s hardware SPI port.
void spi_transfer_block(uint8_t cs_pin, uint8_t *tx, uint8_t *rx, uint8_t length)
Reads and sends a byte array.
Definition: LT_SPI.cpp:125
void LTC6602_write(uint8_t cs, uint8_t *tx, uint8_t length)
Sends Data to the LTC6602.
Definition: LTC6602.cpp:72
LTC6602: Dual, Matched, High Frequency Bandpass/Lowpass Filters.