precision-converters-firmware
|
Implementation of AD3530R IIO Application Interface. More...
#include <string.h>
#include "app_config.h"
#include "ad3530r.h"
#include "ad3530r_iio.h"
#include "ad3530r_user_config.h"
#include "ad3530r_regs.h"
#include "ad3530r_support.h"
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_gpio.h"
#include "no_os_pwm.h"
#include "no_os_alloc.h"
#include "common.h"
#include "iio_trigger.h"
Macros | |
#define | AD3530R_CHN_ATTR(_name, _priv) |
#define | AD3530R_CHN_AVAIL_ATTR(_name, _priv) |
#define | AD3530R_CH(_name, _idx, _type) |
#define | BYTES_PER_SAMPLE sizeof(uint16_t) |
#define | BYTES_PER_SAMPLE_WITH_ADDRESS 2 * sizeof(uint16_t) |
#define | CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
#define | DATA_BUFFER_SIZE (65536) |
#define | BYTE_SIZE (uint32_t)8 |
#define | BYTE_MASK (uint32_t)0xff |
#define | NUM_OF_IIO_DEVICES 1 |
#define | AD3530R_IIO_TRIGGER_NAME "ad3530r_iio_trigger" |
Enumerations | |
enum | ad3530r_attribute_ids { DAC_INPUT , DAC_RAW , DAC_OFFSET , DAC_SCALE , DAC_CHN_OP_SELECT , DAC_CHN_SW_LDAC_EN , DAC_CHN_HW_LDAC_EN , DAC_VREF_SELECT , DAC_RANGE , DAC_MUX_OUT , DAC_SW_LDAC , DAC_HW_LDAC , DAC_ALL_CH_OP_MODE , DAC_MULTI_INPUT_CH , DAC_MULTI_DAC_CH , DAC_SAMPLING_FREQUENCY , DAC_STREAMING_TECHNIQUE } |
Functions | |
int32_t | ad3530r_iio_initialize (void) |
Initialize the IIO interface for AD3530R IIO device. | |
void | ad3530r_iio_event_handler (void) |
Run the AD3530R IIO event handler. | |
Variables | |
struct ad3530r_desc * | ad3530r_dev_desc = NULL |
struct iio_device * | ad3530r_iio_dev |
struct scan_type | ad3530r_iio_scan_type |
enum reg_access_mode | streaming_option = SINGLE_INSTRUCTION_MODE |
uint32_t | num_of_samples |
struct stm32_spi_init_param * | spi_init_param |
uint8_t * | global_iio_buff |
Implementation of AD3530R IIO Application Interface.
This module acts as an interface for AD3530R IIO device
Copyright (c) 2022-24 Analog Devices, Inc.
This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
#define AD3530R_CH | ( | _name, | |
_idx, | |||
_type | |||
) |
#define AD3530R_CHN_ATTR | ( | _name, | |
_priv | |||
) |
#define AD3530R_CHN_AVAIL_ATTR | ( | _name, | |
_priv | |||
) |
#define AD3530R_IIO_TRIGGER_NAME "ad3530r_iio_trigger" |
#define BYTE_MASK (uint32_t)0xff |
#define BYTE_SIZE (uint32_t)8 |
#define BYTES_PER_SAMPLE sizeof(uint16_t) |
#define BYTES_PER_SAMPLE_WITH_ADDRESS 2 * sizeof(uint16_t) |
#define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
#define DATA_BUFFER_SIZE (65536) |
#define NUM_OF_IIO_DEVICES 1 |
void ad3530r_iio_event_handler | ( | void | ) |
Run the AD3530R IIO event handler.
This function monitors the new IIO client event
int32_t ad3530r_iio_initialize | ( | void | ) |
Initialize the IIO interface for AD3530R IIO device.
struct ad3530r_desc* ad3530r_dev_desc = NULL |
struct iio_device* ad3530r_iio_dev |
struct scan_type ad3530r_iio_scan_type |
uint8_t* global_iio_buff |
uint32_t num_of_samples |
struct stm32_spi_init_param* spi_init_param |
enum reg_access_mode streaming_option = SINGLE_INSTRUCTION_MODE |