no-OS
app_talise.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __APP_TALISE_H
40 #define __APP_TALISE_H
41 
42 #include <stdint.h>
43 #include "talise_types.h"
44 #include "adi_hal.h"
45 
47  TALISE_A = 0u,
48 #if defined(ZU11EG) || defined(FMCOMMS8_ZCU102)
49  TALISE_B,
50 #endif
51 
53 };
54 
55 #define TALISE_NUM_SUBCHANNELS 2 /* I - in-phase and Q - quadrature channels */
56 #define TALISE_NUM_CHAIN_CHANNELS 2 /* channels per RX/TX chain */
57 #define TALISE_NUM_CHANNELS (TALISE_DEVICE_ID_MAX * TALISE_NUM_CHAIN_CHANNELS * TALISE_NUM_SUBCHANNELS)
58 
59 adiHalErr_t talise_setup(taliseDevice_t * const talDev,
60  taliseInit_t * const talInit);
61 int talise_multi_chip_sync(taliseDevice_t * pd, int step);
62 void talise_shutdown(taliseDevice_t * const pd);
63 bool adrv9009_check_sysref_rate(uint32_t lmfc, uint32_t sysref);
64 
65 #endif /* __APP_TALISE_H */
app_talise.h
Talise initialization and control routines.
app_config.h
Config file for ADRV9009 project.
ADIHAL_spiWriteByte
adiHalErr_t ADIHAL_spiWriteByte(void *devHalInfo, uint16_t addr, uint8_t data)
Performs a Single SPI write to an ADI Device.
Definition: no_os_hal.c:164
SYSREF_CONT_OFF
@ SYSREF_CONT_OFF
Definition: adi_hal.h:62
app_jesd.h
JESD setup and initialization routines.
talise_multi_chip_sync
int talise_multi_chip_sync(taliseDevice_t *pd, int step)
Definition: app_talise.c:495
TALISE_A
@ TALISE_A
Definition: app_talise.h:47
ADIHAL_spiReadByte
adiHalErr_t ADIHAL_spiReadByte(void *devHalInfo, uint16_t addr, uint8_t *readdata)
Performs a Single SPI Read from an ADI Device.
Definition: no_os_hal.c:197
no_os_delay.h
Header file of Delay functions.
SYSREF_PULSE
@ SYSREF_PULSE
Definition: adi_hal.h:63
adi_hal.h
Contains Talise ADI HAL function prototypes type definitions for adi_hal.c.
tx_jesd
struct axi_jesd204_tx * tx_jesd
Definition: app_jesd.c:57
TALISE_DEVICE_ID_MAX
@ TALISE_DEVICE_ID_MAX
Definition: app_talise.h:52
taliseDeviceId
taliseDeviceId
Definition: app_talise.h:46
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: delay.c:130
axi_jesd204_tx_lane_clk_enable
int32_t axi_jesd204_tx_lane_clk_enable(struct axi_jesd204_tx *jesd)
JESD204 TX Lane Clock Enable.
Definition: axi_jesd204_tx.c:142
no_os_error.h
Error codes definition.
rx_os_jesd
struct axi_jesd204_rx * rx_os_jesd
Definition: app_jesd.c:63
ADIHAL_sysrefReq
adiHalErr_t ADIHAL_sysrefReq(void *devHalInfo, sysrefReqMode_t mode)
Performs a SYSREF request to the clock generation device.
Definition: no_os_hal.c:145
talise_shutdown
void talise_shutdown(taliseDevice_t *const pd)
Definition: app_talise.c:743
adrv9009_check_sysref_rate
bool adrv9009_check_sysref_rate(uint32_t lmfc, uint32_t sysref)
Definition: app_talise.c:76
talise_setup
adiHalErr_t talise_setup(taliseDevice_t *const pd, taliseInit_t *const pi)
Definition: app_talise.c:87
talInit
taliseInit_t talInit
Definition: talise_config.c:82
ADIHAL_OK
@ ADIHAL_OK
Definition: adi_hal.h:36
axi_jesd204_tx_lane_clk_disable
int32_t axi_jesd204_tx_lane_clk_disable(struct axi_jesd204_tx *jesd)
JESD204 TX Lane Clock Disable.
Definition: axi_jesd204_tx.c:155
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
talise_multi_chip_sync
int talise_multi_chip_sync(taliseDevice_t *pd, int step)
Definition: app_talise.c:495
axi_jesd204_rx.h
Driver for the Analog Devices AXI-JESD204-RX peripheral.
rx_jesd
struct axi_jesd204_rx * rx_jesd
Definition: app_jesd.c:56
SYSREF_CONT_ON
@ SYSREF_CONT_ON
Definition: adi_hal.h:61
no_os_util.h
Implementation of utility functions.
axi_jesd204_rx_lane_clk_disable
int32_t axi_jesd204_rx_lane_clk_disable(struct axi_jesd204_rx *jesd)
JESD204 RX Lane Clock Disable.
Definition: axi_jesd204_rx.c:198
talise_shutdown
void talise_shutdown(taliseDevice_t *const pd)
Definition: app_talise.c:743
adrv9009_check_sysref_rate
bool adrv9009_check_sysref_rate(uint32_t lmfc, uint32_t sysref)
Definition: app_talise.c:76
talise_setup
adiHalErr_t talise_setup(taliseDevice_t *const talDev, taliseInit_t *const talInit)
Definition: app_talise.c:87
axi_jesd204_rx_lane_clk_enable
int32_t axi_jesd204_rx_lane_clk_enable(struct axi_jesd204_rx *jesd)
JESD204 RX Lane Clock Enable.
Definition: axi_jesd204_rx.c:185
axi_jesd204_tx.h
Driver for the Analog Devices AXI-JESD204-TX peripheral.
adiHalErr_t
adiHalErr_t
Enum of possible Errors Detected by HAL layer to be communicated to ADI APIs.
Definition: adi_hal.h:35