|
int | adf4382_spi_write (struct adf4382_dev *dev, uint16_t reg_addr, uint8_t data) |
| Writes data to ADF4382 over SPI. More...
|
|
int | adf4382_spi_read (struct adf4382_dev *dev, uint16_t reg_addr, uint8_t *data) |
| Reads data from ADF4382 over SPI. More...
|
|
int | adf4382_spi_update_bits (struct adf4382_dev *dev, uint16_t reg_addr, uint8_t mask, uint8_t data) |
| Updates the values of the ADF4382 register. More...
|
|
int | adf4382_reg_dump (struct adf4382_dev *dev) |
| Will output on the terminal the values of all the ADF4382 registers. More...
|
|
int | adf4382_set_ref_clk (struct adf4382_dev *dev, uint64_t val) |
| Set the desired reference frequency and reset everything over to maximum supported value of 5GHz to the max. value and everything under the minimum supported value of 10MHz to the min. value. More...
|
|
int | adf4382_get_ref_clk (struct adf4382_dev *dev, uint64_t *val) |
| Gets the user proposed reference frequency. More...
|
|
int | adf4382_set_en_ref_doubler (struct adf4382_dev *dev, bool en) |
| Set the reference doubler to enable or disable based on the passed parameter. If the parameter is different then 0 it will set the doubler to enable. More...
|
|
int | adf4382_get_en_ref_doubler (struct adf4382_dev *dev, bool *en) |
| Gets the value the doubler if it is enabled or disable and stores it it the dev structure. More...
|
|
int | adf4382_set_ref_div (struct adf4382_dev *dev, int32_t div) |
| Set the reference divider value and reset everything over to maximum supported value of 63 to the max. value. More...
|
|
int | adf4382_get_ref_div (struct adf4382_dev *dev, int32_t *div) |
| Gets the value the reference divider. More...
|
|
int | adf4382_set_cp_i (struct adf4382_dev *dev, int32_t reg_val) |
| Set the charge pump value which will be written to the register. The value will be between 0 and 15 on 8 bits. For more information please consult the Datasheet. More...
|
|
int | adf4382_get_cp_i (struct adf4382_dev *dev, int32_t *reg_val) |
| Gets the charge pump value from the register. The value will be between 0 and 15 on 8 bits. For more information please consult the Datasheet. More...
|
|
int | adf4382_set_bleed_word (struct adf4382_dev *dev, int32_t word) |
| Set the bleed word, which represents the value of the bleed current written to the register space. More...
|
|
int | adf4382_get_bleed_word (struct adf4382_dev *dev, int32_t *word) |
| Gets the value of the set bleed word. More...
|
|
int | adf4382_set_out_power (struct adf4382_dev *dev, uint8_t ch, int32_t pwr) |
| Set the output power register value of a channel and reset everything over to maximum supported value of 15 to the max. value. More...
|
|
int | adf4382_get_out_power (struct adf4382_dev *dev, uint8_t ch, int32_t *pwr) |
| Gets the output power register value. More...
|
|
int | adf4382_set_en_chan (struct adf4382_dev *dev, uint8_t ch, bool en) |
| Set the output channel to enable or disable based on the passed parameter. If the parameter is different then 0 it will set the doubler to enable. More...
|
|
int | adf4382_get_en_chan (struct adf4382_dev *dev, uint8_t ch, bool *en) |
| Gets the value the output channel if it is enabled or disable. More...
|
|
int | adf4382_set_en_sync (struct adf4382_dev *dev, bool en) |
| Set the sync to enable or disable based on the passed parameter. If the parameter is different then 0 it will set the doubler to enable. More...
|
|
int | adf4382_get_en_sync (struct adf4382_dev *dev, bool *en) |
| Gets the value the sync if it is enabled or disable. More...
|
|
int | adf4382_set_rfout (struct adf4382_dev *dev, uint64_t val) |
| Set the desired output frequency and reset everything over to maximum supported value of 22GHz (21GHz for ADF4382A) to the max. value and everything under the minimum supported value of 687.5MHz (2.875GHz for ADF4382A) to the min. value. More...
|
|
int | adf4382_get_rfout (struct adf4382_dev *dev, uint64_t *val) |
| Gets the user proposed output frequency. More...
|
|
int | adf4382_set_freq (struct adf4382_dev *dev) |
| Set the output frequency. More...
|
|
int | adf4382_set_phase_adjust (struct adf4382_dev *dev, uint32_t phase_ps) |
| Set the phase adjustment in pico-seconds. The phase adjust will enable the Bleed current option as well as delay mode to 0. More...
|
|
int | adf4382_set_phase_pol (struct adf4382_dev *dev, bool polarity) |
| Set the phase polarity. If pol = 0 then it will add the phase value otherwise it will subtract the phase value. More...
|
|
int | adf4382_get_phase_pol (struct adf4382_dev *dev, bool *polarity) |
| Gets the polarity of the phase adjust. More...
|
|
int | adf4382_init (struct adf4382_dev **dev, struct adf4382_init_param *init_param) |
| Initializes the ADF4382. More...
|
|
int | adf4382_remove (struct adf4382_dev *dev) |
| Free resources allocated for ADF4382. More...
|
|
Implementation of adf4382 Driver.
- Author
- Ciprian Hegbeli (cipri.nosp@m.an.h.nosp@m.egbel.nosp@m.i@an.nosp@m.alog..nosp@m.com)
Copyright 2024(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.