precision-converters-firmware
|
Source file of AD777x IIO interfaces. More...
#include <string.h>
#include "ad777x_user_config.h"
#include "ad777x_support.h"
#include "no_os_error.h"
#include "iio_trigger.h"
#include "no_os_util.h"
#include "no_os_gpio.h"
#include "no_os_irq.h"
#include "ad777x_iio.h"
#include "app_config.h"
#include "common.h"
#include "ad7779.h"
#include "iio.h"
Macros | |
#define | AD777x_CH_ATTR(_name, _idx) |
#define | AD777x_CH_AVAIL_ATTR(_name, _priv) |
#define | AD777x_CHANNEL(_name, _idx) |
#define | CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
#define | AD777x_INTERNAL_REF_VAL 2.5 |
#define | AD777x_EXTERNAL_REF_VAL 2.5 |
#define | AD777X_SAR_RESOLUTION 12 |
#define | AD777X_SAR_REFERENCE 3.3 |
#define | AD777X_SAR_SCALE AD777X_SAR_REFERENCE/(1 << (AD777X_SAR_RESOLUTION-1)) |
#define | SRC_LOAD_UPDATE_HIGH 0x1 |
#define | SRC_LOAD_UPDATE_LOW 0x0 |
#define | AD777X_SRC_ATT_FACTOR 6 |
#define | DATA_BUFFER_SIZE (128000) |
#define | AD777X_IIO_TRIGGER_NAME "ad777x_iio_trigger" |
#define | NUM_OF_IIO_DEVICES 1 |
Functions | |
int32_t | ad777x_trigger_handler (struct iio_device_data *iio_dev_data) |
Push data into IIO buffer when trigger handler IRQ is invoked. More... | |
void | data_capture_callback (void *ctx) |
Interrupt Service Routine to monitor end of conversion event. More... | |
int32_t | iio_ad777x_init (struct iio_device **desc) |
Init for reading/writing and parameterization of a AD777x IIO device. More... | |
int32_t | ad777x_iio_initialize (void) |
Initialize the IIO interface for AD777x IIO device. More... | |
void | ad777x_iio_event_handler (void) |
Run the AD777x IIO event handler. More... | |
Variables | |
ad7779_dev * | p_ad777x_dev_inst = NULL |
struct scan_type | ad777x_scan_type |
struct iio_device_data * | ad777x_iio_dev_data |
bool | data_capture_operation = false |
Source file of AD777x IIO interfaces.
Copyright (c) 2022-2024 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 AD777x_CH_ATTR | ( | _name, | |
_idx | |||
) |
#define AD777x_CH_AVAIL_ATTR | ( | _name, | |
_priv | |||
) |
#define AD777x_CHANNEL | ( | _name, | |
_idx | |||
) |
#define AD777x_EXTERNAL_REF_VAL 2.5 |
#define AD777X_IIO_TRIGGER_NAME "ad777x_iio_trigger" |
#define AD777x_INTERNAL_REF_VAL 2.5 |
#define AD777X_SAR_REFERENCE 3.3 |
#define AD777X_SAR_RESOLUTION 12 |
#define AD777X_SAR_SCALE AD777X_SAR_REFERENCE/(1 << (AD777X_SAR_RESOLUTION-1)) |
#define AD777X_SRC_ATT_FACTOR 6 |
#define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
#define DATA_BUFFER_SIZE (128000) |
#define NUM_OF_IIO_DEVICES 1 |
#define SRC_LOAD_UPDATE_HIGH 0x1 |
#define SRC_LOAD_UPDATE_LOW 0x0 |
enum ad777x_attribute_id |
void ad777x_iio_event_handler | ( | void | ) |
Run the AD777x IIO event handler.
int32_t ad777x_iio_initialize | ( | void | ) |
Initialize the IIO interface for AD777x IIO device.
int32_t ad777x_trigger_handler | ( | struct iio_device_data * | iio_dev_data | ) |
Push data into IIO buffer when trigger handler IRQ is invoked.
iio_dev_data[in] | - IIO device data instance |
void data_capture_callback | ( | void * | ctx | ) |
Interrupt Service Routine to monitor end of conversion event.
Interrupt Service Routine to monitor data ready event.
ctx[in] | - Callback context (unused) |
int32_t iio_ad777x_init | ( | struct iio_device ** | desc | ) |
Init for reading/writing and parameterization of a AD777x IIO device.
desc[in,out] | - IIO device descriptor |
struct iio_device_data* ad777x_iio_dev_data |
struct scan_type ad777x_scan_type |
bool data_capture_operation = false |
ad7779_dev* p_ad777x_dev_inst = NULL |