int32_t adf4371_clk_recalc_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t *rate)
Definition: adf4371.c:697
uint32_t timeout
Definition: ad413x.c:54
@ ADF4371_RDIV2
Definition: adf4371.c:165
@ ADF4371_CH_RFAUX8
Definition: adf4371.c:150
int32_t adf4371_clk_round_rate(struct adf4371_dev *dev, uint64_t rate, uint64_t *rounded_rate)
Definition: adf4371.c:715
@ ADF4371_MUXOUT_ENABLE
Definition: adf4371.c:145
uint32_t clkin_freq
Definition: adf4371.h:79
adf4371_variant
Definition: adf4371.c:155
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:95
@ ADF4371_CH_RF32
Definition: adf4371.c:152
#define ADF4371_ADDR_ASC_R(x)
Definition: adf4371.c:65
@ ADF4371_TRISTATE
Definition: adf4371.c:161
uint32_t fract1
Definition: adf4371.h:82
Header file of SPI Interface.
Definition: adf4371.c:190
adf4371_muxout
Definition: adf4371.c:160
@ ADF4371_CHANNEL_NAME
Definition: adf4371.c:144
#define ADF4371_MIN_VCO_FREQ
Definition: adf4371.c:121
#define ADF4371_ADDR(x)
Definition: adf4371.c:56
uint32_t fract2
Definition: adf4371.h:83
bool mute_till_lock_enable
Definition: adf4371.h:96
bool muxout_1v8_en
Definition: adf4371.h:77
bool differential_ref_clk
Definition: adf4371.h:72
#define ADF4371_CP_CURRENT(x)
Definition: adf4371.c:88
#define ADF4371_REFIN_MODE_MASK
Definition: adf4371.c:101
#define ADF4371_MUXOUT_LVL(x)
Definition: adf4371.c:96
bool loop_filter_inverting
Definition: adf4371.h:94
@ ADF4372
Definition: adf4371.c:157
int32_t adf4371_clk_set_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t rate)
Definition: adf4371.c:730
Definition: ad9361_util.h:75
#define ADF4371_MODULUS1
Definition: adf4371.c:134
int32_t adf4371_remove(struct adf4371_dev *device)
Definition: adf4371.c:824
#define ADF4371_MUXOUT(x)
Definition: adf4371.c:94
uint32_t pd_pol
Definition: adf4371.h:73
uint32_t no_os_find_closest(int32_t val, const int32_t *array, uint32_t size)
Header file of ADF4371 Driver.
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
uint64_t freq
Definition: adf4371.h:53
struct adf4371_cp_settings cp_settings
Definition: adf4371.h:71
#define ADF4371_ADDR_ASC(x)
Definition: adf4371.c:63
#define ADF4371_MOD2WORD(x)
Definition: adf4371.c:84
#define ADF4371_REG(x)
Definition: adf4371.c:59
uint32_t muxout_default_mode
Definition: adf4371.h:75
uint64_t no_os_do_div(uint64_t *n, uint64_t base)
uint32_t rf_div_sel
Definition: adf4371.h:85
struct no_os_spi_init_param * spi_init
Definition: adf4371.h:90
#define NO_OS_DIV_ROUND_UP(x, y)
Definition: no_os_util.h:56
uint32_t reg
Definition: adf4371.c:174
@ ADF4371_FREQ
Definition: adf4371.c:142
uint32_t fpfd
Definition: adf4371.h:80
uint32_t bit
Definition: adf4371.c:175
#define ADF4371_PD_POL_MSK
Definition: adf4371.c:89
uint32_t regval
Definition: adf4371.h:58
uint8_t val
Definition: adf4371.c:192
#define ADF4371_READ
Definition: adf4371.c:55
#define ADF4371_PD_POL(x)
Definition: adf4371.c:90
@ ADF4371_HIGH
Definition: adf4371.c:168
bool mute_till_lock_en
Definition: adf4371.h:74
uint32_t clkin_frequency
Definition: adf4371.h:92
@ ADF4371
Definition: adf4371.c:156
#define ADF4371_MUTE_LD_MSK
Definition: adf4371.c:109
@ ADF4371_VCO_TEST
Definition: adf4371.c:167
uint32_t mod2
Definition: adf4371.h:84
#define ADF4371_VCO_ALC_TOUT(x)
Definition: adf4371.c:118
Structure holding SPI descriptor.
Definition: no_os_spi.h:143
uint64_t power_up_frequency
Definition: adf4371.h:63
#define no_os_clamp(val, min_val, max_val)
Definition: no_os_util.h:73
#define ADF4371_REFIN_MODE(x)
Definition: adf4371.c:102
struct no_os_spi_desc * spi_desc
Definition: adf4371.h:67
@ ADF4371_N_DIV_OUT
Definition: adf4371.c:166
uint32_t no_os_greatest_common_divisor(uint32_t a, uint32_t b)
bool muxout_level_1v8_enable
Definition: adf4371.h:98
#define ADF4371_ADDR_ASC_MSK
Definition: adf4371.c:62
int32_t adf4371_clk_recalc_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t *rate)
Definition: adf4371.c:697
#define ADF4371_SDO_ACT_R(x)
Definition: adf4371.c:69
uint32_t num_channels
Definition: adf4371.h:99
uint32_t num_channels
Definition: adf4371.h:69
int32_t adf4371_init(struct adf4371_dev **device, const struct adf4371_init_param *init_param)
Definition: adf4371.c:746
@ ADF4371_CH_RF16
Definition: adf4371.c:151
@ ADF4371_CH_RF8
Definition: adf4371.c:149
Definition: adf4371.c:173
#define ADF4371_SDO_ACT_MSK
Definition: adf4371.c:66
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
bool enable
Definition: adf4371.h:52
#define ADF4371_FRAC2WORD_H(x)
Definition: adf4371.c:80
#define ADF4371_MAX_MODULUS2
Definition: adf4371.c:136
uint32_t num
Definition: adf4371.h:62
#define ADF4371_SDO_ACT_R_MSK
Definition: adf4371.c:68
@ ADF4371_CH_PUMP_DOWN
Definition: adf4371.c:164
#define ADF4371_WRITE
Definition: adf4371.c:54
struct adf4371_chan_spec * channels
Definition: adf4371.h:100
uint32_t charge_pump_microamp
Definition: adf4371.h:95
bool spi_3wire_enable
Definition: adf4371.h:91
int32_t adf4371_clk_set_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t rate)
Definition: adf4371.c:730
struct adf4371_channel_config channel_cfg[4]
Definition: adf4371.h:70
#define ADF4371_CHECK_RANGE(freq, range)
Definition: adf4371.c:138
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
uint8_t buf[10]
Definition: adf4371.h:86
uint32_t ref_div_factor
Definition: adf4371.h:78
#define ADF4371_ADDR_ASC_R_MSK
Definition: adf4371.c:64
#define ADF4371_RESET_CMD
Definition: adf4371.c:70
#define ADF4371_FRAC2WORD_L(x)
Definition: adf4371.c:74
@ ADF4371_POWER_DOWN
Definition: adf4371.c:143
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:77
@ ADF4371_CH_PUMP_UP
Definition: adf4371.c:163
bool muxout_en
Definition: adf4371.h:76
#define ADF4371_FRAC1WORD(x)
Definition: adf4371.c:76
#define ADF4371_CP_CURRENT_MSK
Definition: adf4371.c:87
int32_t adf4371_init(struct adf4371_dev **device, const struct adf4371_init_param *init_param)
Definition: adf4371.c:746
#define ADF4371_MUXOUT_MSK
Definition: adf4371.c:93
#define ADF4371_RF_DIV_SEL_MSK
Definition: adf4371.c:105
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:51
uint32_t icp
Definition: adf4371.h:57
Header file of utility functions.
@ ADF4371_VCO_CALIB_R_BAND
Definition: adf4371.c:169
uint32_t integer
Definition: adf4371.h:81
#define ADF4371_MUTE_LD(x)
Definition: adf4371.c:110
@ ADF4371_VCO_CALIB_N_BAND
Definition: adf4371.c:170
#define ADF4371_MUXOUT_LVL_MSK
Definition: adf4371.c:95
@ ADF4371_DIG_LOCK
Definition: adf4371.c:162
#define ADF4371_MUXOUT_EN(x)
Definition: adf4371.c:98
#define ADF4371_RF_DIV_SEL(x)
Definition: adf4371.c:106
bool spi_3wire_en
Definition: adf4371.h:68
uint16_t reg
Definition: adf4371.c:191
#define ADF4371_SDO_ACT(x)
Definition: adf4371.c:67
uint32_t muxout_select
Definition: adf4371.h:97
bool differential_ref_clock
Definition: adf4371.h:93
#define ADF4371_MUXOUT_EN_MSK
Definition: adf4371.c:97
#define NO_OS_DIV_ROUND_CLOSEST(x, y)
Definition: no_os_util.h:58
int32_t adf4371_remove(struct adf4371_dev *device)
Definition: adf4371.c:824
#define ADF4371_TIMEOUT(x)
Definition: adf4371.c:114
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:121
int32_t adf4371_clk_round_rate(struct adf4371_dev *dev, uint64_t rate, uint64_t *rounded_rate)
Definition: adf4371.c:715
#define ADF4371_MAX_FREQ_PFD
Definition: adf4371.c:130