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

Analog Devices JESD204 clock. More...

#include <stdint.h>
#include "axi_adxcvr.h"
#include "axi_jesd204_rx.h"
#include "axi_jesd204_tx.h"
Include dependency graph for jesd204_clk.h:

Classes

struct  jesd204_clk
 

Functions

int32_t jesd204_clk_enable (struct jesd204_clk *clk)
 
int32_t jesd204_clk_disable (struct jesd204_clk *clk)
 
int32_t jesd204_clk_set_rate (struct jesd204_clk *clk, uint32_t chan, uint32_t rate)
 

Variables

const struct no_os_clk_platform_ops jesd204_clk_ops
 jesd204 specific CLK platform ops structure
 

Detailed Description

Analog Devices JESD204 clock.

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

Copyright 2020(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ jesd204_clk_disable()

int32_t jesd204_clk_disable ( struct jesd204_clk * clk)

Stop the clock.

Parameters
clk- The clock structure.
Returns
0 in case of success, negative error code otherwise.

◆ jesd204_clk_enable()

int32_t jesd204_clk_enable ( struct jesd204_clk * clk)

Start the clock.

Parameters
clk- The clock structure.
Returns
0 in case of success, negative error code otherwise.

◆ jesd204_clk_set_rate()

int32_t jesd204_clk_set_rate ( struct jesd204_clk * clk,
uint32_t chan,
uint32_t rate )

Change the frequency of the clock.

Parameters
clk- The clock structure.
chan- The clock channel.
rate- The desired frequency.
Returns
0 in case of success, negative error code otherwise.

Variable Documentation

◆ jesd204_clk_ops

const struct no_os_clk_platform_ops jesd204_clk_ops
extern

jesd204 specific CLK platform ops structure