no-OS
Functions
app_ad9083.c File Reference

Implementation of app_ad9083. More...

#include <stdlib.h>
#include "inttypes.h"
#include "app_ad9083.h"
#include "adi_ad9083_bf_jtx_ip.h"
#include "parameters.h"
#include "no_os_spi.h"
#include "xilinx_spi.h"
#include "xilinx_gpio.h"
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
Include dependency graph for app_ad9083.c:

Functions

bool app_ad9083_check_sysref_rate (uint32_t lmfc, uint32_t sysref)
 Check sysref is submultiple of lmfc. More...
 
int32_t app_ad9083_subclass1_status (struct app_ad9083 *app)
 Check AD9083 subclass 1 link status. More...
 
int32_t app_ad9083_status (struct app_ad9083 *app)
 Check AD9083 link status. More...
 
int32_t app_ad9083_init (struct app_ad9083 **app, struct app_ad9083_init *init_param)
 Initialize the AD9083 app. More...
 
int32_t app_ad9083_remove (struct app_ad9083 *app)
 Free the resources allocated by app_ad9083_init(). More...
 

Detailed Description

Implementation of app_ad9083.

Author
Cristian Pop (crist.nosp@m.ian..nosp@m.pop@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2021(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ app_ad9083_check_sysref_rate()

bool app_ad9083_check_sysref_rate ( uint32_t  lmfc,
uint32_t  sysref 
)

Check sysref is submultiple of lmfc.

Parameters
lmfc- Multiframe clock.
sysref- System reference clock.
Returns
true if is submultiple, false otherwise.
Here is the caller graph for this function:

◆ app_ad9083_init()

int32_t app_ad9083_init ( struct app_ad9083 **  app,
struct app_ad9083_init init_param 
)

Initialize the AD9083 app.

Parameters
app- AD9083 app descriptor.
init_param- The structure that contains the app initial parameters.
Returns
0 in case of success, -1 otherwise.
Here is the caller graph for this function:

◆ app_ad9083_remove()

int32_t app_ad9083_remove ( struct app_ad9083 app)

Free the resources allocated by app_ad9083_init().

Parameters
app- App descriptor.
Returns
0 in case of success, -1 otherwise.

◆ app_ad9083_status()

int32_t app_ad9083_status ( struct app_ad9083 app)

Check AD9083 link status.

Parameters
app- AD9083 app descriptor.
Returns
0 in case of success, -1 otherwise.
Here is the caller graph for this function:

◆ app_ad9083_subclass1_status()

int32_t app_ad9083_subclass1_status ( struct app_ad9083 app)

Check AD9083 subclass 1 link status.

Parameters
app- AD9083 app descriptor.
Returns
0 in case of success, -1 otherwise.
Here is the caller graph for this function: