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

Implementation of IIO CN0391 driver. More...

#include <stdio.h>
#include "iio_cn0391.h"
#include "cn0391.h"
#include "no_os_error.h"
Include dependency graph for iio_cn0391.c:

Macros

#define CN0391_IIO_VOLTAGE_CHANNEL(idx)
 

Variables

struct iio_device iio_ad7124_cn0391_device
 

Detailed Description

Implementation of IIO CN0391 driver.

Author
Mircea Vlasin (mirce.nosp@m.a.vl.nosp@m.asin@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ CN0391_IIO_VOLTAGE_CHANNEL

#define CN0391_IIO_VOLTAGE_CHANNEL ( idx)
Value:
{ \
.name = "CH"#idx, \
.ch_type = IIO_VOLTAGE, \
.channel = idx, \
.attributes = cn0391_ad7124_ch_attrs, \
.ch_out = false, \
.indexed = true, \
}
@ IIO_VOLTAGE
Definition iio_types.h:33

Variable Documentation

◆ iio_ad7124_cn0391_device

struct iio_device iio_ad7124_cn0391_device
Initial value:
= {
.num_ch = NO_OS_ARRAY_SIZE(cn0391_ad7124_channels),
.channels = cn0391_ad7124_channels,
.attributes = NULL,
.debug_attributes = NULL,
.buffer_attributes = NULL,
.pre_enable = NULL,
.post_disable = NULL,
.read_dev = NULL,
}
#define NO_OS_ARRAY_SIZE(x)
Definition no_os_util.h:27
#define NULL
Definition wrapper.h:67