no-OS
|
Implementation of ADF4350 Driver. More...
Functions | |
int32_t | adf4350_write (adf4350_dev *dev, uint32_t data) |
Writes 4 bytes of data to ADF4350. More... | |
int32_t | adf4350_sync_config (adf4350_dev *dev) |
Updates the registers values. More... | |
int32_t | adf4350_tune_r_cnt (adf4350_dev *dev, uint16_t r_cnt) |
Increases the R counter value until the ADF4350_MAX_FREQ_PFD is greater than PFD frequency. More... | |
uint32_t | gcd (uint32_t x, uint32_t y) |
Computes the greatest common divider of two numbers. More... | |
int64_t | adf4350_set_freq (adf4350_dev *dev, uint64_t freq) |
Sets the ADF4350 frequency. More... | |
int32_t | adf4350_setup (adf4350_dev **device, adf4350_init_param init_param) |
Initializes the ADF4350. More... | |
int64_t | adf4350_out_altvoltage0_frequency (adf4350_dev *dev, int64_t Hz) |
Stores PLL 0 frequency in Hz. More... | |
int32_t | adf4350_out_altvoltage0_frequency_resolution (adf4350_dev *dev, int32_t Hz) |
Stores PLL 0 frequency resolution/channel spacing in Hz. More... | |
int64_t | adf4350_out_altvoltage0_refin_frequency (adf4350_dev *dev, int64_t Hz) |
Sets PLL 0 REFin frequency in Hz. More... | |
int32_t | adf4350_out_altvoltage0_powerdown (adf4350_dev *dev, int32_t pwd) |
Powers down the PLL. More... | |
Implementation of ADF4350 Driver.
Copyright 2012-2015(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:
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.
int64_t adf4350_out_altvoltage0_frequency | ( | adf4350_dev * | dev, |
int64_t | Hz | ||
) |
Stores PLL 0 frequency in Hz.
dev | - The device structure. |
Hz | - The selected frequency. |
int32_t adf4350_out_altvoltage0_frequency_resolution | ( | adf4350_dev * | dev, |
int32_t | Hz | ||
) |
Stores PLL 0 frequency resolution/channel spacing in Hz.
dev | - The device structure. |
Hz | - The selected frequency. |
int32_t adf4350_out_altvoltage0_powerdown | ( | adf4350_dev * | dev, |
int32_t | pwd | ||
) |
Powers down the PLL.
dev | - The device structure. |
pwd | - Power option. Example: 0 - Power up the PLL. 1 - Power down the PLL. |
int64_t adf4350_out_altvoltage0_refin_frequency | ( | adf4350_dev * | dev, |
int64_t | Hz | ||
) |
Sets PLL 0 REFin frequency in Hz.
dev | - The device structure. |
Hz | - The selected frequency. |
int64_t adf4350_set_freq | ( | adf4350_dev * | dev, |
uint64_t | freq | ||
) |
Sets the ADF4350 frequency.
dev | - The device structure. |
freq | - The desired frequency value. |
int32_t adf4350_setup | ( | adf4350_dev ** | device, |
adf4350_init_param | init_param | ||
) |
Initializes the ADF4350.
device | - The device structure. |
init_param | - The structure containing the device initial parameters. |
int32_t adf4350_sync_config | ( | adf4350_dev * | dev | ) |
Updates the registers values.
dev | - The device structure. |
int32_t adf4350_tune_r_cnt | ( | adf4350_dev * | dev, |
uint16_t | r_cnt | ||
) |
Increases the R counter value until the ADF4350_MAX_FREQ_PFD is greater than PFD frequency.
dev | - The device structure. |
r_cnt | - Initial r_cnt value. |
int32_t adf4350_write | ( | adf4350_dev * | dev, |
uint32_t | data | ||
) |
Writes 4 bytes of data to ADF4350.
dev | - The device structure. |
data | - Data value to write. |
uint32_t gcd | ( | uint32_t | x, |
uint32_t | y | ||
) |
Computes the greatest common divider of two numbers.