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

Header file of the ADAR300X IIO driver. More...

#include <stdint.h>
#include "iio.h"
#include "adar300x.h"
Include dependency graph for iio_adar300x.h:

Classes

struct  adar300x_iio_dev
 ADAR300X IIO device descriptor. More...
 
struct  adar300x_iio_dev_init_param
 ADAR300X IIO device initialization parameters. More...
 

Macros

#define ADAR300X_IIO_BEAMS   4
 

Enumerations

enum  adar300x_iio_mode {
  ADAR300X_IIO_DIRECT ,
  ADAR300X_IIO_MEMORY ,
  ADAR300X_IIO_FIFO ,
  ADAR300X_IIO_INST_DIRECT ,
  ADAR300X_IIO_RESET ,
  ADAR300X_IIO_MUTE
}
 Beam mode as seen through IIO. More...
 

Functions

int adar300x_iio_init (struct adar300x_iio_dev **iio_dev, struct adar300x_iio_dev_init_param *init_param)
 Initializes the ADAR300X IIO device.
 
int adar300x_iio_remove (struct adar300x_iio_dev *desc)
 Frees the resources allocated by adar300x_iio_init().
 

Detailed Description

Header file of the ADAR300X IIO driver.

Author
Stefan Popa (stefa.nosp@m.n.po.nosp@m.pa@an.nosp@m.alog.nosp@m..com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ ADAR300X_IIO_BEAMS

#define ADAR300X_IIO_BEAMS   4

Enumeration Type Documentation

◆ adar300x_iio_mode

Beam mode as seen through IIO.

The first four match enum adar300x_beam_mode. Reset and mute are not modes of the device but commands, applied by the next update.

Enumerator
ADAR300X_IIO_DIRECT 
ADAR300X_IIO_MEMORY 
ADAR300X_IIO_FIFO 
ADAR300X_IIO_INST_DIRECT 
ADAR300X_IIO_RESET 
ADAR300X_IIO_MUTE 

Function Documentation

◆ adar300x_iio_init()

int adar300x_iio_init ( struct adar300x_iio_dev ** iio_dev,
struct adar300x_iio_dev_init_param * init_param )

Initializes the ADAR300X IIO device.

Initialize the ADAR300X IIO device.

Parameters
iio_dev- The IIO device descriptor.
init_param- The initialization parameters.
Returns
- 0 in case of success or negative error code otherwise.

◆ adar300x_iio_remove()

int adar300x_iio_remove ( struct adar300x_iio_dev * desc)

Frees the resources allocated by adar300x_iio_init().

Free the resources allocated by adar300x_iio_init().

Parameters
desc- The IIO device descriptor.
Returns
- 0 in case of success or negative error code otherwise.