Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
LTC5599.h
Go to the documentation of this file.
1
/*!
2
LTC5599: 140 to 1000MHz IQ modulator
3
4
@verbatim
5
6
7
@endverbatim
8
9
http://www.linear.com/product/LTC5599
10
11
http://www.linear.com/product/LTC5599#demoboards
12
13
14
Copyright 2018(c) Analog Devices, Inc.
15
16
All rights reserved.
17
18
Redistribution and use in source and binary forms, with or without
19
modification, are permitted provided that the following conditions are met:
20
- Redistributions of source code must retain the above copyright
21
notice, this list of conditions and the following disclaimer.
22
- Redistributions in binary form must reproduce the above copyright
23
notice, this list of conditions and the following disclaimer in
24
the documentation and/or other materials provided with the
25
distribution.
26
- Neither the name of Analog Devices, Inc. nor the names of its
27
contributors may be used to endorse or promote products derived
28
from this software without specific prior written permission.
29
- The use of this software may or may not infringe the patent rights
30
of one or more patent holders. This license does not release you
31
from the requirement that you obtain separate licenses from these
32
patent holders to use this software.
33
- Use of the software either in source or binary form, must be run
34
on or directly connected to an Analog Devices Inc. component.
35
36
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
37
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
38
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39
IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
40
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41
LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
42
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
43
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46
*/
47
48
/*! @file
49
@ingroup LTC5599
50
Header for LTC5599: Direct Conversion I/Q Modulator
51
*/
52
53
#ifndef LTC5599_H
54
#define LTC5599_H
55
56
#include <SPI.h>
57
58
//! Define the SPI CS pin
59
#ifndef LTC5599_CS
60
#define LTC5599_CS QUIKEVAL_CS
61
#endif
62
63
//! @name LTC5599 read/write bits
64
//! @{
65
// Write Command
66
#define LTC5599_WRITE 0x00
67
// Read Command
68
#define LTC5599_READ 0x01
69
//!@}
70
71
72
//! Reads the modulator register and returns 8-bit data
73
//! @return void
74
void
LTC5599_write_read
(uint8_t cs,
//!< Chip Select Pin
75
uint8_t
address
,
//!< Channel address, config bits ORed together
76
uint8_t
rw
,
77
uint8_t tx,
78
uint8_t *rx
//!< Returns code read from device
79
);
80
81
#endif // LTC5599_H
LTC5599_write_read
void LTC5599_write_read(uint8_t cs, uint8_t address, uint8_t rw, uint8_t tx, uint8_t *rx)
Reads the modulator register and returns 8-bit data.
Definition:
LTC5599.cpp:70
address
static uint8_t address
Definition:
DC2091A.ino:83
rw
static uint8_t rw
Definition:
DC2091A.ino:84
LTSketchbook
libraries
LTC5599
LTC5599.h
Generated on Thu Mar 19 2020 10:59:32 for Linduino by
1.8.13