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"
Macros | |
#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. More... | |
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. More... | |
int32_t | iio_ad9361_remove (struct iio_ad9361_desc *desc) |
Release resources. More... | |
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.
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 AD9361_ALTVOLTAGE_OUT | ( | _idx | ) |
#define AD9361_OUT | ( | ) |
#define AD9361_TEMP | ( | _idx | ) |
#define AD9361_VOLTAGE_IN | ( | _idx | ) |
#define AD9361_VOLTAGE_OUT | ( | _idx | ) |
int32_t ad9361_parse_fir | ( | struct ad9361_rf_phy * | phy, |
char * | data, | ||
uint32_t | size | ||
) |
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. |
const char* ad9361_ensm_states[12] |
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[] |