no-OS
jesd204_clk.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef JESD204_CLK_H_
40 #define JESD204_CLK_H_
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 #include <stdint.h>
46 #include "axi_adxcvr.h"
47 #include "axi_jesd204_rx.h"
48 #include "axi_jesd204_tx.h"
49 
50 /******************************************************************************/
51 /*************************** Types Declarations *******************************/
52 /******************************************************************************/
53 struct jesd204_clk {
54  struct adxcvr *xcvr;
57 };
58 
59 /******************************************************************************/
60 /************************ Functions Declarations ******************************/
61 /******************************************************************************/
62 /* Start the clock. */
63 int32_t jesd204_clk_enable(struct jesd204_clk *clk);
64 /* Stop the clock. */
65 int32_t jesd204_clk_disable(struct jesd204_clk *clk);
66 /* Change the frequency of the clock. */
67 int32_t jesd204_clk_set_rate(struct jesd204_clk *clk, uint32_t chan,
68  uint32_t rate);
69 #endif
jesd204_clk_disable
int32_t jesd204_clk_disable(struct jesd204_clk *clk)
Definition: jesd204_clk.c:85
jesd204_clk::xcvr
struct adxcvr * xcvr
Definition: jesd204_clk.h:54
adxcvr
ADI JESD204B/C AXI_ADXCVR Highspeed Transceiver Device structure.
Definition: altera_adxcvr.h:95
adxcvr::ref_rate_khz
uint32_t ref_rate_khz
Definition: axi_adxcvr.h:72
jesd204_clk_set_rate
int32_t jesd204_clk_set_rate(struct jesd204_clk *clk, uint32_t chan, uint32_t rate)
Definition: jesd204_clk.c:117
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
axi_adxcvr.h
Driver for the ADI AXI-ADXCVR Module.
jesd204_clk_enable
int32_t jesd204_clk_enable(struct jesd204_clk *clk)
Definition: jesd204_clk.c:55
no_os_error.h
Error codes definition.
adxcvr_clk_set_rate
int32_t adxcvr_clk_set_rate(struct adxcvr *xcvr, uint32_t rate, uint32_t parent_rate)
AXI ADXCVR Clock Set Rate.
Definition: axi_adxcvr.c:222
jesd204_clk.h
Analog Devices JESD204 clock.
jesd204_clk_disable
int32_t jesd204_clk_disable(struct jesd204_clk *clk)
Definition: jesd204_clk.c:85
jesd204_clk::jesd_rx
struct axi_jesd204_rx * jesd_rx
Definition: jesd204_clk.h:55
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
jesd204_clk_enable
int32_t jesd204_clk_enable(struct jesd204_clk *clk)
Definition: jesd204_clk.c:55
axi_jesd204_tx
Definition: axi_jesd204_tx.h:82
adxcvr_clk_disable
int32_t adxcvr_clk_disable(struct adxcvr *xcvr)
AXI ADXCVR Clock Disable.
Definition: axi_adxcvr.c:335
axi_jesd204_rx
Definition: axi_jesd204_rx.h:69
jesd204_clk_set_rate
int32_t jesd204_clk_set_rate(struct jesd204_clk *clk, uint32_t chan, uint32_t rate)
Definition: jesd204_clk.c:117
axi_jesd204_rx.h
Driver for the Analog Devices AXI-JESD204-RX peripheral.
jesd204_clk
Definition: jesd204_clk.h:53
jesd204_clk::jesd_tx
struct axi_jesd204_tx * jesd_tx
Definition: jesd204_clk.h:56
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
adxcvr_clk_enable
int32_t adxcvr_clk_enable(struct adxcvr *xcvr)
AXI ADXCVR Clock Enable.
Definition: axi_adxcvr.c:322
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.