no-OS
app_ad9083.h
Go to the documentation of this file.
1 #ifndef __APP_AD9083_H
2 #define __APP_AD9083_H
3 
4 #include <stdint.h>
5 #include <stdbool.h>
6 #include "ad9083.h"
7 
13  /* Settings selection */
14  uint8_t uc;
15  /* jesd receive clock */
17 };
18 
23 struct app_ad9083 {
24  /* Structure holding ad9083 device descriptor */
26 };
27 
28 /* Initialize the ad9083 app. */
29 int32_t app_ad9083_init(struct app_ad9083 **app,
30  struct app_ad9083_init *init_param);
31 
32 /* Remove the app. */
33 int32_t app_ad9083_remove(struct app_ad9083 *app);
34 
35 /* Check SYSREF clock. */
36 bool app_ad9083_check_sysref_rate(uint32_t lmfc, uint32_t sysref);
37 
38 /* Check AD9083 subclass 1 status. */
39 int32_t app_ad9083_subclass1_status(struct app_ad9083 *app);
40 
41 /* Check AD9083 status. */
42 int32_t app_ad9083_status(struct app_ad9083 *app);
43 
44 #endif /* __APP_AD9083_H */
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
app_ad9083_remove
int32_t app_ad9083_remove(struct app_ad9083 *app)
Free the resources allocated by app_ad9083_init().
Definition: app_ad9083.c:211
app_ad9083_subclass1_status
int32_t app_ad9083_subclass1_status(struct app_ad9083 *app)
Check AD9083 subclass 1 link status.
Definition: app_ad9083.c:84
no_os_spi.h
Header file of SPI Interface.
parameters.h
Parameters Definitions.
pr_err
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:80
no_os_delay.h
Header file of Delay functions.
app_ad9083_status
int32_t app_ad9083_status(struct app_ad9083 *app)
Check AD9083 link status.
Definition: app_ad9083.c:108
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:99
app_ad9083_init::uc
uint8_t uc
Definition: app_ad9083.h:14
no_os_clk
Definition: no_os_clk.h:59
xil_gpio_param
struct xil_gpio_init_param xil_gpio_param
Definition: ad7616_sdz.c:86
no_os_gpio_init_param::number
int32_t number
Definition: no_os_gpio.h:89
no_os_print_log.h
Print messages helpers.
AD9803_RSTB
#define AD9803_RSTB
Definition: parameters.h:50
app_ad9083_init
Structure holding the parameters for ad9083 app initialization.
Definition: app_ad9083.h:12
app_ad9083_check_sysref_rate
bool app_ad9083_check_sysref_rate(uint32_t lmfc, uint32_t sysref)
Check sysref is submultiple of lmfc.
Definition: app_ad9083.c:67
SPI_AD9083_CS
#define SPI_AD9083_CS
Definition: parameters.h:54
xil_gpio_ops
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific gpio platform ops structure.
Definition: xilinx_gpio.c:455
no_os_spi_init_param::device_id
uint32_t device_id
Definition: no_os_spi.h:114
no_os_error.h
Error codes definition.
ad9083_reg_get
int32_t ad9083_reg_get(struct ad9083_phy *device, uint32_t reg, uint8_t *readval)
Read register.
Definition: ad9083.c:87
AD9803_PWDN
#define AD9803_PWDN
Definition: parameters.h:49
ad9083_init
int32_t ad9083_init(struct ad9083_phy **device, struct ad9083_init_param *init_param)
Definition: ad9083.c:342
ad9083_init_param::spi_init
no_os_spi_init_param * spi_init
Definition: ad9083.h:59
ad9083_phy
Structure holding ad9083 descriptor.
Definition: ad9083.h:74
app_ad9083_init::jesd_rx_clk
struct no_os_clk * jesd_rx_clk
Definition: app_ad9083.h:16
ad9083_init_param
Structure holding the parameters for ad9083 initialization.
Definition: ad9083.h:57
app_ad9083_subclass1_status
int32_t app_ad9083_subclass1_status(struct app_ad9083 *app)
Check AD9083 subclass 1 link status.
Definition: app_ad9083.c:84
app_ad9083_init
int32_t app_ad9083_init(struct app_ad9083 **app, struct app_ad9083_init *init_param)
Initialize the AD9083 app.
Definition: app_ad9083.c:147
ad9083.h
Header file of ad9083 Driver.
app_ad9083_check_sysref_rate
bool app_ad9083_check_sysref_rate(uint32_t lmfc, uint32_t sysref)
Check sysref is submultiple of lmfc.
Definition: app_ad9083.c:67
xil_spi_init_param::type
enum xil_spi_type type
Definition: spi_extra.h:80
app_ad9083_status
int32_t app_ad9083_status(struct app_ad9083 *app)
Check AD9083 link status.
Definition: app_ad9083.c:108
app_ad9083.h
xil_spi_init_param
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: spi_extra.h:78
app_ad9083::ad9083_phy
struct ad9083_phy * ad9083_phy
Definition: app_ad9083.h:25
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
ad9083_phy::adi_ad9083
adi_ad9083_device_t adi_ad9083
Definition: ad9083.h:84
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: delay.c:118
SPI_PS
@ SPI_PS
Definition: spi_extra.h:68
xil_spi_ops
const struct no_os_spi_platform_ops xil_spi_ops
Spi engine platform specific SPI platform ops structure.
Definition: xilinx_spi.c:456
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
GPIO_DEVICE_ID
#define GPIO_DEVICE_ID
Definition: parameters.h:77
xil_gpio_init_param
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: gpio_extra.h:70
app_ad9083_remove
int32_t app_ad9083_remove(struct app_ad9083 *app)
Free the resources allocated by app_ad9083_init().
Definition: app_ad9083.c:211
app_ad9083_init
int32_t app_ad9083_init(struct app_ad9083 **app, struct app_ad9083_init *init_param)
Initialize the AD9083 app.
Definition: app_ad9083.c:147
no_os_util.h
Implementation of utility functions.
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:66
xil_gpio_init_param::type
enum xil_gpio_type type
Definition: gpio_extra.h:72
GPIO_PS
@ GPIO_PS
Definition: gpio_extra.h:62
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:112
app_ad9083
Structure holding ad9083 app descriptor.
Definition: app_ad9083.h:23