no-OS
|
Driver for the ADI AXI-ADXCVR Module. More...
Go to the source code of this file.
Classes | |
struct | adxcvr |
ADI JESD204B/C AXI_ADXCVR Highspeed Transceiver Device structure. More... | |
struct | adxcvr_init |
Functions | |
int32_t | adxcvr_drp_read (struct adxcvr *xcvr, uint32_t drp_port, uint32_t reg, uint32_t *val) |
AXI ADXCVR DPR Port Read. More... | |
int32_t | adxcvr_drp_write (struct adxcvr *xcvr, uint32_t drp_port, uint32_t reg, uint32_t val) |
AXI ADXCVR DPR Port Write. More... | |
int32_t | adxcvr_status_error (struct adxcvr *xcvr) |
AXI ADXCVR Status Read. More... | |
int32_t | adxcvr_clk_enable (struct adxcvr *xcvr) |
AXI ADXCVR Clock Enable. More... | |
int32_t | adxcvr_clk_disable (struct adxcvr *xcvr) |
AXI ADXCVR Clock Disable. More... | |
int32_t | adxcvr_init (struct adxcvr **ad_xcvr, const struct adxcvr_init *init) |
adxcvr_init More... | |
int32_t | adxcvr_remove (struct adxcvr *xcvr) |
adxcvr_remove More... | |
int32_t | adxcvr_clk_set_rate (struct adxcvr *xcvr, uint32_t rate, uint32_t parent_rate) |
AXI ADXCVR Clock Set Rate. More... | |
int32_t | adxcvr_write (struct adxcvr *xcvr, uint32_t reg_addr, uint32_t reg_val) |
adxcvr_write More... | |
int32_t | adxcvr_read (struct adxcvr *xcvr, uint32_t reg_addr, uint32_t *reg_val) |
adxcvr_read More... | |
Driver for the ADI AXI-ADXCVR Module.
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
int32_t adxcvr_clk_disable | ( | struct adxcvr * | xcvr | ) |
AXI ADXCVR Clock Disable.
AXI ADXCVR Clock Disable
xcvr | - The device structure. |
int32_t adxcvr_clk_enable | ( | struct adxcvr * | xcvr | ) |
AXI ADXCVR Clock Enable.
AXI ADXCVR Clock Enable
xcvr | - The device structure. |
int32_t adxcvr_clk_set_rate | ( | struct adxcvr * | xcvr, |
uint32_t | rate, | ||
uint32_t | parent_rate | ||
) |
AXI ADXCVR Clock Set Rate.
AXI ADXCVR Clock Set Rate
xcvr | - The device structure. |
rate | - The output rate. |
parent_rate | - The parent rate. |
int32_t adxcvr_drp_read | ( | struct adxcvr * | xcvr, |
uint32_t | drp_port, | ||
uint32_t | reg, | ||
uint32_t * | val | ||
) |
AXI ADXCVR DPR Port Read.
AXI ADXCVR DPR Port Read
xcvr | - The device structure. |
drp_port | - The DRP Port. |
reg | - DRP Register address. |
val | - Data read. |
int32_t adxcvr_drp_write | ( | struct adxcvr * | xcvr, |
uint32_t | drp_port, | ||
uint32_t | reg, | ||
uint32_t | val | ||
) |
AXI ADXCVR DPR Port Write.
AXI ADXCVR DPR Port Write
xcvr | - The device structure. |
drp_port | - The DRP Port. |
reg | - DRP Register address. |
val | - Data to be written. |
int32_t adxcvr_init | ( | struct adxcvr ** | ad_xcvr, |
const struct adxcvr_init * | init | ||
) |
AXI ADXCVR Device Initialization
ad_xcvr | - The device structure. |
init | - The structure containing the device initial parameters. |
int32_t adxcvr_read | ( | struct adxcvr * | xcvr, |
uint32_t | reg_addr, | ||
uint32_t * | reg_val | ||
) |
adxcvr_read
AXI ADXCVR Read
adxcvr_read
xcvr | - Device Structure. |
reg_addr | - The register address. |
reg_val | - Data read from the device. |
int32_t adxcvr_remove | ( | struct adxcvr * | xcvr | ) |
adxcvr_remove
AXI ADXCVR Resources Deallocation
adxcvr_remove
xcvr | - The device structure. |
int32_t adxcvr_status_error | ( | struct adxcvr * | xcvr | ) |
AXI ADXCVR Status Read.
AXI ADXCVRS Status Read
xcvr | - The device structure. |
int32_t adxcvr_write | ( | struct adxcvr * | xcvr, |
uint32_t | reg_addr, | ||
uint32_t | reg_val | ||
) |
adxcvr_write
AXI ADXCVR Write
adxcvr_write
xcvr | - Device Structure. |
reg_addr | - The register address. |
reg_val | - Data value to write. |