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_alloc.h
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
app_ad9083_remove
int32_t app_ad9083_remove(struct app_ad9083 *app)
Free the resources allocated by app_ad9083_init().
Definition: app_ad9083.c:206
app_ad9083_subclass1_status
int32_t app_ad9083_subclass1_status(struct app_ad9083 *app)
Check AD9083 subclass 1 link status.
Definition: app_ad9083.c:79
GPIO_PS
@ GPIO_PS
Definition: xilinx_gpio.h:56
SPI_PS
@ SPI_PS
Definition: xilinx_spi.h:62
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:88
no_os_delay.h
Header file of Delay functions.
xil_gpio_ops
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific GPIO platform ops structure.
Definition: xilinx_gpio.c:450
app_ad9083_status
int32_t app_ad9083_status(struct app_ad9083 *app)
Check AD9083 link status.
Definition: app_ad9083.c:103
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
app_ad9083_init::uc
uint8_t uc
Definition: app_ad9083.h:14
no_os_clk
Definition: no_os_clk.h:64
no_os_gpio_init_param::number
int32_t number
Definition: no_os_gpio.h:83
no_os_print_log.h
Print messages helpers.
AD9803_RSTB
#define AD9803_RSTB
Definition: parameters.h:44
ad9083_init_param::spi_init
struct no_os_spi_init_param * spi_init
Definition: ad9083.h:53
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
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:62
SPI_AD9083_CS
#define SPI_AD9083_CS
Definition: parameters.h:48
xil_spi_param
struct xil_spi_init_param xil_spi_param
Definition: parameters.c:51
no_os_spi_init_param::device_id
uint32_t device_id
Definition: no_os_spi.h:142
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:82
AD9803_PWDN
#define AD9803_PWDN
Definition: parameters.h:43
ad9083_init
int32_t ad9083_init(struct ad9083_phy **device, struct ad9083_init_param *init_param)
Definition: ad9083.c:337
ad9083_phy
Structure holding ad9083 descriptor.
Definition: ad9083.h:68
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:51
xil_gpio_param
struct xil_gpio_init_param xil_gpio_param
Definition: parameters.c:46
app_ad9083_subclass1_status
int32_t app_ad9083_subclass1_status(struct app_ad9083 *app)
Check AD9083 subclass 1 link status.
Definition: app_ad9083.c:79
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:142
ad9083.h
Header file of ad9083 Driver.
GPIO_DEVICE_ID
#define GPIO_DEVICE_ID
Definition: parameters.h:87
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:62
xilinx_gpio.h
xil_spi_init_param::type
enum xil_spi_type type
Definition: xilinx_spi.h:74
app_ad9083_status
int32_t app_ad9083_status(struct app_ad9083 *app)
Check AD9083 link status.
Definition: app_ad9083.c:103
app_ad9083.h
xil_spi_init_param
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: xilinx_spi.h:72
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:45
ad9083_phy::adi_ad9083
adi_ad9083_device_t adi_ad9083
Definition: ad9083.h:78
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
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:453
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
xil_gpio_init_param
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
app_ad9083_remove
int32_t app_ad9083_remove(struct app_ad9083 *app)
Free the resources allocated by app_ad9083_init().
Definition: app_ad9083.c:206
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:142
no_os_util.h
Header file of utility functions.
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:61
xilinx_spi.h
xil_gpio_init_param::type
enum xil_gpio_type type
Definition: xilinx_gpio.h:66
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
app_ad9083
Structure holding ad9083 app descriptor.
Definition: app_ad9083.h:23