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

Implementation of iio_ad7124.c. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "no_os_error.h"
#include "iio.h"
#include "iio_ad7124.h"
#include "no_os_util.h"
#include "ad7124.h"
Include dependency graph for iio_ad7124.c:

Macros

#define AD7124_IIO_NUM_CH   9 /* 8 voltage + 1 temp */
 
#define AD7124_IIO_CHANN_DEF(nm, ch1, ch2, hw_ch, sidx)
 

Variables

struct scan_type ad7124_iio_scan_type
 
struct iio_device iio_ad7124_device
 

Detailed Description

Implementation of iio_ad7124.c.

Author
Andrei Drimbarean (andre.nosp@m.i.dr.nosp@m.imbar.nosp@m.ean@.nosp@m.analo.nosp@m.g.co.nosp@m.m)
Radu Sabau (radu..nosp@m.saba.nosp@m.u@ana.nosp@m.log..nosp@m.com)

Copyright 2020, 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ AD7124_IIO_CHANN_DEF

#define AD7124_IIO_CHANN_DEF ( nm,
ch1,
ch2,
hw_ch,
sidx )
Value:
{ \
.name = nm, \
.ch_type = IIO_VOLTAGE, \
.channel = ch1, \
.channel2 = ch2, \
.address = hw_ch, \
.scan_index = sidx, \
.scan_type = &ad7124_iio_scan_type, \
.attributes = voltage_channel_attributes, \
.ch_out = 0, \
.indexed = 1, \
.diferential = true, \
}
struct scan_type ad7124_iio_scan_type
Definition iio_ad7124.c:64
@ IIO_VOLTAGE
Definition iio_types.h:33

◆ AD7124_IIO_NUM_CH

#define AD7124_IIO_NUM_CH   9 /* 8 voltage + 1 temp */

Variable Documentation

◆ ad7124_iio_scan_type

struct scan_type ad7124_iio_scan_type
Initial value:
= {
.sign = 'u',
.realbits = 24,
.storagebits = 32,
.shift = 0,
.is_big_endian = true,
}

◆ iio_ad7124_device

struct iio_device iio_ad7124_device
Initial value:
= {
.num_ch = NO_OS_ARRAY_SIZE(ad7124_channels),
.channels = ad7124_channels,
.attributes = NULL,
.debug_attributes = NULL,
.buffer_attributes = NULL,
.pre_enable = iio_ad7124_update_active_channels,
.post_disable = iio_ad7124_close_channels,
.read_dev = iio_ad7124_read_samples,
.debug_reg_read = ad7124_iio_reg_read,
.debug_reg_write = ad7124_iio_reg_write
}
#define NO_OS_ARRAY_SIZE(x)
Definition no_os_util.h:27
#define NULL
Definition wrapper.h:67