Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board
LTC6603.cpp
Go to the documentation of this file.
1 /*!
2 LTC6603: Dual, Matched, High Frequency Bandpass/Lowpass Filters
3 
4 @verbatim
5 
6 The LTC®6603 is a dual, matched, programmable lowpass
7 filter for communications receivers and transmitters. The
8 selectivity of the LTC6603, combined with its linear phase,
9 phase matching and dynamic range, make it suitable for
10 filtering in many communications systems. With 1.5°
11 phase matching between channels, the LTC6603 can be
12 used in applications requiring pairs of matched filters,
13 such as transceiver I and Q channels. Furthermore, the
14 differential inputs and outputs provide a simple interface
15 for most communications systems.
16 
17 @endverbatim
18 
19 
20 http://www.analog.com/en/products/amplifiers/adc-drivers/fully-differential-amplifiers/ltc6603.html
21 
22 http://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/dc1304a-b.html
23 
24 Copyright 2018(c) Analog Devices, Inc.
25 
26 All rights reserved.
27 
28 Redistribution and use in source and binary forms, with or without
29 modification, are permitted provided that the following conditions are met:
30  - Redistributions of source code must retain the above copyright
31  notice, this list of conditions and the following disclaimer.
32  - Redistributions in binary form must reproduce the above copyright
33  notice, this list of conditions and the following disclaimer in
34  the documentation and/or other materials provided with the
35  distribution.
36  - Neither the name of Analog Devices, Inc. nor the names of its
37  contributors may be used to endorse or promote products derived
38  from this software without specific prior written permission.
39  - The use of this software may or may not infringe the patent rights
40  of one or more patent holders. This license does not release you
41  from the requirement that you obtain separate licenses from these
42  patent holders to use this software.
43  - Use of the software either in source or binary form, must be run
44  on or directly connected to an Analog Devices Inc. component.
45 
46 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
47 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
48 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
49 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
50 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
51 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
52 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
53 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
54 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
55 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 
57 The views and conclusions contained in the software and documentation are those
58 of the authors and should not be interpreted as representing official policies,
59 either expressed or implied, of Linear Technology Corp.
60 
61 The Linear Technology Linduino is not affiliated with the official Arduino team.
62 However, the Linduino is only possible because of the Arduino team's commitment
63 to the open-source community. Please, visit http://www.arduino.cc and
64 http://store.arduino.cc , and consider a purchase that will help fund their
65 ongoing work.
66 */
67 
68 //! @ingroup Analog_to_Digital_Converters
69 //! @{
70 //! @defgroup LTC6603 LTC6603: Dual Matched, High Frequency Bandpass/Lowpass Filters
71 //! @}
72 
73 /*! @file
74  @ingroup LTC6603
75  Library for LTC6603: Dual Matched, High Frequency Bandpass/Lowpass Filters
76 */
77 
78 
79 
80 
81 
82 #include <stdint.h>
83 #include <Arduino.h>
84 #include "Linduino.h"
85 #include "LT_SPI.h"
86 #include "LTC6603.h"
87 #include <SPI.h>
88 
89 void LTC6603_write(uint8_t cs, uint8_t *tx, uint8_t length)
90 // Reads the LTC6603
91 {
92  uint8_t rx[4];
93  spi_transfer_block(cs, tx, rx,length); // Transfer 4 bytes=
94 }
95 
Header File for Linduino Libraries and Demo Code.
void LTC6603_write(uint8_t cs, uint8_t *tx, uint8_t length)
Sends Data to the LTC6603.
Definition: LTC6603.cpp:89
LTC6603: Dual, Matched, High Frequency Bandpass/Lowpass Filters.
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