42#define ADUCM3029_TIMERS_NUMS 3
43#define ADUCM3029_GPIOS_NUMS 44
45struct iio_aducm3029_desc {
47 struct no_os_timer_desc *timer[ADUCM3029_TIMERS_NUMS];
48 struct no_os_pwm_desc *pwm[ADUCM3029_TIMERS_NUMS];
49 struct no_os_gpio_desc *gpio[ADUCM3029_GPIOS_NUMS];
50 uint32_t current_gpio;
53extern struct iio_aducm3029_desc g_aducm3029_desc;
54extern struct iio_device const iio_aducm3029_desc;
56int get_pwm_attr(
void *
device,
char *buf, uint32_t len,
58int set_pwm_attr(
void *
device,
char *buf, uint32_t len,
61int get_global_attr(
void *
device,
char *buf, uint32_t len,
63int set_global_attr(
void *
device,
char *buf, uint32_t len,
66int get_gpio_attr(
void *
device,
char *buf, uint32_t len,
68int set_gpio_attr(
void *
device,
char *buf, uint32_t len,
71int32_t iio_aducm3029_adc_set_mask(
struct iio_aducm3029_desc *desc,
73int32_t iio_aducm3029_adc_read(
struct iio_aducm3029_desc *desc, uint16_t *buff,
76enum iio_pwm_attributes {
83enum iio_gpio_attributes {
86 GPIO_DIRECTION_OUTPUT,
90enum global_attributes {
Interface of aducm3029_adc.c.
Header file for iio_types.
Definition ad9361_util.h:63
Structure holding channel attributess.
Definition iio_types.h:94
Structure holding channels and attributes of a device.
Definition iio_types.h:238