no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
app_clocking.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __APP_CLOCKING_H
34#define __APP_CLOCKING_H
35
36#include <stdint.h>
37#include "adi_hal.h"
38
39#if defined(ZU11EG) || defined(FMCOMMS8_ZCU102)
40#define DEV_REFCLK_A 0
41#define DEV_SYSREF_A 1
42#define DEV_REFCLK_B 2
43#define DEV_SYSREF_B 3
44#define JESD_REFCLK_TX_OBS_AB 4
45#define JESD_REFCLK_RX_AB 5
46#if defined(ZU11EG)
47#define CORE_CLK_TX_OBS_AB 6
48#define CORE_CLK_RX_AB 7
49#define FPGA_SYSREF_TX_OBS_AB 8
50#define FPGA_SYSREF_RX_AB 9
51#elif defined(FMCOMMS8_ZCU102)
52#define FPGA_SYSREF_TX_OBS_AB 6
53#define FPGA_SYSREF_RX_AB 7
54#define CORE_CLK_TX_OBS_AB 8
55#define CORE_CLK_RX_AB 9
56#endif
57#else
58#define DEV_CLK 13
59#define FMC_CLK 1
60#define DEV_SYSREF 12
61#define FMC_SYSREF 3
62#endif
63
64adiHalErr_t clocking_init(uint32_t rx_div40_rate_hz,
65 uint32_t tx_div40_rate_hz,
66 uint32_t rx_os_div40_rate_hz,
67 uint32_t device_clock_khz,
68 uint32_t lmfc_rate_hz);
69
70void clocking_deinit(void);
71
72extern struct ad9528_dev* ad9528_device;
73
74#endif /* __APP_CLOCKING_H */
Contains Talise ADI HAL function prototypes type definitions for adi_hal.c.
adiHalErr_t
Enum of possible Errors Detected by HAL layer to be communicated to ADI APIs.
Definition adi_hal.h:42
void clocking_deinit(void)
Definition app_clocking.c:728
adiHalErr_t clocking_init(uint32_t rx_div40_rate_hz, uint32_t tx_div40_rate_hz, uint32_t rx_os_div40_rate_hz, uint32_t device_clock_khz, uint32_t lmfc_rate_hz)
Definition app_clocking.c:95
struct ad9528_dev * ad9528_device
Definition ad9528.h:470