|
int8_t | ad5629r_init (struct ad5629r_dev **device, struct ad5629r_init_param init_param) |
| Initializes the communication with the device. More...
|
|
int32_t | ad5629r_remove (struct ad5629r_dev *dev) |
| Free the resources allocated by AD5629R_Init(). More...
|
|
void | ad5629r_set_ctrl (struct ad5629r_dev *dev, uint8_t function, uint8_t dac_n, uint32_t data) |
| Write to input register and read from output register via SPI. More...
|
|
void | ad5629r_set_input_reg (struct ad5629r_dev *dev, uint8_t function, uint8_t dac_n, uint16_t dac_value) |
| Write to input register and read from output register via SPI. More...
|
|
void | ad5629r_write_reg_n (struct ad5629r_dev *dev, uint8_t dac_n, uint16_t dac_value) |
| Writes a value to Input Register N of selected DAC channel. More...
|
|
void | ad5629r_update_dac_n (struct ad5629r_dev *dev, uint8_t dac_n) |
| Updates selected DAC register. More...
|
|
void | ad5629r_write_reg_nupdate_all (struct ad5629r_dev *dev, uint8_t dac_n, uint16_t dac_value) |
| Writes a value to Input Register N of selected DAC channel, then updates all. More...
|
|
void | ad5629r_write_reg_nupdate_n (struct ad5629r_dev *dev, uint8_t dac_n, uint16_t dac_value) |
| Writes a value to Input Register N and updates the respective DAC channel. More...
|
|
void | ad5629r_set_power_mode (struct ad5629r_dev *dev, uint8_t dac_sel, uint8_t mode) |
| Sets the power mode for one or more selected DAC channels. More...
|
|
void | ad5629r_load_clear_code_reg (struct ad5629r_dev *dev, uint8_t clear_value) |
| Loads the Clear Code Register with a certain value. More...
|
|
void | ad5629r_load_ldac_reg (struct ad5629r_dev *dev, uint8_t dac_sel) |
| Loads the LDAC register with a certain value. More...
|
|
void | ad5629r_reset (struct ad5629r_dev *dev) |
| Makes a power-on reset. More...
|
|
void | ad5629r_set_ref (struct ad5629r_dev *dev, uint8_t status) |
| Turns on/off the internal reference. More...
|
|
Implementation of ad5629r Driver for Microblaze processor.
- Author
- Lucian Sin (Lucia.nosp@m.n.Si.nosp@m.n@ana.nosp@m.log..nosp@m.com)
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.