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 "no_os_alloc.h"
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.
SPDX-License-Identifier: BSD-3-Clause
◆ 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.
◆ 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.
◆ app_ad9083_remove()
| int32_t app_ad9083_remove |
( |
struct app_ad9083 * | app | ) |
|
Free the resources allocated by app_ad9083_init().
- Parameters
-
- 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.
◆ 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.