precision-converters-firmware
|
Implementation of AD719X IIO application interfaces. More...
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <errno.h>
#include "ad719x_iio.h"
#include "ad719x.h"
#include "ad719x_user_config.h"
#include "ad719x_support.h"
#include "app_config.h"
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_print_log.h"
#include "iio_trigger.h"
#include "common.h"
Macros | |
#define | AD719X_CHN_ATTR(_name, _priv) |
#define | AD719X_CHN_AVAIL_ATTR(_name, _priv) |
#define | AD719X_IIO_CH(_idx, chn_no) |
#define | DATA_BUFFER_SIZE (32768) |
#define | NUM_OF_IIO_DEVICES 1 |
#define | ad719x_IIO_TRIGGER_NAME "ad719x_iio_trigger" |
#define | BYTES_PER_SAMPLE (STORAGE_BITS/8) |
#define | AD719X_DEFAULT_SCALE(x) ((AD719X_DEFAULT_REF_VOLTAGE / (ADC_MAX_COUNT_UNIPOLAR * x)) * 1000) |
#define | AD7194_CH(chn) chn |
#define | BUF_READ_TIMEOUT 0xffffffff |
Enumerations | |
enum | ad719x_attribute_ids { ADC_RANGE , ADC_BRIDGE_SWITCH , ADC_OPERATING_MODE , ADC_SAMPLING_FREQUENCY , ADC_RAW , ADC_SCALE , ADC_OFFSET } |
Functions | |
void | burst_capture_callback (void *context) |
Interrupt Service Routine to monitor data ready event. More... | |
int32_t | ad719x_iio_initialize (void) |
Initialize the ad719x IIO Interface. More... | |
void | ad719x_iio_event_handler (void) |
Run the ad719x IIO event handler. More... | |
Variables | |
struct ad719x_dev * | p_ad719x_dev_inst = NULL |
struct iio_device * | p_iio_ad719x_dev |
struct scan_type | ad719x_iio_scan_type |
Implementation of AD719X IIO application interfaces.
Copyright (c) 2021-24 Analog Devices, Inc. All rights reserved.
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 AD7194_CH | ( | chn | ) | chn |
#define AD719X_CHN_ATTR | ( | _name, | |
_priv | |||
) |
#define AD719X_CHN_AVAIL_ATTR | ( | _name, | |
_priv | |||
) |
#define AD719X_DEFAULT_SCALE | ( | x | ) | ((AD719X_DEFAULT_REF_VOLTAGE / (ADC_MAX_COUNT_UNIPOLAR * x)) * 1000) |
#define AD719X_IIO_CH | ( | _idx, | |
chn_no | |||
) |
#define ad719x_IIO_TRIGGER_NAME "ad719x_iio_trigger" |
#define BUF_READ_TIMEOUT 0xffffffff |
#define BYTES_PER_SAMPLE (STORAGE_BITS/8) |
#define DATA_BUFFER_SIZE (32768) |
#define NUM_OF_IIO_DEVICES 1 |
enum ad719x_attribute_ids |
void ad719x_iio_event_handler | ( | void | ) |
Run the ad719x IIO event handler.
int32_t ad719x_iio_initialize | ( | void | ) |
Initialize the ad719x IIO Interface.
void burst_capture_callback | ( | void * | context | ) |
Interrupt Service Routine to monitor data ready event.
Interrupt Service Routine to monitor end of conversion event.
context[in] | - Callback context (unused) |
struct scan_type ad719x_iio_scan_type |
struct ad719x_dev* p_ad719x_dev_inst = NULL |
struct iio_device* p_iio_ad719x_dev |