no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_ad413x.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <math.h>
#include <string.h>
#include "no_os_error.h"
#include "no_os_delay.h"
#include "iio.h"
#include "iio_ad413x.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "ad413x.h"
Include dependency graph for iio_ad413x.c:

Macros

#define AD413X_IIO_CHANN_DEF(nm, ch_nb)
 

Enumerations

enum  ad413x_chan {
  CH0 ,
  CH1 ,
  CH2 ,
  CH3 ,
  CH4 ,
  CH5 ,
  CH6 ,
  CH7 ,
  CH8 ,
  CH9 ,
  CH10 ,
  CH11 ,
  CH12 ,
  CH13 ,
  CH14 ,
  CH15
}
 

Functions

int32_t ad413x_iio_init (struct ad413x_iio_dev **iio_dev, struct ad413x_iio_init_param init_param)
 
int32_t ad413x_iio_remove (struct ad413x_iio_dev *desc)
 

Variables

struct scan_type ad413x_iio_scan_type
 

Macro Definition Documentation

◆ AD413X_IIO_CHANN_DEF

#define AD413X_IIO_CHANN_DEF ( nm,
ch_nb )
Value:
{ \
.name = nm, \
.ch_type = IIO_VOLTAGE, \
.indexed = true, \
.scan_type = &ad413x_iio_scan_type, \
.scan_index = ch_nb, \
.channel = ch_nb, \
.attributes = ad413x_iio_vin_attrs, \
.address = NULL, \
.ch_out = 0, \
}
struct scan_type ad413x_iio_scan_type
Definition iio_ad413x.c:14
@ IIO_VOLTAGE
Definition iio_types.h:56
#define NULL
Definition wrapper.h:64

Enumeration Type Documentation

◆ ad413x_chan

Enumerator
CH0 
CH1 
CH2 
CH3 
CH4 
CH5 
CH6 
CH7 
CH8 
CH9 
CH10 
CH11 
CH12 
CH13 
CH14 
CH15 

Function Documentation

◆ ad413x_iio_init()

int32_t ad413x_iio_init ( struct ad413x_iio_dev ** iio_dev,
struct ad413x_iio_init_param init_param )
Here is the caller graph for this function:

◆ ad413x_iio_remove()

int32_t ad413x_iio_remove ( struct ad413x_iio_dev * desc)
Here is the caller graph for this function:

Variable Documentation

◆ ad413x_iio_scan_type

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