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

Implements clkgen init and settings to be used by adrv904x examples. More...

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

Functions

int clkgen_setup (struct axi_clkgen **rx_clkgen, struct axi_clkgen **tx_clkgen, struct axi_clkgen **orx_clkgen, uint8_t jesd204c_en)
 Init and set rates for axi_clkgen components.
 
int clkgen_remove (struct axi_clkgen *rx_clkgen, struct axi_clkgen *tx_clkgen, struct axi_clkgen *orx_clkgen)
 remove axi_clkgen structs.
 

Detailed Description

Implements clkgen init and settings to be used by adrv904x examples.

Author
GMois (georg.nosp@m.e.mo.nosp@m.is@an.nosp@m.alog.nosp@m..com)

Copyright 2025(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,
struct axi_clkgen * orx_clkgen )

remove axi_clkgen structs.

Parameters
rx_clkgen- axi_clkgen for Rx path
tx_clkgen- axi_clkgen for Tx path
orx_clkgen- axi_clkgen for ORx path
Returns
0

◆ clkgen_setup()

int clkgen_setup ( struct axi_clkgen ** rx_clkgen,
struct axi_clkgen ** tx_clkgen,
struct axi_clkgen ** orx_clkgen,
uint8_t jesd204c_en )

Init and set rates for axi_clkgen components.

Parameters
**rx_clkgen- axi_clkgen for Rx path
**tx_clkgen- axi_clkgen for Tx path
**orx_clkgen- axi_clkgen for ORx path
jesd204c_en- 1 if JESD204C
Returns
0 in case of success, negative value otherwise