|
| int | ad5710r_update_interface_cfg (struct ad5710r_desc *desc, struct ad5710r_transfer_config *cfg) |
| | Updates the interface configuration.
|
| |
| int | ad5710r_reg_write (struct ad5710r_desc *desc, uint32_t reg_addr, uint16_t reg_val) |
| | Write into device register.
|
| |
| int | ad5710r_multiple_reg_write (struct ad5710r_desc *desc, uint32_t start_addr, uint8_t count, uint8_t *buff) |
| | Write multiple register's values.
|
| |
| int | ad5710r_reg_read (struct ad5710r_desc *desc, uint32_t reg_addr, uint16_t *reg_val) |
| | Read from device register.
|
| |
| int | ad5710r_multiple_reg_read (struct ad5710r_desc *desc, uint32_t addr, uint8_t count, uint8_t *buff) |
| | Read multiple register's values.
|
| |
| int | ad5710r_spi_write_mask (struct ad5710r_desc *desc, uint32_t addr, uint32_t mask, uint16_t val) |
| | SPI write to device using a mask.
|
| |
| int | ad5710r_set_reference (struct ad5710r_desc *desc, enum ad5710r_ch_vref_select reference_selector) |
| | Set reference configuration.
|
| |
| int | ad5710r_set_operating_mode (struct ad5710r_desc *desc, uint8_t chn_num, enum ad5710r_operating_mode chn_op_mode) |
| | Set operating mode for each channel.
|
| |
| int | ad5710r_set_output_range (struct ad5710r_desc *desc, enum ad5710r_ch_output_range range_sel) |
| | Set output range for all channels.
|
| |
| int | ad5710r_set_crc_enable (struct ad5710r_desc *desc, bool en_di) |
| | Configures the CRC selection bit.
|
| |
| int | ad5710r_set_mux_out_select (struct ad5710r_desc *desc, enum ad5710r_mux_out_select mux_output_sel) |
| | Set the multiplexer output select register.
|
| |
| int | ad5710r_set_hw_ldac (struct ad5710r_desc *desc, uint8_t mask_hw_ldac) |
| | Set the hardware ldac configuration.
|
| |
| int | ad5710r_set_sw_ldac (struct ad5710r_desc *desc, uint8_t mask_sw_ldac) |
| | Set the software ldac configuration.
|
| |
| int | ad5710r_set_dac_value (struct ad5710r_desc *desc, uint16_t dac_value, uint8_t dac_channel, enum ad5710r_write_mode write_mode) |
| | Set dac value based on the user selected DAC update mode.
|
| |
| int | ad5710r_set_multidac_value (struct ad5710r_desc *desc, uint16_t dac_value, uint8_t dac_chn_mask, enum ad5710r_write_mode write_mode) |
| | Sets dac value for multiple channels.
|
| |
| int | ad5710r_sw_ldac_trigger (struct ad5710r_desc *desc) |
| | Trigger the LDAC using software.
|
| |
| int | ad5710r_hw_ldac_trigger (struct ad5710r_desc *desc) |
| | Trigger the LDAC using hardware.
|
| |
| int | ad5710r_reset (struct ad5710r_desc *desc) |
| | Perform a hard/soft reset.
|
| |
| int | ad5710r_channel_output_select (struct ad5710r_desc *desc, uint8_t chn_num, enum ad5710r_ch_mode_select ch_mode) |
| | Selects the output mode for a specific channel of the AD5710R DAC.
|
| |
| int | ad5710r_device_config (struct ad5710r_desc *desc, struct ad5710r_init_param *dev_param) |
| | Configures the device.
|
| |
| int | ad5710r_init (struct ad5710r_desc **desc, struct ad5710r_init_param *init_param) |
| | Initialize the device structure.
|
| |
| int | ad5710r_remove (struct ad5710r_desc *desc) |
| | Free the device descriptor.
|
| |
Implementation of ad5710r Driver.
- Author
- Sai Kiran Gudla (saiki.nosp@m.ran..nosp@m.gudla.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
Copyright 2025(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.