Implementation of admv1014 Driver. More...
Functions | |
int | admv1014_spi_write (struct admv1014_dev *dev, uint8_t reg_addr, uint16_t data) |
Writes data to ADMV1014 over SPI. | |
int | admv1014_spi_read (struct admv1014_dev *dev, uint8_t reg_addr, uint16_t *data) |
Reads data from ADMV1014 over SPI. | |
int | admv1014_spi_update_bits (struct admv1014_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t data) |
Update ADMV1014 register. | |
int | admv1014_set_det_prog (struct admv1014_dev *dev, enum admv1014_det_prog det_prog) |
Set Digital Rx Detector. | |
int | admv1014_get_det_prog (struct admv1014_dev *dev, enum admv1014_det_prog *det_prog) |
Get Digital Rx Detector. | |
int | admv1014_set_bb_amp_gain (struct admv1014_dev *dev, uint8_t gain) |
Set Baseband Amp Gain. | |
int | admv1014_get_bb_amp_gain (struct admv1014_dev *dev, uint8_t *gain) |
Get Baseband Amp Gain. | |
int | admv1014_set_phase (struct admv1014_dev *dev, uint8_t i_phase, uint8_t q_phase) |
Set LO Amp Phase. | |
int | admv1014_get_phase (struct admv1014_dev *dev, uint8_t *i_phase, uint8_t *q_phase) |
Get LO Amp Phase. | |
int | admv1014_set_if_amp_gain (struct admv1014_dev *dev, uint8_t i_coarse_gain, uint8_t q_coarse_gain, uint8_t i_fine_gain, uint8_t q_fine_gain) |
Set IF Amp Gain. | |
int | admv1014_get_if_amp_gain (struct admv1014_dev *dev, uint8_t *i_coarse_gain, uint8_t *q_coarse_gain, uint8_t *i_fine_gain, uint8_t *q_fine_gain) |
Get IF Amp Gain. | |
int | admv1014_init (struct admv1014_dev **device, struct admv1014_init_param *init_param) |
Initializes the admv1014. | |
int | admv1014_remove (struct admv1014_dev *dev) |
ADMV1014 Resources Deallocation. | |
Implementation of admv1014 Driver.
Copyright 2022(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.
int admv1014_get_bb_amp_gain | ( | struct admv1014_dev * | dev, |
uint8_t * | gain ) |
Get Baseband Amp Gain.
dev | - The device structure. |
gain | - Digital Rx Detector gain. |
int admv1014_get_det_prog | ( | struct admv1014_dev * | dev, |
enum admv1014_det_prog * | det_prog ) |
Get Digital Rx Detector.
dev | - The device structure. |
det_prog | - Digital Rx Detector gain. |
int admv1014_get_if_amp_gain | ( | struct admv1014_dev * | dev, |
uint8_t * | i_coarse_gain, | ||
uint8_t * | q_coarse_gain, | ||
uint8_t * | i_fine_gain, | ||
uint8_t * | q_fine_gain ) |
Get IF Amp Gain.
dev | - The device structure. |
i_coarse_gain | - The I coarse gain value. |
q_coarse_gain | - The I coarse gain value. |
i_fine_gain | - The Q fine gain value. |
q_fine_gain | - The Q fine gain value. |
int admv1014_get_phase | ( | struct admv1014_dev * | dev, |
uint8_t * | i_phase, | ||
uint8_t * | q_phase ) |
Get LO Amp Phase.
dev | - The device structure. |
i_phase | - The I phase adjust value. |
q_phase | - The Q phase adjust value. |
int admv1014_init | ( | struct admv1014_dev ** | device, |
struct admv1014_init_param * | init_param ) |
Initializes the admv1014.
device | - The device structure. |
init_param | - The structure containing the device initial parameters. |
int admv1014_remove | ( | struct admv1014_dev * | dev | ) |
ADMV1014 Resources Deallocation.
dev | - The device structure. |
int admv1014_set_bb_amp_gain | ( | struct admv1014_dev * | dev, |
uint8_t | gain ) |
Set Baseband Amp Gain.
dev | - The device structure. |
gain | - Digital Rx Detector gain. |
int admv1014_set_det_prog | ( | struct admv1014_dev * | dev, |
enum admv1014_det_prog | det_prog ) |
Set Digital Rx Detector.
dev | - The device structure. |
det_prog | - Digital Rx Detector gain. |
int admv1014_set_if_amp_gain | ( | struct admv1014_dev * | dev, |
uint8_t | i_coarse_gain, | ||
uint8_t | q_coarse_gain, | ||
uint8_t | i_fine_gain, | ||
uint8_t | q_fine_gain ) |
Set IF Amp Gain.
dev | - The device structure. |
i_coarse_gain | - The I coarse gain value. |
q_coarse_gain | - The I coarse gain value. |
i_fine_gain | - The Q fine gain value. |
q_fine_gain | - The Q fine gain value. |
int admv1014_set_phase | ( | struct admv1014_dev * | dev, |
uint8_t | i_phase, | ||
uint8_t | q_phase ) |
Set LO Amp Phase.
dev | - The device structure. |
i_phase | - The I phase adjust value. |
q_phase | - The Q phase adjust value. |
int admv1014_spi_read | ( | struct admv1014_dev * | dev, |
uint8_t | reg_addr, | ||
uint16_t * | data ) |
Reads data from ADMV1014 over SPI.
dev | - The device structure. |
reg_addr | - The register address. |
data | - Data read from the device. |
int admv1014_spi_update_bits | ( | struct admv1014_dev * | dev, |
uint8_t | reg_addr, | ||
uint16_t | mask, | ||
uint16_t | data ) |
Update ADMV1014 register.
dev | - The device structure. |
reg_addr | - The register address. |
mask | - Mask for specific register bits to be updated. |
data | - Data written to the device (requires prior bit shifting). |
int admv1014_spi_write | ( | struct admv1014_dev * | dev, |
uint8_t | reg_addr, | ||
uint16_t | data ) |
Writes data to ADMV1014 over SPI.
dev | - The device structure. |
reg_addr | - The register address. |
data | - Data value to write. |