![]() |
no-OS
|
Implementation of iio_ad9361 This module is a wrapper over "ad9361_api", and it is used by "iio". More...
#include <sys/types.h>#include <inttypes.h>#include <string.h>#include <errno.h>#include "no_os_error.h"#include "iio_ad9361.h"#include "ad9361_api.h"#include "no_os_util.h"#include "no_os_alloc.h"#include "axi_adc_core.h"Macros | |
| #define | AXI_ADC_REG_CLOCKS_PER_PPS 0x00C0 |
| #define | AXI_ADC_REG_CLOCKS_PER_PPS_STATUS 0x00C4 |
| #define | AXI_ADC_CLOCKS_PER_PPS_STAT_INVAL NO_OS_BIT(0) |
| #define | AD9361_VOLTAGE_IN(_idx) |
| #define | AD9361_VOLTAGE_OUT(_idx) |
| #define | AD9361_ALTVOLTAGE_OUT(_idx) |
| #define | AD9361_TEMP(_idx) |
| #define | AD9361_OUT() |
Functions | |
| int32_t | ad9361_parse_fir (struct ad9361_rf_phy *phy, char *data, uint32_t size) |
| void | iio_ad9361_get_dev_descriptor (struct iio_ad9361_desc *desc, struct iio_device **dev_descriptor) |
| Get iio device descriptor. | |
| int32_t | iio_ad9361_init (struct iio_ad9361_desc **desc, struct iio_ad9361_init_param *init) |
| Init for reading/writing and parameterization of a ad9361 device. | |
| int32_t | iio_ad9361_remove (struct iio_ad9361_desc *desc) |
| Release resources. | |
Variables | |
| const char * | ad9361_ensm_states [12] |
| struct iio_attribute | voltage_output_attributes [] |
| struct iio_attribute | voltage_input_attributes [] |
| struct iio_attribute | altvoltage_attributes [] |
| struct iio_attribute | out_attributes [] |
| struct iio_attribute | temp0_attributes [] |
Implementation of iio_ad9361 This module is a wrapper over "ad9361_api", and it is used by "iio".
Copyright 2019(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define AD9361_ALTVOLTAGE_OUT | ( | _idx | ) |
| #define AD9361_OUT | ( | ) |
| #define AD9361_TEMP | ( | _idx | ) |
| #define AD9361_VOLTAGE_IN | ( | _idx | ) |
| #define AD9361_VOLTAGE_OUT | ( | _idx | ) |
| #define AXI_ADC_CLOCKS_PER_PPS_STAT_INVAL NO_OS_BIT(0) |
| #define AXI_ADC_REG_CLOCKS_PER_PPS 0x00C0 |
| #define AXI_ADC_REG_CLOCKS_PER_PPS_STATUS 0x00C4 |
|
extern |
Parse the FIR filter file/buffer.
| phy | The AD9361 state structure. |
| data | Pointer to buffer. |
| size | Buffer size. |
| void iio_ad9361_get_dev_descriptor | ( | struct iio_ad9361_desc * | desc, |
| struct iio_device ** | dev_descriptor ) |
Get iio device descriptor.
| desc | - Descriptor. |
| dev_descriptor | - iio device descriptor. |
| int32_t iio_ad9361_init | ( | struct iio_ad9361_desc ** | desc, |
| struct iio_ad9361_init_param * | init ) |
Init for reading/writing and parameterization of a ad9361 device.
| desc | - Descriptor. |
| init | - Configuration structure. |
| int32_t iio_ad9361_remove | ( | struct iio_ad9361_desc * | desc | ) |
Release resources.
| desc | - Descriptor. |
|
extern |
State machine modes.
| struct iio_attribute altvoltage_attributes[] |
| struct iio_attribute out_attributes[] |
| struct iio_attribute temp0_attributes[] |
| struct iio_attribute voltage_input_attributes[] |
| struct iio_attribute voltage_output_attributes[] |