Implementation of admv1013 Driver. More...
Macros | |
#define | MIXER_GATE_0_TO_1_8_V(x) |
#define | MIXER_GATE_1_8_TO_2_6_V(x) |
Functions | |
int | admv1013_spi_write (struct admv1013_dev *dev, uint8_t reg_addr, uint16_t data) |
Writes data to ADMV1013 over SPI. | |
int | admv1013_spi_read (struct admv1013_dev *dev, uint8_t reg_addr, uint16_t *data) |
Reads data from ADMV1013 over SPI. | |
int | admv1013_spi_update_bits (struct admv1013_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t data) |
Update ADMV1013 register. | |
int | admv1013_set_iq_phase (struct admv1013_dev *dev, uint8_t i_phase, uint8_t q_phase) |
Set I/Q Phase Accuracy. | |
int | admv1013_get_iq_phase (struct admv1013_dev *dev, uint8_t *i_phase, uint8_t *q_phase) |
Get I/Q Phase Accuracy. | |
int | admv1013_set_iq_offset (struct admv1013_dev *dev, uint8_t i_offset_p, uint8_t i_offset_n, uint8_t q_offset_p, uint8_t q_offset_n) |
Set I/Q Offset Accuracy. | |
int | admv1013_get_iq_offset (struct admv1013_dev *dev, uint8_t *i_offset_p, uint8_t *i_offset_n, uint8_t *q_offset_p, uint8_t *q_offset_n) |
Get I/Q Offset Accuracy. | |
int | admv1013_init (struct admv1013_dev **device, struct admv1013_init_param *init_param) |
Initializes the admv1013. | |
int | admv1013_remove (struct admv1013_dev *dev) |
ADMV1013 Resources Deallocation. | |
Implementation of admv1013 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.
#define MIXER_GATE_0_TO_1_8_V | ( | x | ) |
#define MIXER_GATE_1_8_TO_2_6_V | ( | x | ) |
int admv1013_get_iq_offset | ( | struct admv1013_dev * | dev, |
uint8_t * | i_offset_p, | ||
uint8_t * | i_offset_n, | ||
uint8_t * | q_offset_p, | ||
uint8_t * | q_offset_n ) |
Get I/Q Offset Accuracy.
dev | - The device structure. |
i_offset_p | - The I Data Positive. |
i_offset_n | - The I Data Negative. |
q_offset_p | - The Q Data Positive. |
q_offset_n | - The Q Data Negative. |
int admv1013_get_iq_phase | ( | struct admv1013_dev * | dev, |
uint8_t * | i_phase, | ||
uint8_t * | q_phase ) |
Get I/Q Phase Accuracy.
dev | - The device structure. |
i_phase | - The I Data. |
q_phase | - The Q Data. |
int admv1013_init | ( | struct admv1013_dev ** | device, |
struct admv1013_init_param * | init_param ) |
Initializes the admv1013.
device | - The device structure. |
init_param | - The structure containing the device initial parameters. |
int admv1013_remove | ( | struct admv1013_dev * | dev | ) |
ADMV1013 Resources Deallocation.
dev | - The device structure. |
int admv1013_set_iq_offset | ( | struct admv1013_dev * | dev, |
uint8_t | i_offset_p, | ||
uint8_t | i_offset_n, | ||
uint8_t | q_offset_p, | ||
uint8_t | q_offset_n ) |
Set I/Q Offset Accuracy.
dev | - The device structure. |
i_offset_p | - The I Data Positive. |
i_offset_n | - The I Data Negative. |
q_offset_p | - The Q Data Positive. |
q_offset_n | - The Q Data Negative. |
int admv1013_set_iq_phase | ( | struct admv1013_dev * | dev, |
uint8_t | i_phase, | ||
uint8_t | q_phase ) |
Set I/Q Phase Accuracy.
dev | - The device structure. |
i_phase | - The I Data. |
q_phase | - The Q Data. |
int admv1013_spi_read | ( | struct admv1013_dev * | dev, |
uint8_t | reg_addr, | ||
uint16_t * | data ) |
Reads data from ADMV1013 over SPI.
dev | - The device structure. |
reg_addr | - The register address. |
data | - Data read from the device. |
int admv1013_spi_update_bits | ( | struct admv1013_dev * | dev, |
uint8_t | reg_addr, | ||
uint16_t | mask, | ||
uint16_t | data ) |
Update ADMV1013 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 admv1013_spi_write | ( | struct admv1013_dev * | dev, |
uint8_t | reg_addr, | ||
uint16_t | data ) |
Writes data to ADMV1013 over SPI.
dev | - The device structure. |
reg_addr | - The register address. |
data | - Data value to write. |