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

Source file of IIO MAX22017 Driver. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "no_os_error.h"
#include "no_os_units.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "max22017.h"
#include "iio_max22017.h"
#include "iio_types.h"
Include dependency graph for iio_max22017.c:

Macros

#define MAX22017_CHANNEL(_addr)
 
#define MAX22017_IIO_CNFG_MASK(x, y)
 

Functions

int max22017_iio_read_avail (const char *const *array_avail, char *buf, uint32_t len)
 
int max22017_iio_init (struct max22017_iio_desc **iio_desc, struct max22017_iio_desc_init_param *init_param)
 
int max22017_iio_remove (struct max22017_iio_desc *iio_desc)
 

Detailed Description

Source file of IIO MAX22017 Driver.

Author
Radu Sabau (radu..nosp@m.saba.nosp@m.u@ana.nosp@m.log..nosp@m.com)

Copyright 2024(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ MAX22017_CHANNEL

#define MAX22017_CHANNEL ( _addr)
Value:
{ \
.ch_type = IIO_VOLTAGE, \
.indexed = 1, \
.channel = _addr, \
.address = _addr, \
.ch_out = true, \
.attributes = max22017_attrs, \
}
@ IIO_VOLTAGE
Definition iio_types.h:33

◆ MAX22017_IIO_CNFG_MASK

#define MAX22017_IIO_CNFG_MASK ( x,
y )
Value:
NO_OS_BIT((x) + (y))
#define NO_OS_BIT(x)
Definition no_os_util.h:23

Function Documentation

◆ max22017_iio_init()

int max22017_iio_init ( struct max22017_iio_desc ** iio_desc,
struct max22017_iio_desc_init_param * init_param )

IIO descriptor initialize function.

◆ max22017_iio_read_avail()

int max22017_iio_read_avail ( const char *const * array_avail,
char * buf,
uint32_t len )

◆ max22017_iio_remove()

int max22017_iio_remove ( struct max22017_iio_desc * iio_desc)

Free resources allocated by the iio_init() function.