Implementation of Main Function.
More...
#include <inttypes.h>
#include "common_data.h"
#include "no_os_error.h"
#include "no_os_print_log.h"
#include "no_os_spi.h"
#include "no_os_gpio.h"
#include "no_os_util.h"
#include "no_os_delay.h"
#include "xilinx_spi.h"
#include "xilinx_gpio.h"
#include "ad3552r.h"
#include <xparameters.h>
#include <xil_cache.h>
Implementation of Main Function.
- Author
- Mihail Chindris (mihai.nosp@m.l.ch.nosp@m.indri.nosp@m.s@an.nosp@m.alog..nosp@m.com)
Copyright 2020(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ example_main()
Basic example main execution.
- Returns
- ret - Result of the example execution. If working correctly, will execute continuously the while(1) loop and will not return.
◆ init_gpios_to_defaults()
| int32_t init_gpios_to_defaults |
( |
| ) |
|
◆ run_example()
◆ set_power_up_success_led()
| void set_power_up_success_led |
( |
| ) |
|
◆ default_ad3552r_param
Initial value:= {
.spi_param = {
.chip_select = 0,
.max_speed_hz = 66000000,
},
.sdo_drive_strength = 1,
.channels = {
[0] = {
.en = 1,
},
[1] = {
.en = 1,
}
},
.crc_en = 0,
.single_transfer = 1,
}
@ AD3552R_ID
Definition ad3552r.h:144
@ AD3552R_CH_OUTPUT_RANGE_NEG_10__10V
Definition ad3552r.h:188
struct no_os_gpio_init_param gpio_ldac_param
Definition common_data.c:41
struct no_os_gpio_init_param gpio_reset_param
Definition common_data.c:47
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition no_os_spi.h:41
@ NO_OS_SPI_MODE_0
Definition no_os_spi.h:26
const struct no_os_spi_platform_ops xil_spi_ops
Xilinx platform specific SPI platform ops structure.
Definition xilinx_spi.c:409
◆ no_os_sine_lut_16
| const uint16_t no_os_sine_lut_16[512] |
|
extern |