|
int32_t | ad9528_spi_read (struct ad9528_dev *dev, uint32_t reg_addr, uint32_t *reg_data) |
| Reads the value of the selected register. More...
|
|
int32_t | ad9528_spi_write (struct ad9528_dev *dev, uint32_t reg_addr, uint32_t reg_data) |
| Writes a value to the selected register. More...
|
|
int32_t | ad9528_spi_read_n (struct ad9528_dev *dev, uint32_t reg_addr, uint32_t *reg_data) |
| Reads the value of the selected register. More...
|
|
int32_t | ad9528_spi_write_n (struct ad9528_dev *dev, uint32_t reg_addr, uint32_t reg_data) |
| Writes a value to the selected register. More...
|
|
int32_t | ad9528_poll (struct ad9528_dev *dev, uint32_t reg_addr, uint32_t mask, uint32_t data) |
| Poll register. More...
|
|
int32_t | ad9528_io_update (struct ad9528_dev *dev) |
| Updates the AD9528 configuration. More...
|
|
int32_t | ad9528_sync (struct ad9528_dev *dev) |
| Updates the AD9528 configuration. More...
|
|
int32_t | ad9528_init (struct ad9528_init_param *init_param) |
| Initializes the AD9528. More...
|
|
int32_t | ad9528_clk_recalc_rate (struct no_os_clk_desc *desc, uint64_t *rate) |
| Get the current frequency of the clock. More...
|
|
int32_t | ad9528_setup (struct ad9528_dev **device, struct ad9528_init_param init_param) |
| Initializes the AD9528. More...
|
|
int32_t | ad9528_remove (struct ad9528_dev *dev) |
| Free the resources allocated by ad9528_setup(). More...
|
|
uint32_t | ad9528_calc_out_div (uint32_t rate, uint32_t parent_rate) |
| Calculate the output channel divider. More...
|
|
uint32_t | ad9528_clk_round_rate (struct ad9528_dev *dev, uint32_t chan, uint32_t rate) |
| Calculate closest possible rate. More...
|
|
int32_t | ad9528_clk_set_rate (struct ad9528_dev *dev, uint32_t chan, uint32_t rate) |
| Set channel rate. More...
|
|
int32_t | ad9528_reset (struct ad9528_dev *dev) |
| Performs a hard reset on the AD9528. More...
|
|
Implementation of AD9528 Driver.
- Author
- DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
Copyright 2015-2016(c) Analog Devices, Inc.
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.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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.