no-OS
Classes | Macros | Functions | Variables
iio_adpd188.h File Reference

Header of the ADPD188 IIO driver. More...

#include "adpd188.h"
#include "iio.h"
Include dependency graph for iio_adpd188.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adpd188_iio_init_param
 
struct  adpd188_iio_desc
 

Macros

#define ADPD1080_CHANNEL_NO   8
 
#define ADPD1080_WORD_BIT_SIZE   16
 
#define ADPD1080_BITS_PER_SAMPLE   32
 
#define ADPD1080_WORDS_PER_SAMPLE   (ADPD1080_BITS_PER_SAMPLE / ADPD1080_WORD_BIT_SIZE)
 

Functions

int32_t adpd188_iio_init (struct adpd188_iio_desc **device, struct adpd188_iio_init_param *init_param)
 Initialize the IIO driver and allocate memory. More...
 
int32_t adpd188_iio_remove (struct adpd188_iio_desc *dev)
 Free mmory allocated by adpd188_iio_init(). More...
 

Variables

struct iio_device iio_adpd188_device
 

Detailed Description

Header of the ADPD188 IIO driver.

Author
Andrei Drimbarean (andre.nosp@m.i.dr.nosp@m.imbar.nosp@m.ean@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright 2020(c) Analog Devices, Inc.

All rights reserved.

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

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, 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

◆ ADPD1080_BITS_PER_SAMPLE

#define ADPD1080_BITS_PER_SAMPLE   32

◆ ADPD1080_CHANNEL_NO

#define ADPD1080_CHANNEL_NO   8

◆ ADPD1080_WORD_BIT_SIZE

#define ADPD1080_WORD_BIT_SIZE   16

◆ ADPD1080_WORDS_PER_SAMPLE

#define ADPD1080_WORDS_PER_SAMPLE   (ADPD1080_BITS_PER_SAMPLE / ADPD1080_WORD_BIT_SIZE)

Function Documentation

◆ adpd188_iio_init()

int32_t adpd188_iio_init ( struct adpd188_iio_desc **  device,
struct adpd188_iio_init_param init_param 
)

Initialize the IIO driver and allocate memory.

Parameters
device- Pointer to the IIO driver handler structure.
init_param- Pointer to the IIO driver initialization structure.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adpd188_iio_remove()

int32_t adpd188_iio_remove ( struct adpd188_iio_desc dev)

Free mmory allocated by adpd188_iio_init().

Parameters
dev- Pointer to the IIO driver structure.
Returns
0 in case of success, error code otherwise.

Variable Documentation

◆ iio_adpd188_device

struct iio_device iio_adpd188_device