Go to the documentation of this file.
39 #ifndef __GENERIC_SPI_EXAMPLE_H__
40 #define __GENERIC_SPI_EXAMPLE_H__
int32_t ad3552r_init(struct ad3552r_desc **desc, struct ad3552r_init_param *param)
Definition: ad3552r.c:1318
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
const uint16_t no_os_sine_lut_16[512]
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:47
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:275
#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id)
Definition: iio_app.h:47
Header file of SPI Interface.
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:263
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
int example_main()
Definition: axi_qspi_example.c:158
void * buff
Definition: iio_app.h:64
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
Header file of Delay functions.
int32_t ad3552r_write_samples(struct ad3552r_desc *desc, uint16_t *data, uint32_t samples, uint32_t ch_mask, enum ad3552r_write_mode mode)
Definition: ad3552r.c:1690
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:226
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int32_t number
Definition: no_os_gpio.h:83
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:48
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
Definition: iio_ad3552r.c:74
struct no_os_gpio_init_param default_gpio_param
Definition: common_data.c:85
#define pr_debug(fmt, args...)
Definition: no_os_print_log.h:129
@ AD3552R_WRITE_INPUT_REGS
Definition: ad3552r.h:327
int32_t ad3552r_remove(struct ad3552r_desc *desc)
Definition: ad3552r.c:1425
int32_t run_example(struct ad3552r_desc *dac)
Definition: generic_spi_example.c:111
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
int example_main()
Definition: generic_spi_example.c:141
int32_t init_gpios_to_defaults()
Definition: generic_spi_example.c:61
int iio_app_run(struct iio_app_desc *app)
#define AD3552R_MASK_ALL_CH
Definition: ad3552r.h:157
int32_t ad3552r_ldac_trigger(struct ad3552r_desc *desc, uint16_t mask, uint8_t is_fast)
Definition: ad3552r.c:1493
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
#define NULL
Definition: wrapper.h:64
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
void set_power_up_success_led()
Definition: generic_spi_example.c:98
Header file of GPIO Interface.
Header file of ad3552r Driver.
Header file of utility functions.
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
struct ad3552r_init_param default_ad3552r_param
Definition: common_data.c:90
Definition: ad3552r.h:390