int hmc630x_set_vco(struct hmc630x_dev *dev, uint64_t frequency)
Definition: hmc630x.c:743
@ HMC6301_IIO_ATTR_BB_ATTN2
Definition: iio_hmc630x.h:59
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
@ HMC6301_IIO_ATTR_RF_LNA_GAIN
Definition: iio_hmc630x.h:57
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
int hmc630x_remove(struct hmc630x_dev *dev)
Definition: hmc630x.c:254
Definition: hmc630x.h:293
int hmc630x_read(struct hmc630x_dev *dev, uint16_t param, uint8_t *value)
Definition: hmc630x.c:430
int32_t hmc630x_iio_init(struct hmc630x_iio_dev **iiodev, struct hmc630x_iio_init_param *init_param)
Definition: iio_hmc630x.c:433
@ HMC630X_IIO_ATTR_VCO_AVAILABLE
Definition: iio_hmc630x.h:52
@ HMC6301_IIO_ATTR_BB_HPC
Definition: iio_hmc630x.h:63
Structure holding channel attributess.
Definition: iio_types.h:103
#define HMC630X_COMMON_ATTRS
Definition: iio_hmc630x.c:326
@ HMC630X_IIO_ATTR_VCO
Definition: iio_hmc630x.h:51
int32_t hmc630x_iio_init(struct hmc630x_iio_dev **iio_dev, struct hmc630x_iio_init_param *init_param)
Definition: iio_hmc630x.c:433
Header file of Delay functions.
int hmc630x_read_row(struct hmc630x_dev *dev, uint8_t row, uint8_t *val)
Definition: hmc630x.c:324
Definition: ad9361_util.h:69
hmc6301_bb_hpc
Definition: hmc630x.h:263
enum iio_chan_type ch_type
Definition: iio_types.h:172
#define HMC630X_VCO_BANDSEL
Definition: hmc630x.h:199
hmc6301_bb_lpc
Definition: hmc630x.h:255
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
hmc6301_bb_attn
Definition: hmc630x.h:235
hmc630x_iio_attr_id
Definition: iio_hmc630x.h:48
@ HMC6301_IIO_ATTR_BB_LPC
Definition: iio_hmc630x.h:62
int hmc630x_get_temp(struct hmc630x_dev *dev, uint8_t *temp)
Definition: hmc630x.c:538
int hmc6301_get_lna_gain(struct hmc630x_dev *dev, enum hmc6301_lna_attn *gain)
Definition: hmc630x.c:878
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:934
@ HMC630X_IIO_ATTR_VCO_BAND
Definition: iio_hmc630x.h:53
const char * name
Definition: iio_types.h:131
int hmc6301_set_bb_lpc_hpc(struct hmc630x_dev *dev, enum hmc6301_bb_lpc lpc, enum hmc6301_bb_hpc hpc)
Definition: hmc630x.c:982
hmc6300 and hmc6301 device driver header.
@ HMC630X_IIO_ATTR_ENABLED
Definition: iio_hmc630x.h:49
int hmc630x_get_avail_vco(struct hmc630x_dev *dev, const uint64_t **avail, uint8_t *avail_num)
Definition: hmc630x.c:852
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
int hmc630x_get_temp_en(struct hmc630x_dev *dev, bool *enable)
Definition: hmc630x.c:506
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
int hmc6300_get_rf_attn(struct hmc630x_dev *dev, uint8_t *attn)
Definition: hmc630x.c:730
int hmc6300_set_rf_attn(struct hmc630x_dev *dev, uint8_t attn)
Definition: hmc630x.c:715
@ HMC6301_IIO_ATTR_BB_ATTNI_FINE
Definition: iio_hmc630x.h:60
hmc630x_type
Definition: hmc630x.h:221
int hmc630x_set_if_attn(struct hmc630x_dev *dev, uint8_t attn)
Definition: hmc630x.c:675
hmc6301_bb_attn_fine
Definition: hmc630x.h:243
int hmc6301_get_bb_attn(struct hmc630x_dev *dev, enum hmc6301_bb_attn *attn1, enum hmc6301_bb_attn *attn2)
Definition: hmc630x.c:914
int hmc630x_get_enable(struct hmc630x_dev *dev, bool *enable)
Definition: hmc630x.c:619
int32_t hmc630x_iio_remove(struct hmc630x_iio_dev *iiodev)
Definition: iio_hmc630x.c:472
struct hmc630x_init_param * ip
Definition: iio_hmc630x.h:45
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
@ HMC6300
Definition: hmc630x.h:222
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
int hmc630x_get_if_attn(struct hmc630x_dev *dev, uint8_t *attn)
Definition: hmc630x.c:695
@ IIO_TEMP
Definition: iio_types.h:69
enum iio_chan_type type
Definition: iio_types.h:109
#define HMC630X_LOCKDET
Definition: hmc630x.h:206
int hmc630x_set_temp_en(struct hmc630x_dev *dev, bool enable)
Definition: hmc630x.c:481
@ HMC6300_IIO_ATTR_RF_ATTN
Definition: iio_hmc630x.h:56
#define NULL
Definition: wrapper.h:64
int hmc6301_set_lna_gain(struct hmc630x_dev *dev, enum hmc6301_lna_attn gain)
Definition: hmc630x.c:865
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int hmc6301_get_bb_lpc_hpc(struct hmc630x_dev *dev, enum hmc6301_bb_lpc *lpc, enum hmc6301_bb_hpc *hpc)
Definition: hmc630x.c:1002
Header file of hmc6300 and hmc6301 driver extension for IIOD.
int hmc630x_set_enable(struct hmc630x_dev *dev, bool enable)
Definition: hmc630x.c:570
struct hmc630x_vco vco
Definition: hmc630x.c:60
Definition: iio_hmc630x.h:44
@ HMC630X_IIO_ATTR_TEMP_EN
Definition: iio_hmc630x.h:50
Definition: iio_hmc630x.h:39
struct hmc630x_dev * dev
Definition: iio_hmc630x.h:40
int hmc630x_init(struct hmc630x_dev **dev, struct hmc630x_init_param *init)
Definition: hmc630x.c:109
@ HMC6301_IIO_ATTR_BB_ATTN1
Definition: iio_hmc630x.h:58
@ HMC6301_IIO_ATTR_BB_ATTNQ_FINE
Definition: iio_hmc630x.h:61
Header file of utility functions.
@ HMC630X_IIO_ATTR_IF_ATTN
Definition: iio_hmc630x.h:55
int hmc630x_get_vco(struct hmc630x_dev *dev, uint64_t *frequency)
Definition: hmc630x.c:811
int hmc6301_set_bb_attn(struct hmc630x_dev *dev, enum hmc6301_bb_attn attn1, enum hmc6301_bb_attn attn2)
Definition: hmc630x.c:891
struct iio_device * iio_dev
Definition: iio_hmc630x.h:41
hmc6301_lna_attn
Definition: hmc630x.h:227
@ HMC630X_IIO_ATTR_VCO_LOCK
Definition: iio_hmc630x.h:54
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:961
int hmc630x_write_row(struct hmc630x_dev *dev, uint8_t row, uint8_t val)
Definition: hmc630x.c:293
struct iio_attribute * attributes
Definition: iio_types.h:256
int32_t hmc630x_iio_remove(struct hmc630x_iio_dev *desc)
Definition: iio_hmc630x.c:472