Implementation of AD6676 Driver. More...
Functions | |
int32_t | ad6676_spi_read (struct ad6676_dev *dev, uint16_t reg_addr, uint8_t *reg_data) |
SPI read from device. | |
int32_t | ad6676_spi_write (struct ad6676_dev *dev, uint16_t reg_addr, uint8_t reg_data) |
SPI write to device. | |
int32_t | ad6676_set_fif (struct ad6676_dev *dev, struct ad6676_init_param *init_param) |
Set the target IF frequency. | |
uint64_t | ad6676_get_fif (struct ad6676_dev *dev, struct ad6676_init_param *init_param) |
Get the target IF frequency. | |
int32_t | ad6676_shuffle_setup (struct ad6676_dev *dev, struct ad6676_init_param *init_param) |
Setup shuffling rate and threshold for the adaptive shuffler. | |
int32_t | ad6676_set_attenuation (struct ad6676_dev *dev, struct ad6676_init_param *init_param) |
Set attenuation in decibels or disable attenuator. | |
int32_t | ad6676_setup (struct ad6676_dev **device, struct ad6676_init_param init_param) |
Initialize the device. | |
int32_t | ad6676_update (struct ad6676_dev *dev, struct ad6676_init_param *init_param) |
Reconfigure device for other target frequency and bandwidth and recalibrate. | |
int32_t | ad6676_test (struct ad6676_dev *dev, uint32_t test_mode) |
Perform an interface test. | |
Implementation of AD6676 Driver.
Copyright 2015(c) Analog Devices, Inc.
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, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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.
uint64_t ad6676_get_fif | ( | struct ad6676_dev * | dev, |
struct ad6676_init_param * | init_param ) |
Get the target IF frequency.
dev | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int32_t ad6676_set_attenuation | ( | struct ad6676_dev * | dev, |
struct ad6676_init_param * | init_param ) |
Set attenuation in decibels or disable attenuator.
dev | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int32_t ad6676_set_fif | ( | struct ad6676_dev * | dev, |
struct ad6676_init_param * | init_param ) |
Set the target IF frequency.
dev | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int32_t ad6676_setup | ( | struct ad6676_dev ** | device, |
struct ad6676_init_param | init_param ) |
Initialize the device.
device | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int32_t ad6676_shuffle_setup | ( | struct ad6676_dev * | dev, |
struct ad6676_init_param * | init_param ) |
Setup shuffling rate and threshold for the adaptive shuffler.
dev | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int32_t ad6676_spi_read | ( | struct ad6676_dev * | dev, |
uint16_t | reg_addr, | ||
uint8_t * | reg_data ) |
SPI read from device.
dev | - The device structure. |
reg_addr | - Adress of register to be read. |
reg_data | - Register data. |
int32_t ad6676_spi_write | ( | struct ad6676_dev * | dev, |
uint16_t | reg_addr, | ||
uint8_t | reg_data ) |
SPI write to device.
dev | - The device structure. |
reg_addr | - Adress of register to be written. |
reg_data | - Register data. |
int32_t ad6676_test | ( | struct ad6676_dev * | dev, |
uint32_t | test_mode ) |
Perform an interface test.
dev | - The device structure. |
test_mode | - Test mode to perform. |
int32_t ad6676_update | ( | struct ad6676_dev * | dev, |
struct ad6676_init_param * | init_param ) |
Reconfigure device for other target frequency and bandwidth and recalibrate.
dev | - The device structure. |
init_param | - The structure that contains the device initial parameters. |