|
#define | ADMV1014_REG_SPI_CONTROL 0x00 |
|
#define | ADMV1014_REG_ALARM 0x01 |
|
#define | ADMV1014_REG_ALARM_MASKS 0x02 |
|
#define | ADMV1014_REG_ENABLE 0x03 |
|
#define | ADMV1014_REG_QUAD 0x04 |
|
#define | ADMV1014_REG_LO_AMP_PHASE_ADJUST1 0x05 |
|
#define | ADMV1014_REG_MIXER 0x07 |
|
#define | ADMV1014_REG_IF_AMP 0x08 |
|
#define | ADMV1014_REG_IF_AMP_BB_AMP 0x09 |
|
#define | ADMV1014_REG_BB_AMP_AGC 0x0A |
|
#define | ADMV1014_REG_VVA_TEMP_COMP 0x0B |
|
#define | ADMV1014_PARITY_EN_MSK NO_OS_BIT(15) |
|
#define | ADMV1014_SPI_SOFT_RESET_MSK NO_OS_BIT(14) |
|
#define | ADMV1014_CHIP_ID_MSK NO_OS_GENMASK(11, 4) |
|
#define | ADMV1014_CHIP_ID 0x9 |
|
#define | ADMV1014_REVISION_ID_MSK NO_OS_GENMASK(3, 0) |
|
#define | ADMV1014_PARITY_ERROR_MSK NO_OS_BIT(15) |
|
#define | ADMV1014_TOO_FEW_ERRORS_MSK NO_OS_BIT(14) |
|
#define | ADMV1014_TOO_MANY_ERRORS_MSK NO_OS_BIT(13) |
|
#define | ADMV1014_ADDRESS_RANGE_ERROR_MSK NO_OS_BIT(12) |
|
#define | ADMV1014_IBIAS_PD_MSK NO_OS_BIT(14) |
|
#define | ADMV1014_P1DB_COMPENSATION_MSK NO_OS_GENMASK(13, 12) |
|
#define | ADMV1014_IF_AMP_PD_MSK NO_OS_BIT(11) |
|
#define | ADMV1014_QUAD_BG_PD_MSK NO_OS_BIT(9) |
|
#define | ADMV1014_BB_AMP_PD_MSK NO_OS_BIT(8) |
|
#define | ADMV1014_QUAD_IBIAS_PD_MSK NO_OS_BIT(7) |
|
#define | ADMV1014_DET_EN_MSK NO_OS_BIT(6) |
|
#define | ADMV1014_BG_PD_MSK NO_OS_BIT(5) |
|
#define | ADMV1014_QUAD_SE_MODE_MSK NO_OS_GENMASK(9, 6) |
|
#define | ADMV1014_QUAD_FILTERS_MSK NO_OS_GENMASK(3, 0) |
|
#define | ADMV1014_LOAMP_PH_ADJ_I_FINE_MSK NO_OS_GENMASK(15, 9) |
|
#define | ADMV1014_LOAMP_PH_ADJ_Q_FINE_MSK NO_OS_GENMASK(8, 2) |
|
#define | ADMV1014_MIXER_VGATE_MSK NO_OS_GENMASK(15, 9) |
|
#define | ADMV1014_DET_PROG_MSK NO_OS_GENMASK(6, 0) |
|
#define | ADMV1014_IF_AMP_COARSE_GAIN_I_MSK NO_OS_GENMASK(11, 8) |
|
#define | ADMV1014_IF_AMP_FINE_GAIN_Q_MSK NO_OS_GENMASK(7, 4) |
|
#define | ADMV1014_IF_AMP_FINE_GAIN_I_MSK NO_OS_GENMASK(3, 0) |
|
#define | ADMV1014_IF_AMP_COARSE_GAIN_Q_MSK NO_OS_GENMASK(15, 12) |
|
#define | ADMV1014_BB_AMP_OFFSET_Q_MSK NO_OS_GENMASK(9, 5) |
|
#define | ADMV1014_BB_AMP_OFFSET_I_MSK NO_OS_GENMASK(4, 0) |
|
#define | ADMV1014_BB_AMP_REF_GEN_MSK NO_OS_GENMASK(6, 3) |
|
#define | ADMV1014_BB_AMP_GAIN_CTRL_MSK NO_OS_GENMASK(2, 1) |
|
#define | ADMV1014_BB_SWITCH_HIGH_LOW_CM_MSK NO_OS_BIT(0) |
|
#define | ADMV1014_VVA_TEMP_COMP_MSK NO_OS_GENMASK(15, 0) |
|
#define | ADMV1014_READ NO_OS_BIT(7) |
|
#define | ADMV1014_REG_ADDR_READ_MSK NO_OS_GENMASK(6, 1) |
|
#define | ADMV1014_REG_ADDR_WRITE_MSK NO_OS_GENMASK(22, 17) |
|
#define | ADMV1014_REG_DATA_MSK NO_OS_GENMASK(16, 1) |
|
#define | ADMV1014_NUM_REGULATORS 9 |
|
#define | ADMV1014_BUFF_SIZE_BYTES 3 |
|
#define | ADMV1014_SPI_READ_CMD NO_OS_BIT(7) |
|
#define | ADMV1014_SPI_WRITE_CMD (0 << 7) |
|
|
int | admv1014_spi_write (struct admv1014_dev *dev, uint8_t reg_addr, uint16_t data) |
| Writes data to ADMV1014 over SPI. More...
|
|
int | admv1014_spi_update_bits (struct admv1014_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t data) |
| Update ADMV1014 register. More...
|
|
int | admv1014_spi_read (struct admv1014_dev *dev, uint8_t reg_addr, uint16_t *data) |
| Reads data from ADMV1014 over SPI. More...
|
|
int | admv1014_set_det_prog (struct admv1014_dev *dev, enum admv1014_det_prog det_prog) |
| Set Digital Rx Detector. More...
|
|
int | admv1014_get_det_prog (struct admv1014_dev *dev, enum admv1014_det_prog *det_prog) |
| Get Digital Rx Detector. More...
|
|
int | admv1014_set_bb_amp_gain (struct admv1014_dev *dev, uint8_t gain) |
| Set Baseband Amp Gain. More...
|
|
int | admv1014_get_bb_amp_gain (struct admv1014_dev *dev, uint8_t *gain) |
| Get Baseband Amp Gain. More...
|
|
int | admv1014_set_phase (struct admv1014_dev *dev, uint8_t i_phase, uint8_t q_phase) |
| Set LO Amp Phase. More...
|
|
int | admv1014_get_phase (struct admv1014_dev *dev, uint8_t *i_phase, uint8_t *q_phase) |
| Get LO Amp Phase. More...
|
|
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. More...
|
|
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. More...
|
|
int | admv1014_init (struct admv1014_dev **device, struct admv1014_init_param *init_param) |
| Initializes the admv1014. More...
|
|
int | admv1014_remove (struct admv1014_dev *dev) |
| ADMV1014 Resources Deallocation. More...
|
|
Header file for admv1014 Driver.
- Author
- Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)
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:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
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.