![]() |
no-OS
|
Header file for adf5355 Driver. More...
Classes | |
| struct | adf5355_dev |
| Device descriptor. More... | |
| struct | adf5355_init_param |
Enumerations | |
| enum | adf5355_device_id { ADF5355 , ADF4355 , ADF4355_2 , ADF4355_3 , ADF4356 , ADF5356 } |
| Devices supported by the drivers. More... | |
| enum | adf5355_mux_out_sel { ADF5355_MUXOUT_THREESTATE , ADF5355_MUXOUT_DVDD , ADF5355_MUXOUT_GND , ADF5355_MUXOUT_R_DIV_OUT , ADF5355_MUXOUT_N_DIV_OUT , ADF5355_MUXOUT_ANALOG_LOCK_DETECT , ADF5355_MUXOUT_DIGITAL_LOCK_DETECT } |
| Muxout selection. More... | |
Functions | |
| int32_t | adf5355_clk_recalc_rate (struct adf5355_dev *dev, uint32_t chan, uint64_t *rate) |
| int32_t | adf5355_clk_set_rate (struct adf5355_dev *dev, uint32_t chan, uint64_t rate) |
| int32_t | adf5355_clk_round_rate (struct adf5355_dev *dev, uint64_t rate, uint64_t *rounded_rate) |
| int32_t | adf5355_init (struct adf5355_dev **device, const struct adf5355_init_param *init_param) |
| Initializes the ADF5355. | |
| int32_t | adf5355_remove (struct adf5355_dev *device) |
Header file for adf5355 Driver.
Copyright 2021(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define ADF4355_2_MAX_OUT_FREQ 4400000000ULL /* Hz */ |
| #define ADF4355_2_MAX_VCO_FREQ 6800000000ULL /* Hz */ |
| #define ADF4355_2_MIN_OUT_FREQ (ADF4355_2_MIN_VCO_FREQ / 64) /* Hz */ |
| #define ADF4355_2_MIN_VCO_FREQ 3400000000ULL /* Hz */ |
| #define ADF4355_3_MAX_OUT_FREQ ADF4355_3_MAX_VCO_FREQ /* Hz */ |
| #define ADF4355_3_MAX_VCO_FREQ 6600000000ULL /* Hz */ |
| #define ADF4355_3_MIN_OUT_FREQ (ADF4355_3_MIN_VCO_FREQ / 64) /* Hz */ |
| #define ADF4355_3_MIN_VCO_FREQ 3300000000ULL /* Hz */ |
| #define ADF4355_MAX_OUT_FREQ ADF4355_MAX_VCO_FREQ /* Hz */ |
| #define ADF4355_MAX_VCO_FREQ 6800000000ULL /* Hz */ |
| #define ADF4355_MIN_OUT_FREQ (ADF4355_MIN_VCO_FREQ / 64) /* Hz */ |
| #define ADF4355_MIN_VCO_FREQ 3400000000ULL /* Hz */ |
| #define ADF4355_REG6_OUTPUTB_PWR | ( | x | ) |
| #define ADF4355_REG6_RF_OUTB_EN | ( | x | ) |
| #define ADF4356_MAX_VCO_FREQ ADF5355_MAX_VCO_FREQ /* Hz */ |
| #define ADF4356_MIN_VCO_FREQ ADF5355_MIN_VCO_FREQ /* Hz */ |
| #define ADF4356_REG6_RF_OUTB_SEL | ( | x | ) |
| #define ADF5355_MAX_FREQ_PFD 75000000UL /* Hz */ |
| #define ADF5355_MAX_FREQ_REFIN 600000000UL /* Hz */ |
| #define ADF5355_MAX_MODULUS2 16384 |
| #define ADF5355_MAX_OUT_FREQ ADF5355_MAX_VCO_FREQ /* Hz */ |
| #define ADF5355_MAX_OUTB_FREQ (ADF5355_MAX_VCO_FREQ * 2) /* Hz */ |
| #define ADF5355_MAX_R_CNT 1023 |
| #define ADF5355_MAX_VCO_FREQ 6800000000ULL /* Hz */ |
| #define ADF5355_MIN_INT_PRESCALER_89 75 |
| #define ADF5355_MIN_OUT_FREQ (ADF5355_MIN_VCO_FREQ / 64) /* Hz */ |
| #define ADF5355_MIN_OUTB_FREQ (ADF5355_MIN_VCO_FREQ * 2) /* Hz */ |
| #define ADF5355_MIN_VCO_FREQ 3400000000ULL /* Hz */ |
| #define ADF5355_MODULUS1 16777216ULL |
| #define ADF5355_REG | ( | x | ) |
| #define ADF5355_REG0_AUTOCAL | ( | x | ) |
| #define ADF5355_REG0_INT | ( | x | ) |
| #define ADF5355_REG0_PRESCALER | ( | x | ) |
| #define ADF5355_REG10_ADC_CLK_DIV | ( | x | ) |
| #define ADF5355_REG10_ADC_CONV_EN | ( | x | ) |
| #define ADF5355_REG10_ADC_EN | ( | x | ) |
| #define ADF5355_REG10_DEFAULT 0x00C0000A |
| #define ADF5355_REG11_DEFAULT 0x0061300B |
| #define ADF5355_REG12_DEFAULT 0x0000041C |
| #define ADF5355_REG12_PHASE_RESYNC_CLK_DIV | ( | x | ) |
| #define ADF5355_REG1_FRACT | ( | x | ) |
| #define ADF5355_REG2_FRAC2 | ( | x | ) |
| #define ADF5355_REG2_MOD2 | ( | x | ) |
| #define ADF5355_REG3_EXACT_SDLOAD_RESET | ( | x | ) |
| #define ADF5355_REG3_PHASE | ( | x | ) |
| #define ADF5355_REG3_PHASE_ADJUST | ( | x | ) |
| #define ADF5355_REG3_PHASE_RESYNC | ( | x | ) |
| #define ADF5355_REG4_10BIT_R_CNT | ( | x | ) |
| #define ADF5355_REG4_CHARGE_PUMP_CURR | ( | x | ) |
| #define ADF5355_REG4_COUNTER_RESET_EN | ( | x | ) |
| #define ADF5355_REG4_CP_THREESTATE_EN | ( | x | ) |
| #define ADF5355_REG4_DOUBLE_BUFF_EN | ( | x | ) |
| #define ADF5355_REG4_MUX_LOGIC | ( | x | ) |
| #define ADF5355_REG4_MUXOUT | ( | x | ) |
| #define ADF5355_REG4_PD_POLARITY_POS | ( | x | ) |
| #define ADF5355_REG4_POWER_DOWN_EN | ( | x | ) |
| #define ADF5355_REG4_RDIV2_EN | ( | x | ) |
| #define ADF5355_REG4_REFIN_MODE_DIFF | ( | x | ) |
| #define ADF5355_REG4_RMULT2_EN | ( | x | ) |
| #define ADF5355_REG5_DEFAULT 0x00800025 |
| #define ADF5355_REG6_CP_BLEED_CURR | ( | x | ) |
| #define ADF5355_REG6_DEFAULT 0x14000006 |
| #define ADF5355_REG6_FEEDBACK_FUND | ( | x | ) |
| #define ADF5355_REG6_GATED_BLEED_EN | ( | x | ) |
| #define ADF5355_REG6_MUTE_TILL_LOCK_EN | ( | x | ) |
| #define ADF5355_REG6_NEG_BLEED_EN | ( | x | ) |
| #define ADF5355_REG6_OUTPUT_PWR | ( | x | ) |
| #define ADF5355_REG6_RF_DIV_SEL | ( | x | ) |
| #define ADF5355_REG6_RF_OUT_EN | ( | x | ) |
| #define ADF5355_REG6_RF_OUTB_EN | ( | x | ) |
| #define ADF5355_REG7_DEFAULT 0x10000007 |
| #define ADF5355_REG7_FACT_N_LD_PRECISION | ( | x | ) |
| #define ADF5355_REG7_LD_CYCLE_CNT | ( | x | ) |
| #define ADF5355_REG7_LD_MODE_INT_N_EN | ( | x | ) |
| #define ADF5355_REG7_LE_SYNCED_REFIN_EN | ( | x | ) |
| #define ADF5355_REG7_LOL_MODE_EN | ( | x | ) |
| #define ADF5355_REG8_DEFAULT 0x102D0428 |
| #define ADF5355_REG9_ALC_TIMEOUT | ( | x | ) |
| #define ADF5355_REG9_SYNTH_LOCK_TIMEOUT | ( | x | ) |
| #define ADF5355_REG9_TIMEOUT | ( | x | ) |
| #define ADF5355_REG9_VCO_BAND_DIV | ( | x | ) |
| #define ADF5355_REG_NUM 14 |
| #define ADF5355_SPI_NO_BYTES 4 |
| #define ADF5356_MAX_MODULUS2 268435456 |
| #define ADF5356_REG11_DEFAULT 0x0061200B |
| #define ADF5356_REG11_VCO_BAND_HOLD_EN | ( | x | ) |
| #define ADF5356_REG12_DEFAULT 0x000005FC |
| #define ADF5356_REG12_PHASE_RESYNC_CLK_DIV | ( | x | ) |
| #define ADF5356_REG13_FRAC2_MSB | ( | x | ) |
| #define ADF5356_REG13_MOD2_MSB | ( | x | ) |
| #define ADF5356_REG6_BLEED_POLARITY | ( | x | ) |
| #define ADF5356_REG7_DEFAULT 0x04000007 |
| #define ADF5356_REG7_LE_SYNCE_EDGE_RISING_EN | ( | x | ) |
| #define ADF5356_REG8_DEFAULT 0x15596568 |
| enum adf5355_device_id |
| enum adf5355_mux_out_sel |
| int32_t adf5355_clk_recalc_rate | ( | struct adf5355_dev * | dev, |
| uint32_t | chan, | ||
| uint64_t * | rate ) |
Recalculate rate corresponding to a channel.
| dev | - The device structure. |
| chan | - Channel number. |
| rate | - Channel rate. |
| int32_t adf5355_clk_round_rate | ( | struct adf5355_dev * | dev, |
| uint64_t | rate, | ||
| uint64_t * | rounded_rate ) |
Calculate closest possible rate
| dev | - The device structure |
| rate | - The desired rate. |
| rounded_rate | - The closest possible rate of desired rate. |
| int32_t adf5355_clk_set_rate | ( | struct adf5355_dev * | dev, |
| uint32_t | chan, | ||
| uint64_t | rate ) |
Set channel rate.
| dev | - The device structure. |
| chan | - Channel number. |
| rate | - Channel rate. |
| int32_t adf5355_init | ( | struct adf5355_dev ** | device, |
| const struct adf5355_init_param * | init_param ) |
Initializes the ADF5355.
| device | - The device structure. |
| init_param | - The structure containing the device initial parameters. |
| int32_t adf5355_remove | ( | struct adf5355_dev * | device | ) |
Remove the device - release resources.
| device | - The device structure. |