no-OS
axi_qspi_example.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __AXI_QSPI_EXAMPLE_H__
34 #define __AXI_QSPI_EXAMPLE_H__
35 
36 /******************************************************************************/
37 /************************ Functions Declarations ******************************/
38 /******************************************************************************/
39 int example_main();
40 
41 #endif /* __AXI_QSPI_EXAMPLE_H__ */
run_example
int32_t run_example(struct ad3552r_desc *dac)
Definition: axi_qspi_example.c:120
example_main
int example_main()
Definition: axi_qspi_example.c:167
AD3552R_WRITE_DAC_REGS
@ AD3552R_WRITE_DAC_REGS
Definition: ad3552r.h:325
GPIO_BLUE
#define GPIO_BLUE
Definition: parameters.h:61
iio_app_init_param
IIO application descriptor initialization parameters.
Definition: iio_app.h:101
ad3552r_init
int32_t ad3552r_init(struct ad3552r_desc **desc, struct ad3552r_init_param *param)
Definition: ad3552r.c:1330
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
NO_OS_GPIO_OUT
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:47
MAX_BUFF_SAMPLES
#define MAX_BUFF_SAMPLES
Definition: parameters.h:83
iio_ad3552r_get_descriptor
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:277
iio_app_init_param::uart_init_params
struct no_os_uart_init_param uart_init_params
Definition: iio_app.h:115
IIO_APP_DEVICE
#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id)
Definition: iio_app.h:47
GPIO_LDAC_N
#define GPIO_LDAC_N
Definition: parameters.h:55
no_os_spi.h
Header file of SPI Interface.
GPIO_RED
#define GPIO_RED
Definition: parameters.h:59
iio_app.h
Header file of iio_app.
iio_app_desc
IIO application descriptor.
Definition: iio_app.h:80
pr_err
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
iio_data_buffer::buff
void * buff
Definition: iio_app.h:64
NO_OS_IS_ERR_VALUE
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
no_os_delay.h
Header file of Delay functions.
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
ad3552r_axi_write_data
int32_t ad3552r_axi_write_data(struct ad3552r_desc *desc, uint32_t *buf, uint16_t samples, bool cyclic, int cyclic_secs)
Write data samples to dac.
Definition: ad3552r.c:1551
ad3552r_write_samples
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:1702
iio_ad3552r_init
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:228
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
no_os_gpio_init_param::number
int32_t number
Definition: no_os_gpio.h:83
no_os_print_log.h
Print messages helpers.
set_power_up_success_led
void set_power_up_success_led()
Definition: axi_qspi_example.c:109
GPIO_SPI_QPI
#define GPIO_SPI_QPI
Definition: parameters.h:56
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
no_os_gpio_direction_input
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
NO_OS_GPIO_IN
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:48
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
iio_ad3552r_desc
Definition: iio_ad3552r.c:74
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
GPIO_GREEN
#define GPIO_GREEN
Definition: parameters.h:60
default_gpio_param
struct no_os_gpio_init_param default_gpio_param
Definition: common_data.c:88
no_os_error.h
Error codes definition.
pr_debug
#define pr_debug(fmt, args...)
Definition: no_os_print_log.h:129
iio_app_device
Definition: iio_app.h:67
ad3552r_remove
int32_t ad3552r_remove(struct ad3552r_desc *desc)
Definition: ad3552r.c:1437
GPIO_ALERT_N
#define GPIO_ALERT_N
Definition: parameters.h:57
iio_data_buffer
Definition: iio_app.h:62
no_os_gpio_remove
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
init_gpios_to_defaults
int32_t init_gpios_to_defaults()
Definition: axi_qspi_example.c:72
xilinx_gpio.h
TOTAL_GPIOS
#define TOTAL_GPIOS
Definition: parameters.h:62
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
example_main
int example_main()
Definition: axi_qspi_example.c:167
iio_app_run
int iio_app_run(struct iio_app_desc *app)
AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
@ AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
Definition: ad3552r.h:329
AD3552R_MASK_ALL_CH
#define AD3552R_MASK_ALL_CH
Definition: ad3552r.h:157
no_os_gpio_get
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
iio_app_init
int iio_app_init(struct iio_app_desc **app, struct iio_app_init_param app_init_param)
iio_ad3552r.h
NULL
#define NULL
Definition: wrapper.h:64
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
iio_axi_dac.h
Header file of iio_axi_dac.
uart_init_param
struct no_os_uart_init_param uart_init_param
no_os_gpio.h
Header file of GPIO Interface.
ad3552r.h
Header file of ad3552r Driver.
no_os_util.h
Header file of utility functions.
xilinx_spi.h
no_os_gpio_direction_output
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
GPIO_RESET_N
#define GPIO_RESET_N
Definition: parameters.h:54
iio_app_init_param::devices
struct iio_app_device * devices
Definition: iio_app.h:107
no_os_sine_lut_16
const uint16_t no_os_sine_lut_16[512]
default_ad3552r_param
struct ad3552r_init_param default_ad3552r_param
Definition: common_data.c:106
iio_app_init_param::nb_devices
uint32_t nb_devices
Definition: iio_app.h:109
GPIO_OFFSET
#define GPIO_OFFSET
Definition: parameters.h:81
ad3552r_desc
Definition: ad3552r.h:390