no-OS
Loading...
Searching...
No Matches
iio_ad7799.c File Reference

Implementation of AD7799 iio. More...

#include "iio_types.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "ad7799.h"
#include "no_os_util.h"
#include "no_os_error.h"
Include dependency graph for iio_ad7799.c:

Macros

#define AD7799_IIO_CHANN_DEF(nm, ch)
 

Variables

struct iio_device const ad7799_iio_descriptor
 

Detailed Description

Implementation of AD7799 iio.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2020(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ AD7799_IIO_CHANN_DEF

#define AD7799_IIO_CHANN_DEF ( nm,
ch )
Value:
{ \
.name = nm, \
.ch_type = IIO_VOLTAGE, \
.channel = ch, \
.scan_type = &channel_scan_type, \
.attributes = ad7799_iio_channel_attributes, \
.ch_out = false, \
.indexed = 1, \
.diferential = true, \
}
@ IIO_VOLTAGE
Definition iio_types.h:33

Variable Documentation

◆ ad7799_iio_descriptor

struct iio_device const ad7799_iio_descriptor
Initial value:
= {
.num_ch = 3,
.channels = ad7799_iio_channels,
.attributes = ad7799_iio_attributes,
.debug_attributes = NULL,
.buffer_attributes = NULL,
.debug_reg_read = ad7799_iio_reg_read,
.debug_reg_write = ad7799_iio_reg_write,
}
#define NULL
Definition wrapper.h:67

IIO Descriptor