int32_t adf4371_clk_recalc_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t *rate)
Definition: adf4371.c:692
uint32_t timeout
Definition: ad413x.c:49
@ ADF4371_RDIV2
Definition: adf4371.c:160
int32_t adf4371_clk_round_rate(struct adf4371_dev *dev, uint64_t rate, uint64_t *rounded_rate)
Definition: adf4371.c:710
uint32_t clkin_freq
Definition: adf4371.h:73
adf4371_variant
Definition: adf4371.c:150
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:159
#define ADF4371_ADDR_ASC_R(x)
Definition: adf4371.c:60
@ ADF4371_TRISTATE
Definition: adf4371.c:156
uint32_t fract1
Definition: adf4371.h:76
Header file of SPI Interface.
ADF4382 register format structure for default values.
Definition: adf4371.c:185
adf4371_muxout
Definition: adf4371.c:155
#define ADF4371_MIN_VCO_FREQ
Definition: adf4371.c:116
#define ADF4371_ADDR(x)
Definition: adf4371.c:51
@ ADF4371_MUXOUT_ENABLE
Definition: adf4371.c:140
@ ADF4371_CHANNEL_NAME
Definition: adf4371.c:139
uint32_t fract2
Definition: adf4371.h:77
bool mute_till_lock_enable
Definition: adf4371.h:90
bool muxout_1v8_en
Definition: adf4371.h:71
bool differential_ref_clk
Definition: adf4371.h:66
#define ADF4371_CP_CURRENT(x)
Definition: adf4371.c:83
#define ADF4371_REFIN_MODE_MASK
Definition: adf4371.c:96
#define ADF4371_MUXOUT_LVL(x)
Definition: adf4371.c:91
bool loop_filter_inverting
Definition: adf4371.h:88
@ ADF4372
Definition: adf4371.c:152
int32_t adf4371_clk_set_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t rate)
Definition: adf4371.c:725
Definition: ad9361_util.h:69
#define ADF4371_MODULUS1
Definition: adf4371.c:129
int32_t adf4371_remove(struct adf4371_dev *device)
Definition: adf4371.c:819
#define ADF4371_MUXOUT(x)
Definition: adf4371.c:89
uint32_t pd_pol
Definition: adf4371.h:67
uint32_t no_os_find_closest(int32_t val, const int32_t *array, uint32_t size)
Header file of ADF4371 Driver.
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
uint64_t freq
Definition: adf4371.h:47
struct adf4371_cp_settings cp_settings
Definition: adf4371.h:65
#define ADF4371_ADDR_ASC(x)
Definition: adf4371.c:58
#define ADF4371_MOD2WORD(x)
Definition: adf4371.c:79
#define ADF4371_REG(x)
Definition: adf4371.c:54
uint32_t muxout_default_mode
Definition: adf4371.h:69
uint64_t no_os_do_div(uint64_t *n, uint64_t base)
uint32_t rf_div_sel
Definition: adf4371.h:79
struct no_os_spi_init_param * spi_init
Definition: adf4371.h:84
#define NO_OS_DIV_ROUND_UP(x, y)
Definition: no_os_util.h:52
@ ADF4371_CH_RF32
Definition: adf4371.c:147
uint32_t reg
Definition: adf4371.c:169
uint32_t fpfd
Definition: adf4371.h:74
uint32_t bit
Definition: adf4371.c:170
#define ADF4371_PD_POL_MSK
Definition: adf4371.c:84
uint32_t regval
Definition: adf4371.h:52
uint8_t val
Definition: adf4371.c:187
#define ADF4371_READ
Definition: adf4371.c:50
#define ADF4371_PD_POL(x)
Definition: adf4371.c:85
@ ADF4371_HIGH
Definition: adf4371.c:163
bool mute_till_lock_en
Definition: adf4371.h:68
uint32_t clkin_frequency
Definition: adf4371.h:86
@ ADF4371
Definition: adf4371.c:151
#define ADF4371_MUTE_LD_MSK
Definition: adf4371.c:104
@ ADF4371_VCO_TEST
Definition: adf4371.c:162
uint32_t mod2
Definition: adf4371.h:78
#define ADF4371_VCO_ALC_TOUT(x)
Definition: adf4371.c:113
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
uint64_t power_up_frequency
Definition: adf4371.h:57
#define no_os_clamp(val, min_val, max_val)
Definition: no_os_util.h:69
#define ADF4371_REFIN_MODE(x)
Definition: adf4371.c:97
struct no_os_spi_desc * spi_desc
Definition: adf4371.h:61
@ ADF4371_N_DIV_OUT
Definition: adf4371.c:161
uint32_t no_os_greatest_common_divisor(uint32_t a, uint32_t b)
bool muxout_level_1v8_enable
Definition: adf4371.h:92
#define ADF4371_ADDR_ASC_MSK
Definition: adf4371.c:57
int32_t adf4371_clk_recalc_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t *rate)
Definition: adf4371.c:692
#define ADF4371_SDO_ACT_R(x)
Definition: adf4371.c:64
@ ADF4371_POWER_DOWN
Definition: adf4371.c:138
uint32_t num_channels
Definition: adf4371.h:93
uint32_t num_channels
Definition: adf4371.h:63
@ ADF4371_CH_RF8
Definition: adf4371.c:144
int32_t adf4371_init(struct adf4371_dev **device, const struct adf4371_init_param *init_param)
Definition: adf4371.c:741
Definition: adf4371.c:168
#define ADF4371_SDO_ACT_MSK
Definition: adf4371.c:61
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
bool enable
Definition: adf4371.h:46
#define ADF4371_FRAC2WORD_H(x)
Definition: adf4371.c:75
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
#define ADF4371_MAX_MODULUS2
Definition: adf4371.c:131
uint32_t num
Definition: adf4371.h:56
#define ADF4371_SDO_ACT_R_MSK
Definition: adf4371.c:63
@ ADF4371_CH_PUMP_DOWN
Definition: adf4371.c:159
#define ADF4371_WRITE
Definition: adf4371.c:49
struct adf4371_chan_spec * channels
Definition: adf4371.h:94
uint32_t charge_pump_microamp
Definition: adf4371.h:89
bool spi_3wire_enable
Definition: adf4371.h:85
int32_t adf4371_clk_set_rate(struct adf4371_dev *dev, uint32_t chan, uint64_t rate)
Definition: adf4371.c:725
struct adf4371_channel_config channel_cfg[4]
Definition: adf4371.h:64
#define ADF4371_CHECK_RANGE(freq, range)
Definition: adf4371.c:133
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
uint8_t buf[10]
Definition: adf4371.h:80
uint32_t ref_div_factor
Definition: adf4371.h:72
#define ADF4371_ADDR_ASC_R_MSK
Definition: adf4371.c:59
#define ADF4371_RESET_CMD
Definition: adf4371.c:65
#define ADF4371_FRAC2WORD_L(x)
Definition: adf4371.c:69
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:116
@ ADF4371_CH_PUMP_UP
Definition: adf4371.c:158
bool muxout_en
Definition: adf4371.h:70
#define ADF4371_FRAC1WORD(x)
Definition: adf4371.c:71
#define ADF4371_CP_CURRENT_MSK
Definition: adf4371.c:82
int32_t adf4371_init(struct adf4371_dev **device, const struct adf4371_init_param *init_param)
Definition: adf4371.c:741
#define ADF4371_MUXOUT_MSK
Definition: adf4371.c:88
#define ADF4371_RF_DIV_SEL_MSK
Definition: adf4371.c:100
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:52
uint32_t icp
Definition: adf4371.h:51
Header file of utility functions.
@ ADF4371_VCO_CALIB_R_BAND
Definition: adf4371.c:164
uint32_t integer
Definition: adf4371.h:75
#define ADF4371_MUTE_LD(x)
Definition: adf4371.c:105
@ ADF4371_CH_RFAUX8
Definition: adf4371.c:145
@ ADF4371_VCO_CALIB_N_BAND
Definition: adf4371.c:165
#define ADF4371_MUXOUT_LVL_MSK
Definition: adf4371.c:90
@ ADF4371_CH_RF16
Definition: adf4371.c:146
@ ADF4371_FREQ
Definition: adf4371.c:137
@ ADF4371_DIG_LOCK
Definition: adf4371.c:157
#define ADF4371_MUXOUT_EN(x)
Definition: adf4371.c:93
#define ADF4371_RF_DIV_SEL(x)
Definition: adf4371.c:101
bool spi_3wire_en
Definition: adf4371.h:62
uint16_t reg
Definition: adf4371.c:186
#define ADF4371_SDO_ACT(x)
Definition: adf4371.c:62
uint32_t muxout_select
Definition: adf4371.h:91
bool differential_ref_clock
Definition: adf4371.h:87
#define ADF4371_MUXOUT_EN_MSK
Definition: adf4371.c:92
#define NO_OS_DIV_ROUND_CLOSEST(x, y)
Definition: no_os_util.h:54
int32_t adf4371_remove(struct adf4371_dev *device)
Definition: adf4371.c:819
#define ADF4371_TIMEOUT(x)
Definition: adf4371.c:109
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
int32_t adf4371_clk_round_rate(struct adf4371_dev *dev, uint64_t rate, uint64_t *rounded_rate)
Definition: adf4371.c:710
#define ADF4371_MAX_FREQ_PFD
Definition: adf4371.c:125