no-OS
Loading...
Searching...
No Matches
iio_ad4080.h File Reference

Implementation of iio_ad4080.c. More...

#include <stddef.h>
#include <errno.h>
#include "no_os_irq.h"
#include "iio.h"
#include "iio_types.h"
#include "ad4080.h"
Include dependency graph for iio_ad4080.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  iio_ad4080_fifo_struct
 
struct  iio_ad4080_desc
 
struct  iio_ad4080_init_param
 Structure holding the AD4080 IIO initialization parameter. More...
 

Macros

#define AD4080_IIO_APP_DEVICE_NAME_LEN   16
 
#define AD4080_FIFO_TIMEOUT   1440000000
 

Functions

int iio_ad4080_init (struct iio_ad4080_desc **iio_ad4080, struct iio_ad4080_init_param *iio_ad4080_init_param)
 Initializes the IIO AD4080 descriptor.
 
void iio_ad4080_fini (struct iio_ad4080_desc *iio_ad4080)
 teardown the ad4080 IIO driver
 
int ad4080_device (struct iio_ad4080_desc *iio_ad4080, struct ad4080_dev **ad4080)
 Checks if the given pointer is a valid AD4080 IIO descriptor.
 
int ad4080_iio_device (struct iio_ad4080_desc *iio_ad4080, struct iio_device *iio_device)
 Initializes the IIO device structure for the AD4080 device.
 

Detailed Description

Implementation of iio_ad4080.c.

Author
Niel Acuna (niel..nosp@m.acun.nosp@m.a@ana.nosp@m.log..nosp@m.com)
Marc Paolo Sosa (MarcP.nosp@m.aolo.nosp@m..Sosa.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

Copyright 2025(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ AD4080_FIFO_TIMEOUT

#define AD4080_FIFO_TIMEOUT   1440000000

◆ AD4080_IIO_APP_DEVICE_NAME_LEN

#define AD4080_IIO_APP_DEVICE_NAME_LEN   16

Function Documentation

◆ ad4080_device()

int ad4080_device ( struct iio_ad4080_desc * iio_ad4080,
struct ad4080_dev ** ad4080 )

Checks if the given pointer is a valid AD4080 IIO descriptor.

Checks if the given pointer is a valid AD4080 IIO descriptor.

Parameters
iio_ad4080- The IIO AD4080 descriptor.
ad4080- Pointer to store the AD4080 device pointer.
Returns
0 on success, or an error code on failure.
Here is the caller graph for this function:

◆ ad4080_iio_device()

int ad4080_iio_device ( struct iio_ad4080_desc * iio_ad4080,
struct iio_device * iio_device )

Initializes the IIO device structure for the AD4080 device.

Parameters
iio_ad4080- The IIO AD4080 descriptor.
iio_device- The IIO device structure to be initialized.
Returns
0 on success, or an error code on failure.
Here is the caller graph for this function:

◆ iio_ad4080_fini()

void iio_ad4080_fini ( struct iio_ad4080_desc * iio_ad4080)

teardown the ad4080 IIO driver

Here is the caller graph for this function:

◆ iio_ad4080_init()

int iio_ad4080_init ( struct iio_ad4080_desc ** iio_ad4080,
struct iio_ad4080_init_param * iio_ad4080_init_param )

Initializes the IIO AD4080 descriptor.

Parameters
iio_ad4080- Pointer to store the initialized IIO AD4080 descriptor.
iio_ad4080_init_param- Initialization parameters for the IIO AD4080 descriptor.
Returns
0 on success, or an error code on failure.
Here is the caller graph for this function: