int hmc630x_set_vco(struct hmc630x_dev *dev, uint64_t frequency)
Definition: hmc630x.c:749
@ HMC6301_IIO_ATTR_BB_ATTN2
Definition: iio_hmc630x.h:65
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:122
@ HMC6301_IIO_ATTR_RF_LNA_GAIN
Definition: iio_hmc630x.h:63
@ IIO_VAL_INT
Definition: iio_types.h:56
Struct describing the scan type.
Definition: iio_types.h:174
int hmc630x_remove(struct hmc630x_dev *dev)
Definition: hmc630x.c:260
Definition: hmc630x.h:299
int hmc630x_read(struct hmc630x_dev *dev, uint16_t param, uint8_t *value)
Definition: hmc630x.c:436
int32_t hmc630x_iio_init(struct hmc630x_iio_dev **iiodev, struct hmc630x_iio_init_param *init_param)
Definition: iio_hmc630x.c:439
@ HMC630X_IIO_ATTR_VCO_AVAILABLE
Definition: iio_hmc630x.h:58
@ HMC6301_IIO_ATTR_BB_HPC
Definition: iio_hmc630x.h:69
Structure holding channel attributess.
Definition: iio_types.h:109
#define HMC630X_COMMON_ATTRS
Definition: iio_hmc630x.c:332
@ HMC630X_IIO_ATTR_VCO
Definition: iio_hmc630x.h:57
int32_t hmc630x_iio_init(struct hmc630x_iio_dev **iio_dev, struct hmc630x_iio_init_param *init_param)
Definition: iio_hmc630x.c:439
Header file of Delay functions.
int hmc630x_read_row(struct hmc630x_dev *dev, uint8_t row, uint8_t *val)
Definition: hmc630x.c:330
Definition: ad9361_util.h:75
hmc6301_bb_hpc
Definition: hmc630x.h:269
enum iio_chan_type ch_type
Definition: iio_types.h:178
#define HMC630X_VCO_BANDSEL
Definition: hmc630x.h:205
hmc6301_bb_lpc
Definition: hmc630x.h:261
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:60
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:55
hmc6301_bb_attn
Definition: hmc630x.h:241
hmc630x_iio_attr_id
Definition: iio_hmc630x.h:54
@ HMC6301_IIO_ATTR_BB_LPC
Definition: iio_hmc630x.h:68
int hmc630x_get_temp(struct hmc630x_dev *dev, uint8_t *temp)
Definition: hmc630x.c:544
int hmc6301_get_lna_gain(struct hmc630x_dev *dev, enum hmc6301_lna_attn *gain)
Definition: hmc630x.c:884
int hmc6301_set_bb_attn_fine(struct hmc630x_dev *dev, enum hmc6301_bb_attn_fine attn_i, enum hmc6301_bb_attn_fine attn_q)
Definition: hmc630x.c:940
@ HMC630X_IIO_ATTR_VCO_BAND
Definition: iio_hmc630x.h:59
const char * name
Definition: iio_types.h:137
int hmc6301_set_bb_lpc_hpc(struct hmc630x_dev *dev, enum hmc6301_bb_lpc lpc, enum hmc6301_bb_hpc hpc)
Definition: hmc630x.c:988
hmc6300 and hmc6301 device driver header.
@ HMC630X_IIO_ATTR_ENABLED
Definition: iio_hmc630x.h:55
int hmc630x_get_avail_vco(struct hmc630x_dev *dev, const uint64_t **avail, uint8_t *avail_num)
Definition: hmc630x.c:858
Structure holding pointers to show and store functions.
Definition: iio_types.h:135
int hmc630x_get_temp_en(struct hmc630x_dev *dev, bool *enable)
Definition: hmc630x.c:512
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:616
int hmc6300_get_rf_attn(struct hmc630x_dev *dev, uint8_t *attn)
Definition: hmc630x.c:736
int hmc6300_set_rf_attn(struct hmc630x_dev *dev, uint8_t attn)
Definition: hmc630x.c:721
@ HMC6301_IIO_ATTR_BB_ATTNI_FINE
Definition: iio_hmc630x.h:66
hmc630x_type
Definition: hmc630x.h:227
int hmc630x_set_if_attn(struct hmc630x_dev *dev, uint8_t attn)
Definition: hmc630x.c:681
hmc6301_bb_attn_fine
Definition: hmc630x.h:249
int hmc6301_get_bb_attn(struct hmc630x_dev *dev, enum hmc6301_bb_attn *attn1, enum hmc6301_bb_attn *attn2)
Definition: hmc630x.c:920
int hmc630x_get_enable(struct hmc630x_dev *dev, bool *enable)
Definition: hmc630x.c:625
int32_t hmc630x_iio_remove(struct hmc630x_iio_dev *iiodev)
Definition: iio_hmc630x.c:478
struct hmc630x_init_param * ip
Definition: iio_hmc630x.h:51
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:667
@ HMC6300
Definition: hmc630x.h:228
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:75
int hmc630x_get_if_attn(struct hmc630x_dev *dev, uint8_t *attn)
Definition: hmc630x.c:701
@ IIO_TEMP
Definition: iio_types.h:75
enum iio_chan_type type
Definition: iio_types.h:115
#define HMC630X_LOCKDET
Definition: hmc630x.h:212
int hmc630x_set_temp_en(struct hmc630x_dev *dev, bool enable)
Definition: hmc630x.c:487
@ HMC6300_IIO_ATTR_RF_ATTN
Definition: iio_hmc630x.h:62
#define NULL
Definition: wrapper.h:64
int hmc6301_set_lna_gain(struct hmc630x_dev *dev, enum hmc6301_lna_attn gain)
Definition: hmc630x.c:871
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
Structure holding channels and attributes of a device.
Definition: iio_types.h:253
int hmc6301_get_bb_lpc_hpc(struct hmc630x_dev *dev, enum hmc6301_bb_lpc *lpc, enum hmc6301_bb_hpc *hpc)
Definition: hmc630x.c:1008
Header file of hmc6300 and hmc6301 driver extension for IIOD.
int hmc630x_set_enable(struct hmc630x_dev *dev, bool enable)
Definition: hmc630x.c:576
struct hmc630x_vco vco
Definition: hmc630x.c:66
Definition: iio_hmc630x.h:50
@ HMC630X_IIO_ATTR_TEMP_EN
Definition: iio_hmc630x.h:56
Definition: iio_hmc630x.h:45
struct hmc630x_dev * dev
Definition: iio_hmc630x.h:46
int hmc630x_init(struct hmc630x_dev **dev, struct hmc630x_init_param *init)
Definition: hmc630x.c:115
@ HMC6301_IIO_ATTR_BB_ATTN1
Definition: iio_hmc630x.h:64
@ HMC6301_IIO_ATTR_BB_ATTNQ_FINE
Definition: iio_hmc630x.h:67
Header file of utility functions.
@ HMC630X_IIO_ATTR_IF_ATTN
Definition: iio_hmc630x.h:61
int hmc630x_get_vco(struct hmc630x_dev *dev, uint64_t *frequency)
Definition: hmc630x.c:817
int hmc6301_set_bb_attn(struct hmc630x_dev *dev, enum hmc6301_bb_attn attn1, enum hmc6301_bb_attn attn2)
Definition: hmc630x.c:897
struct iio_device * iio_dev
Definition: iio_hmc630x.h:47
hmc6301_lna_attn
Definition: hmc630x.h:233
@ HMC630X_IIO_ATTR_VCO_LOCK
Definition: iio_hmc630x.h:60
int hmc6301_get_bb_attn_fine(struct hmc630x_dev *dev, enum hmc6301_bb_attn_fine *attn_i, enum hmc6301_bb_attn_fine *attn_q)
Definition: hmc630x.c:967
int hmc630x_write_row(struct hmc630x_dev *dev, uint8_t row, uint8_t val)
Definition: hmc630x.c:299
struct iio_attribute * attributes
Definition: iio_types.h:262
int32_t hmc630x_iio_remove(struct hmc630x_iio_dev *desc)
Definition: iio_hmc630x.c:478