no-OS
|
Structure holding channels and attributes of a device. More...
#include <iio_types.h>
Public Attributes | |
struct no_os_irq_ctrl_desc * | irq_desc |
uint16_t | num_ch |
struct iio_channel * | channels |
struct iio_attribute * | attributes |
struct iio_attribute * | debug_attributes |
struct iio_attribute * | buffer_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) |
Structure holding channels and attributes of a device.
struct iio_attribute* iio_device::attributes |
Array of attributes. Last one should have its name set to NULL
struct iio_attribute* iio_device::buffer_attributes |
Array of attributes. Last one should have its name set to NULL
struct iio_channel* iio_device::channels |
List of channels
struct iio_attribute* iio_device::debug_attributes |
Array of attributes. Last one should have its name set to NULL
int32_t(* iio_device::debug_reg_read) (void *dev, uint32_t reg, uint32_t *readval) |
int32_t(* iio_device::debug_reg_write) (void *dev, uint32_t reg, uint32_t writeval) |
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.
uint16_t iio_device::num_ch |
Device number of channels
int32_t(* iio_device::post_disable) (void *dev) |
Called after disabling buffer
int32_t(* iio_device::pre_enable) (void *dev, uint32_t mask) |
Called before enabling buffer
int32_t(* iio_device::read_dev) (void *dev, void *buff, uint32_t nb_samples) |
int32_t(* iio_device::submit) (struct iio_device_data *dev) |
Called when buffer ready to transfer. Write/read to/from dev
int32_t(* iio_device::trigger_handler) (struct iio_device_data *dev) |
Called after a trigger signal has been received by iio
int32_t(* iio_device::write_dev) (void *dev, void *buff, uint32_t nb_samples) |