no-OS
Public Attributes | List of all members
iio_device Struct Reference

Structure holding channels and attributes of a device. More...

#include <iio_types.h>

Collaboration diagram for iio_device:
Collaboration graph
[legend]

Public Attributes

struct no_os_irq_ctrl_descirq_desc
 
uint16_t num_ch
 
struct iio_channelchannels
 
struct iio_attributeattributes
 
struct iio_attributedebug_attributes
 
struct iio_attributebuffer_attributes
 
int32_t(* read_dev )(void *dev, void *buff, uint32_t nb_samples)
 
int32_t(* write_dev )(void *dev, void *buff, uint32_t nb_samples)
 
int32_t(* pre_enable )(void *dev, uint32_t mask)
 
int32_t(* post_disable )(void *dev)
 
int32_t(* submit )(struct iio_device_data *dev)
 
int32_t(* trigger_handler )(struct iio_device_data *dev)
 
int32_t(* debug_reg_read )(void *dev, uint32_t reg, uint32_t *readval)
 
int32_t(* debug_reg_write )(void *dev, uint32_t reg, uint32_t writeval)
 

Detailed Description

Structure holding channels and attributes of a device.

Member Data Documentation

◆ attributes

struct iio_attribute* iio_device::attributes

Array of attributes. Last one should have its name set to NULL

◆ buffer_attributes

struct iio_attribute* iio_device::buffer_attributes

Array of attributes. Last one should have its name set to NULL

◆ channels

struct iio_channel* iio_device::channels

List of channels

◆ debug_attributes

struct iio_attribute* iio_device::debug_attributes

Array of attributes. Last one should have its name set to NULL

◆ debug_reg_read

int32_t(* iio_device::debug_reg_read) (void *dev, uint32_t reg, uint32_t *readval)

◆ debug_reg_write

int32_t(* iio_device::debug_reg_write) (void *dev, uint32_t reg, uint32_t writeval)

◆ irq_desc

struct no_os_irq_ctrl_desc* iio_device::irq_desc

Structure for existing initialized irq controllers. Has to be set to NULL if there isn't any irq controller initialized.

◆ num_ch

uint16_t iio_device::num_ch

Device number of channels

◆ post_disable

int32_t(* iio_device::post_disable) (void *dev)

Called after disabling buffer

◆ pre_enable

int32_t(* iio_device::pre_enable) (void *dev, uint32_t mask)

Called before enabling buffer

◆ read_dev

int32_t(* iio_device::read_dev) (void *dev, void *buff, uint32_t nb_samples)

◆ submit

int32_t(* iio_device::submit) (struct iio_device_data *dev)

Called when buffer ready to transfer. Write/read to/from dev

◆ trigger_handler

int32_t(* iio_device::trigger_handler) (struct iio_device_data *dev)

Called after a trigger signal has been received by iio

◆ write_dev

int32_t(* iio_device::write_dev) (void *dev, void *buff, uint32_t nb_samples)

The documentation for this struct was generated from the following file: