Header file of AD5449 Driver. This driver supporting the following devices: AD5415, AD5443, AD5432, AD5426, AD5429, AD5439, AD5449.
More...
|
int8_t | ad5449_init (struct ad5449_dev **device, struct ad5449_init_param init_param) |
| Initialize SPI and Initial Values for AD5449 Board. More...
|
|
int32_t | ad5449_remove (struct ad5449_dev *dev) |
| Free the resources allocated by ad5449_init(). More...
|
|
uint16_t | ad5449_set_input_shift_reg (struct ad5449_dev *dev, uint16_t command, uint16_t data) |
| Write to input register and read from output register via SPI. More...
|
|
void | ad5449_load_update_channel (struct ad5449_dev *dev, uint8_t channel, uint16_t dac_value) |
| Loads and updates the selected DAC with a given value. More...
|
|
void | ad5449_load_channel (struct ad5449_dev *dev, uint8_t channel, uint16_t dac_value) |
| Load selected DAC input register with a given value. More...
|
|
uint16_t | ad5449_readback_channel (struct ad5449_dev *dev, uint8_t channel) |
| Read from the selected DAC register. More...
|
|
void | ad5449_update_all (struct ad5449_dev *dev) |
| Update the DAC outputs. This function has a physical result just with devices with two channels. More...
|
|
void | ad5449_load_all (struct ad5449_dev *dev, int16_t dac_value) |
| Load the DAC input registers. This function has a physical result just with devices with two channels. More...
|
|
void | ad5449_clear_scale_setup (struct ad5449_dev *dev, int8_t type) |
| Set up the scale where to the output will be cleared on active CLR signal. More...
|
|
void | ad5449_daisy_chain_setup (struct ad5449_dev *dev, int8_t value) |
| Enable/disable the Daisy-Chain mode. More...
|
|
void | ad5449_sdocontrol (struct ad5449_dev *dev, int8_t control_bits) |
| Control the SDO output driver strength. This function is supported by the devices : AD5415, AD5429, AD5439, AD5449. More...
|
|
void | ad5449_sclksetup (struct ad5449_dev *dev, int8_t value) |
| Set up the active clock edge of the SPI interface. More...
|
|
Header file of AD5449 Driver. This driver supporting the following devices: AD5415, AD5443, AD5432, AD5426, AD5429, AD5439, AD5449.
- Author
- Istvan Csomortani (istva.nosp@m.n.cs.nosp@m.omort.nosp@m.ani@.nosp@m.analo.nosp@m.g.co.nosp@m.m)
Copyright 2013(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.