no-OS
Loading...
Searching...
No Matches
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:

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.
 
int32_t adpd188_iio_remove (struct adpd188_iio_desc *dev)
 Free mmory allocated by adpd188_iio_init().
 

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.

SPDX-License-Identifier: BSD-3-Clause

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.

◆ 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
extern