no-OS
Loading...
Searching...
No Matches
clkgen_routines.c File Reference

AXI clkgen setup for ADRV903X project. More...

#include "clkgen_routines.h"
#include "app_config.h"
#include "parameters.h"
Include dependency graph for clkgen_routines.c:

Functions

int clkgen_setup (struct axi_clkgen **rx_clkgen, struct axi_clkgen **tx_clkgen)
 Initialize and set rates for RX and TX AXI clkgen instances.
 
int clkgen_remove (struct axi_clkgen *rx_clkgen, struct axi_clkgen *tx_clkgen)
 Remove AXI clkgen instances.
 

Detailed Description

AXI clkgen setup for ADRV903X project.

Author
Analog Devices Inc.

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ clkgen_remove()

int clkgen_remove ( struct axi_clkgen * rx_clkgen,
struct axi_clkgen * tx_clkgen )

Remove AXI clkgen instances.

Parameters
rx_clkgen- RX clkgen instance.
tx_clkgen- TX clkgen instance.
Returns
0

◆ clkgen_setup()

int clkgen_setup ( struct axi_clkgen ** rx_clkgen,
struct axi_clkgen ** tx_clkgen )

Initialize and set rates for RX and TX AXI clkgen instances.

Both clkgens share the same parent clock (DEVICE_CLK) and output rate (lane_rate / 66 for JESD204C).

Parameters
rx_clkgen- Output pointer for the RX clkgen instance.
tx_clkgen- Output pointer for the TX clkgen instance.
Returns
0 on success, negative error code on failure.