no-OS
Loading...
Searching...
No Matches
axi_jesd204_tx.h File Reference

Driver for the Analog Devices AXI-JESD204-TX peripheral. More...

#include <stdint.h>
#include <stdbool.h>
#include "jesd204.h"
#include "no_os_clk.h"
#include "no_os_gpio.h"
Include dependency graph for axi_jesd204_tx.h:

Classes

struct  jesd204_tx_config
 
struct  axi_jesd204_tx
 
struct  jesd204_tx_init
 JESD204B/C Transmit Peripheral Initialization Structure. More...
 

Functions

int32_t axi_jesd204_tx_lane_clk_enable (struct axi_jesd204_tx *jesd)
 JESD204 TX Lane Clock Enable.
 
int32_t axi_jesd204_tx_lane_clk_disable (struct axi_jesd204_tx *jesd)
 JESD204 TX Lane Clock Disable.
 
uint32_t axi_jesd204_tx_status_read (struct axi_jesd204_tx *jesd)
 Read status of the JESD204 Transmit Peripherial.
 
int32_t axi_jesd204_tx_init_legacy (struct axi_jesd204_tx **jesd204, const struct jesd204_tx_init *init)
 Device initialization.
 
int32_t axi_jesd204_tx_init (struct axi_jesd204_tx **jesd204, const struct jesd204_tx_init *init)
 Device initialization.
 
int32_t axi_jesd204_tx_remove (struct axi_jesd204_tx *jesd)
 Free resoulces allocated for JESD204 TX peripheral.
 

Detailed Description

Driver for the Analog Devices AXI-JESD204-TX peripheral.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2018(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ axi_jesd204_tx_init()

int32_t axi_jesd204_tx_init ( struct axi_jesd204_tx ** jesd204,
const struct jesd204_tx_init * init )

Device initialization.

Device initialization, JED FSM ON

Parameters
jesd204- The device structure.
init- The structure containing the device initial parameters.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ axi_jesd204_tx_init_legacy()

int32_t axi_jesd204_tx_init_legacy ( struct axi_jesd204_tx ** jesd204,
const struct jesd204_tx_init * init )

Device initialization.

Device initialization

Parameters
jesd204- The device structure.
init- The structure containing the device initial parameters.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ axi_jesd204_tx_lane_clk_disable()

int32_t axi_jesd204_tx_lane_clk_disable ( struct axi_jesd204_tx * jesd)

JESD204 TX Lane Clock Disable.

JESD204 TX Lane Clock Disable

Parameters
jesd- The device structure.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ axi_jesd204_tx_lane_clk_enable()

int32_t axi_jesd204_tx_lane_clk_enable ( struct axi_jesd204_tx * jesd)

JESD204 TX Lane Clock Enable.

JESD204 TX Lane Clock Enable

Parameters
jesd- The device structure.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ axi_jesd204_tx_remove()

int32_t axi_jesd204_tx_remove ( struct axi_jesd204_tx * jesd)

Free resoulces allocated for JESD204 TX peripheral.

Resources Deallocation

Parameters
jesd- The device structure.
Returns
Returns 0 in case of success or negative error code.

◆ axi_jesd204_tx_status_read()

uint32_t axi_jesd204_tx_status_read ( struct axi_jesd204_tx * jesd)

Read status of the JESD204 Transmit Peripherial.

JESD204 TX Status Read

Parameters
jesd- The device structure.
Returns
Returns 0 in case of success or negative error code otherwise.